From 6d1b3e1127b1435a11c44f618cae760f897e9a8c Mon Sep 17 00:00:00 2001 From: "npm-to-cdn-bot (by Forbes Lindesay)" Date: Tue, 13 Sep 2016 16:23:05 +0100 Subject: [PATCH] Replace npmcdn.com with unpkg.com --- README.md | 8 ++++---- dist/iconic.js | 10 +++++----- dist/ionicons.js | 10 +++++----- dist/material-icons.js | 10 +++++----- dist/open-iconic.js | 10 +++++----- gulpfile.js | 2 +- src/iconic.js | 10 +++++----- src/ionicons.js | 10 +++++----- src/material-icons.js | 10 +++++----- src/open-iconic.js | 10 +++++----- 10 files changed, 45 insertions(+), 45 deletions(-) diff --git a/README.md b/README.md index b328bfb..1af6d64 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ You can use the IconicProvider to configure the default path to the iconic asset - `setAssetPath(path)` - sets the full path to the icons - useful if hosting the icons locally or if using a non-supported CDN - `setCdn(cdn)` - sets the CDN to use for the icons - - the icons are hosted on the following CDNs: npmcdn (default), jsdelivr + - the icons are hosted on the following CDNs: unpkg (default), jsdelivr ### ba-iconic (Directive) @@ -61,7 +61,7 @@ You can use the OpenIconicProvider to configure the default path to the open ico - `setAssetPath(path)` - sets the full path to the icons - useful if hosting the icons locally or if using a non-supported CDN - `setCdn(cdn)` - sets the CDN to use for the icons - - the icons are hosted on the following CDNs: npmcdn (default), jsdelivr + - the icons are hosted on the following CDNs: unpkg (default), jsdelivr ### ba-open-iconic (Directive) @@ -75,7 +75,7 @@ You can use the IoniconsProvider to configure the default path to the ionicons a - `setAssetPath(path)` - sets the full path to the icons - useful if hosting the icons locally or if using a non-supported CDN - `setCdn(cdn)` - sets the CDN to use for the icons - - the icons are hosted on the following CDNs: npmcdn (default), jsdelivr + - the icons are hosted on the following CDNs: unpkg (default), jsdelivr ### ba-ionicon (Directive) @@ -89,7 +89,7 @@ You can use the MaterialIconsProvider to configure the default path to the mater - `setAssetPath(path)` - sets the full path to the icons - useful if hosting the icons locally or if using a non-supported CDN - `setCdn(cdn)` - sets the CDN to use for the icons - - the icons are hosted on the following CDNs: npmcdn (default), jsdelivr + - the icons are hosted on the following CDNs: unpkg (default), jsdelivr ### ba-material-icon (Directive) diff --git a/dist/iconic.js b/dist/iconic.js index 3b50a0d..427ffec 100644 --- a/dist/iconic.js +++ b/dist/iconic.js @@ -12,7 +12,7 @@ function config($sceDelegateProvider) { var whitelist = $sceDelegateProvider.resourceUrlWhitelist(); $sceDelegateProvider.resourceUrlWhitelist(whitelist.concat([ - 'https://npmcdn.com/angular-icons@1.0.7/dist/icons/iconic/**', + 'https://unpkg.com/angular-icons@1.0.7/dist/icons/iconic/**', 'https://cdn.jsdelivr.net/angular-icons/1.0.7/icons/iconic/**', 'https://unpkg.com/angular-icons@1.0.7/dist/icons/iconic/**' ])); @@ -41,12 +41,12 @@ /** * Configures which CDN to use - * @param {string} cdn - options are 'jsdelivr', 'npmcdn' (default 'npmcdn') + * @param {string} cdn - options are 'jsdelivr', 'unpkg' (default 'unpkg') */ this.setCdn = function (cdn) { switch (cdn) { case 'jsdelivr': - case 'npmcdn': + case 'unpkg': case 'unpkg': assetCdn = cdn; break; @@ -86,8 +86,8 @@ switch (assetCdn) { case 'unpkg': return 'https://unpkg.com/angular-icons@1.0.7/dist/icons/iconic/'; - case 'npmcdn': - return 'https://npmcdn.com/angular-icons@1.0.7/dist/icons/iconic/'; + case 'unpkg': + return 'https://unpkg.com/angular-icons@1.0.7/dist/icons/iconic/'; case 'jsdelivr': return 'https://cdn.jsdelivr.net/angular-icons/1.0.7/icons/iconic/'; default: diff --git a/dist/ionicons.js b/dist/ionicons.js index 45baf67..8928ca7 100644 --- a/dist/ionicons.js +++ b/dist/ionicons.js @@ -12,7 +12,7 @@ function config($sceDelegateProvider) { var whitelist = $sceDelegateProvider.resourceUrlWhitelist(); $sceDelegateProvider.resourceUrlWhitelist(whitelist.concat([ - 'https://npmcdn.com/angular-icons@1.0.7/dist/icons/ionicons/**', + 'https://unpkg.com/angular-icons@1.0.7/dist/icons/ionicons/**', 'https://cdn.jsdelivr.net/angular-icons/1.0.7/icons/ionicons/**', 'https://unpkg.com/angular-icons@1.0.7/dist/icons/ionicons/**' ])); @@ -38,12 +38,12 @@ /** * Configures which CDN to use - * @param {string} cdn - options are 'jsdelivr', 'npmcdn' (default 'npmcdn') + * @param {string} cdn - options are 'jsdelivr', 'unpkg' (default 'unpkg') */ this.setCdn = function (cdn) { switch (cdn) { case 'jsdelivr': - case 'npmcdn': + case 'unpkg': case 'unpkg': assetCdn = cdn; break; @@ -72,8 +72,8 @@ switch (assetCdn) { case 'unpkg': return 'https://unpkg.com/angular-icons@1.0.7/dist/icons/ionicons/'; - case 'npmcdn': - return 'https://npmcdn.com/angular-icons@1.0.7/dist/icons/ionicons/'; + case 'unpkg': + return 'https://unpkg.com/angular-icons@1.0.7/dist/icons/ionicons/'; case 'jsdelivr': return 'https://cdn.jsdelivr.net/angular-icons/1.0.7/icons/ionicons/'; default: diff --git a/dist/material-icons.js b/dist/material-icons.js index e0a30e2..085d3aa 100644 --- a/dist/material-icons.js +++ b/dist/material-icons.js @@ -12,7 +12,7 @@ function config($sceDelegateProvider) { var whitelist = $sceDelegateProvider.resourceUrlWhitelist(); $sceDelegateProvider.resourceUrlWhitelist(whitelist.concat([ - 'https://npmcdn.com/angular-icons@1.0.7/dist/icons/material-icons/**', + 'https://unpkg.com/angular-icons@1.0.7/dist/icons/material-icons/**', 'https://cdn.jsdelivr.net/angular-icons/1.0.7/icons/material-icons/**', 'https://unpkg.com/angular-icons@1.0.7/dist/icons/material-icons/**' ])); @@ -38,12 +38,12 @@ /** * Configures which CDN to use - * @param {string} cdn - options are 'jsdelivr', 'npmcdn' (default 'npmcdn') + * @param {string} cdn - options are 'jsdelivr', 'unpkg' (default 'unpkg') */ this.setCdn = function (cdn) { switch (cdn) { case 'jsdelivr': - case 'npmcdn': + case 'unpkg': case 'unpkg': assetCdn = cdn; break; @@ -72,8 +72,8 @@ switch (assetCdn) { case 'unpkg': return 'https://unpkg.com/angular-icons@1.0.7/dist/icons/material-icons/'; - case 'npmcdn': - return 'https://npmcdn.com/angular-icons@1.0.7/dist/icons/material-icons/'; + case 'unpkg': + return 'https://unpkg.com/angular-icons@1.0.7/dist/icons/material-icons/'; case 'jsdelivr': return 'https://cdn.jsdelivr.net/angular-icons/1.0.7/icons/material-icons/'; default: diff --git a/dist/open-iconic.js b/dist/open-iconic.js index d760468..213a518 100644 --- a/dist/open-iconic.js +++ b/dist/open-iconic.js @@ -12,7 +12,7 @@ function config($sceDelegateProvider) { var whitelist = $sceDelegateProvider.resourceUrlWhitelist(); $sceDelegateProvider.resourceUrlWhitelist(whitelist.concat([ - 'https://npmcdn.com/angular-icons@1.0.7/dist/icons/open-iconic/**', + 'https://unpkg.com/angular-icons@1.0.7/dist/icons/open-iconic/**', 'https://cdn.jsdelivr.net/angular-icons/1.0.7/icons/open-iconic/**', 'https://unpkg.com/angular-icons@1.0.7/dist/icons/open-iconic/**' ])); @@ -38,12 +38,12 @@ /** * Configures which CDN to use - * @param {string} cdn - options are 'jsdelivr', 'npmcdn' (default 'npmcdn') + * @param {string} cdn - options are 'jsdelivr', 'unpkg' (default 'unpkg') */ this.setCdn = function (cdn) { switch (cdn) { case 'jsdelivr': - case 'npmcdn': + case 'unpkg': case 'unpkg': assetCdn = cdn; break; @@ -72,8 +72,8 @@ switch (assetCdn) { case 'unpkg': return 'https://unpkg.com/angular-icons@1.0.7/dist/icons/open-iconic/'; - case 'npmcdn': - return 'https://npmcdn.com/angular-icons@1.0.7/dist/icons/open-iconic/'; + case 'unpkg': + return 'https://unpkg.com/angular-icons@1.0.7/dist/icons/open-iconic/'; case 'jsdelivr': return 'https://cdn.jsdelivr.net/angular-icons/1.0.7/icons/open-iconic/'; default: diff --git a/gulpfile.js b/gulpfile.js index 18b6cbc..cf7d3ca 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -82,7 +82,7 @@ gulp.task('build', ['clean', 'setversion'], function() { merged.add(gulp.src('./src/**/*.js') // update CDNs .pipe($.replace(/https:\/\/cdn\.jsdelivr\.net\/angular-icons\/0\.0\.0/g, 'https://cdn.jsdelivr.net/angular-icons/' + nextVersion)) - .pipe($.replace(/https:\/\/npmcdn\.com\/angular-icons@0\.0\.0/g, 'https://npmcdn.com/angular-icons@' + nextVersion)) + .pipe($.replace(/https:\/\/unpkg\.com\/angular-icons@0\.0\.0/g, 'https://unpkg.com/angular-icons@' + nextVersion)) .pipe($.replace(/https:\/\/unpkg\.com\/angular-icons@0\.0\.0/g, 'https://unpkg.com/angular-icons@' + nextVersion)) .pipe(gulp.dest('./dist'))); diff --git a/src/iconic.js b/src/iconic.js index ee8db17..c611f8d 100644 --- a/src/iconic.js +++ b/src/iconic.js @@ -12,7 +12,7 @@ function config($sceDelegateProvider) { var whitelist = $sceDelegateProvider.resourceUrlWhitelist(); $sceDelegateProvider.resourceUrlWhitelist(whitelist.concat([ - 'https://npmcdn.com/angular-icons@0.0.0/dist/icons/iconic/**', + 'https://unpkg.com/angular-icons@0.0.0/dist/icons/iconic/**', 'https://cdn.jsdelivr.net/angular-icons/0.0.0/icons/iconic/**', 'https://unpkg.com/angular-icons@0.0.0/dist/icons/iconic/**' ])); @@ -41,12 +41,12 @@ /** * Configures which CDN to use - * @param {string} cdn - options are 'jsdelivr', 'npmcdn' (default 'npmcdn') + * @param {string} cdn - options are 'jsdelivr', 'unpkg' (default 'unpkg') */ this.setCdn = function (cdn) { switch (cdn) { case 'jsdelivr': - case 'npmcdn': + case 'unpkg': case 'unpkg': assetCdn = cdn; break; @@ -86,8 +86,8 @@ switch (assetCdn) { case 'unpkg': return 'https://unpkg.com/angular-icons@0.0.0/dist/icons/iconic/'; - case 'npmcdn': - return 'https://npmcdn.com/angular-icons@0.0.0/dist/icons/iconic/'; + case 'unpkg': + return 'https://unpkg.com/angular-icons@0.0.0/dist/icons/iconic/'; case 'jsdelivr': return 'https://cdn.jsdelivr.net/angular-icons/0.0.0/icons/iconic/'; default: diff --git a/src/ionicons.js b/src/ionicons.js index 5822f2d..1e61ee3 100644 --- a/src/ionicons.js +++ b/src/ionicons.js @@ -12,7 +12,7 @@ function config($sceDelegateProvider) { var whitelist = $sceDelegateProvider.resourceUrlWhitelist(); $sceDelegateProvider.resourceUrlWhitelist(whitelist.concat([ - 'https://npmcdn.com/angular-icons@0.0.0/dist/icons/ionicons/**', + 'https://unpkg.com/angular-icons@0.0.0/dist/icons/ionicons/**', 'https://cdn.jsdelivr.net/angular-icons/0.0.0/icons/ionicons/**', 'https://unpkg.com/angular-icons@0.0.0/dist/icons/ionicons/**' ])); @@ -38,12 +38,12 @@ /** * Configures which CDN to use - * @param {string} cdn - options are 'jsdelivr', 'npmcdn' (default 'npmcdn') + * @param {string} cdn - options are 'jsdelivr', 'unpkg' (default 'unpkg') */ this.setCdn = function (cdn) { switch (cdn) { case 'jsdelivr': - case 'npmcdn': + case 'unpkg': case 'unpkg': assetCdn = cdn; break; @@ -72,8 +72,8 @@ switch (assetCdn) { case 'unpkg': return 'https://unpkg.com/angular-icons@0.0.0/dist/icons/ionicons/'; - case 'npmcdn': - return 'https://npmcdn.com/angular-icons@0.0.0/dist/icons/ionicons/'; + case 'unpkg': + return 'https://unpkg.com/angular-icons@0.0.0/dist/icons/ionicons/'; case 'jsdelivr': return 'https://cdn.jsdelivr.net/angular-icons/0.0.0/icons/ionicons/'; default: diff --git a/src/material-icons.js b/src/material-icons.js index 080762b..b3a6206 100644 --- a/src/material-icons.js +++ b/src/material-icons.js @@ -12,7 +12,7 @@ function config($sceDelegateProvider) { var whitelist = $sceDelegateProvider.resourceUrlWhitelist(); $sceDelegateProvider.resourceUrlWhitelist(whitelist.concat([ - 'https://npmcdn.com/angular-icons@0.0.0/dist/icons/material-icons/**', + 'https://unpkg.com/angular-icons@0.0.0/dist/icons/material-icons/**', 'https://cdn.jsdelivr.net/angular-icons/0.0.0/icons/material-icons/**', 'https://unpkg.com/angular-icons@0.0.0/dist/icons/material-icons/**' ])); @@ -38,12 +38,12 @@ /** * Configures which CDN to use - * @param {string} cdn - options are 'jsdelivr', 'npmcdn' (default 'npmcdn') + * @param {string} cdn - options are 'jsdelivr', 'unpkg' (default 'unpkg') */ this.setCdn = function (cdn) { switch (cdn) { case 'jsdelivr': - case 'npmcdn': + case 'unpkg': case 'unpkg': assetCdn = cdn; break; @@ -72,8 +72,8 @@ switch (assetCdn) { case 'unpkg': return 'https://unpkg.com/angular-icons@0.0.0/dist/icons/material-icons/'; - case 'npmcdn': - return 'https://npmcdn.com/angular-icons@0.0.0/dist/icons/material-icons/'; + case 'unpkg': + return 'https://unpkg.com/angular-icons@0.0.0/dist/icons/material-icons/'; case 'jsdelivr': return 'https://cdn.jsdelivr.net/angular-icons/0.0.0/icons/material-icons/'; default: diff --git a/src/open-iconic.js b/src/open-iconic.js index 6c63a07..78bda98 100644 --- a/src/open-iconic.js +++ b/src/open-iconic.js @@ -12,7 +12,7 @@ function config($sceDelegateProvider) { var whitelist = $sceDelegateProvider.resourceUrlWhitelist(); $sceDelegateProvider.resourceUrlWhitelist(whitelist.concat([ - 'https://npmcdn.com/angular-icons@0.0.0/dist/icons/open-iconic/**', + 'https://unpkg.com/angular-icons@0.0.0/dist/icons/open-iconic/**', 'https://cdn.jsdelivr.net/angular-icons/0.0.0/icons/open-iconic/**', 'https://unpkg.com/angular-icons@0.0.0/dist/icons/open-iconic/**' ])); @@ -38,12 +38,12 @@ /** * Configures which CDN to use - * @param {string} cdn - options are 'jsdelivr', 'npmcdn' (default 'npmcdn') + * @param {string} cdn - options are 'jsdelivr', 'unpkg' (default 'unpkg') */ this.setCdn = function (cdn) { switch (cdn) { case 'jsdelivr': - case 'npmcdn': + case 'unpkg': case 'unpkg': assetCdn = cdn; break; @@ -72,8 +72,8 @@ switch (assetCdn) { case 'unpkg': return 'https://unpkg.com/angular-icons@0.0.0/dist/icons/open-iconic/'; - case 'npmcdn': - return 'https://npmcdn.com/angular-icons@0.0.0/dist/icons/open-iconic/'; + case 'unpkg': + return 'https://unpkg.com/angular-icons@0.0.0/dist/icons/open-iconic/'; case 'jsdelivr': return 'https://cdn.jsdelivr.net/angular-icons/0.0.0/icons/open-iconic/'; default: