Skip to content

Commit

Permalink
chore: update deps, rename npmcdn to unpkg.com
Browse files Browse the repository at this point in the history
  • Loading branch information
Guria committed Nov 3, 2017
1 parent b910798 commit babf9d3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var URLON = require('urlon');

### Webpage
```html
<script src="https://npmcdn.com/[email protected]/dist/urlon.umd.js"></script>
<script src="https://unpkg.com/[email protected]/dist/urlon.umd.js"></script>
<script>
urlon // urlon.stringify() or urlon.parse()
</script>
Expand All @@ -27,7 +27,7 @@ var URLON = require('urlon');
or

```html
<script src="https://npmcdn.com/[email protected]/dist/URLON.umd.js"></script>
<script src="https://unpkg.com/[email protected]/dist/URLON.umd.js"></script>
<script>
URLON // URLON.stringify() or URLON.parse()
</script>
Expand Down
2 changes: 1 addition & 1 deletion lib/urlon.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
var URLON = {
stringify: function (input) {
function encodeString (str) {
return encodeURI(str.replace(/([=:&@_;\/])/g, '/$1'))
return encodeURI(str.replace(/([=:&@_;/])/g, '/$1'))
}

function stringify (input) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"devDependencies": {
"coffee-script": "^1.10.0",
"jasmine": "^2.4.1",
"nyc": "^6.4.0",
"standard": "^6.0.8",
"nyc": "^11.3.0",
"standard": "^10.0.3",
"umd": "^3.0.1"
},
"nyc": {
Expand Down
4 changes: 2 additions & 2 deletions src/urlon.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

(function () {
var script = document.createElement('script')
script.setAttribute('src', 'https://npmcdn.com/[email protected]/src/urlon.js') // never update version here
script.setAttribute('src', 'https://unpkg.com/[email protected]/src/urlon.js') // never update version here
document.head.appendChild(script)
console.warn('Please consider use npm version of library or one served from npmcdn service. Follow https://github.com/vjeux/URLON to see details.')
console.warn('Please consider use npm version of library or one served from unpkg.com service. Follow https://github.com/cerebral/urlon to see details.')
})()

0 comments on commit babf9d3

Please sign in to comment.