Browse Source

Replace npmcdn.com with unpkg.com

gh-953
npmcdn-to-unpkg-bot 8 years ago
parent
commit
928f7f4f9a
  1. 2
      test/form/paths-function/_config.js
  2. 2
      test/form/paths-function/_expected/amd.js
  3. 2
      test/form/paths-function/_expected/cjs.js
  4. 2
      test/form/paths-function/_expected/es.js
  5. 4
      test/form/paths-function/_expected/umd.js
  6. 2
      test/form/paths/_config.js
  7. 2
      test/form/paths/_expected/amd.js
  8. 2
      test/form/paths/_expected/cjs.js
  9. 2
      test/form/paths/_expected/es.js
  10. 4
      test/form/paths/_expected/umd.js

2
test/form/paths-function/_config.js

@ -1,6 +1,6 @@
module.exports = {
description: 'external paths (#754)',
options: {
paths: id => `https://npmcdn.com/${id}`
paths: id => `https://unpkg.com/${id}`
}
};

2
test/form/paths-function/_expected/amd.js

@ -1,4 +1,4 @@
define(['https://npmcdn.com/foo'], function (foo) { 'use strict';
define(['https://unpkg.com/foo'], function (foo) { 'use strict';
foo = 'default' in foo ? foo['default'] : foo;

2
test/form/paths-function/_expected/cjs.js

@ -2,6 +2,6 @@
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var foo = _interopDefault(require('https://npmcdn.com/foo'));
var foo = _interopDefault(require('https://unpkg.com/foo'));
assert.equal( foo, 42 );

2
test/form/paths-function/_expected/es.js

@ -1,3 +1,3 @@
import foo from 'https://npmcdn.com/foo';
import foo from 'https://unpkg.com/foo';
assert.equal( foo, 42 );

4
test/form/paths-function/_expected/umd.js

@ -1,6 +1,6 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('https://npmcdn.com/foo')) :
typeof define === 'function' && define.amd ? define(['https://npmcdn.com/foo'], factory) :
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('https://unpkg.com/foo')) :
typeof define === 'function' && define.amd ? define(['https://unpkg.com/foo'], factory) :
(factory(global.foo));
}(this, (function (foo) { 'use strict';

2
test/form/paths/_config.js

@ -2,7 +2,7 @@ module.exports = {
description: 'external paths (#754)',
options: {
paths: {
foo: 'https://npmcdn.com/foo'
foo: 'https://unpkg.com/foo'
}
}
};

2
test/form/paths/_expected/amd.js

@ -1,4 +1,4 @@
define(['https://npmcdn.com/foo'], function (foo) { 'use strict';
define(['https://unpkg.com/foo'], function (foo) { 'use strict';
foo = 'default' in foo ? foo['default'] : foo;

2
test/form/paths/_expected/cjs.js

@ -2,6 +2,6 @@
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var foo = _interopDefault(require('https://npmcdn.com/foo'));
var foo = _interopDefault(require('https://unpkg.com/foo'));
assert.equal( foo, 42 );

2
test/form/paths/_expected/es.js

@ -1,3 +1,3 @@
import foo from 'https://npmcdn.com/foo';
import foo from 'https://unpkg.com/foo';
assert.equal( foo, 42 );

4
test/form/paths/_expected/umd.js

@ -1,6 +1,6 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('https://npmcdn.com/foo')) :
typeof define === 'function' && define.amd ? define(['https://npmcdn.com/foo'], factory) :
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('https://unpkg.com/foo')) :
typeof define === 'function' && define.amd ? define(['https://unpkg.com/foo'], factory) :
(factory(global.foo));
}(this, (function (foo) { 'use strict';

Loading…
Cancel
Save