@openedx/frontend-build 15.0.0-alpha.11 → 15.0.0-alpha.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/package.json +10 -4
  2. package/.eslintignore +0 -5
  3. package/.eslintrc.js +0 -10
  4. package/.github/workflows/add-depr-ticket-to-depr-board.yml +0 -19
  5. package/.github/workflows/add-remove-label-on-comment.yml +0 -20
  6. package/.github/workflows/ci.yml +0 -33
  7. package/.github/workflows/commitlint.yml +0 -10
  8. package/.github/workflows/lockfileversion-check.yml +0 -13
  9. package/.github/workflows/release.yml +0 -34
  10. package/.github/workflows/self-assign-issue.yml +0 -12
  11. package/.github/workflows/sync-master-alpha.yml +0 -35
  12. package/.nvmrc +0 -1
  13. package/coverage/clover.xml +0 -6
  14. package/coverage/coverage-final.json +0 -1
  15. package/coverage/lcov-report/base.css +0 -224
  16. package/coverage/lcov-report/block-navigation.js +0 -87
  17. package/coverage/lcov-report/favicon.png +0 -0
  18. package/coverage/lcov-report/index.html +0 -101
  19. package/coverage/lcov-report/prettify.css +0 -1
  20. package/coverage/lcov-report/prettify.js +0 -2
  21. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  22. package/coverage/lcov-report/sorter.js +0 -196
  23. package/coverage/lcov.info +0 -0
  24. package/docs/0001-non-usage-of-gatsby.rst +0 -37
  25. package/docs/0002-js-environment-config.md +0 -47
  26. package/docs/0003-fedx-scripts-serve.md +0 -37
  27. package/example/.env +0 -0
  28. package/example/.env.development +0 -3
  29. package/example/.env.test +0 -2
  30. package/example/.eslintignore +0 -5
  31. package/example/.eslintrc.js +0 -3
  32. package/example/dist/1382e1cbf8d733d7301cdd212192bfea.jpg +0 -0
  33. package/example/dist/652.70be34739115e11aaeb3.js +0 -3
  34. package/example/dist/652.70be34739115e11aaeb3.js.LICENSE.txt +0 -41
  35. package/example/dist/652.70be34739115e11aaeb3.js.map +0 -1
  36. package/example/dist/app.09a2e8d2732091b5c03c.css +0 -3
  37. package/example/dist/app.09a2e8d2732091b5c03c.css.map +0 -1
  38. package/example/dist/app.09a2e8d2732091b5c03c.js +0 -2
  39. package/example/dist/app.09a2e8d2732091b5c03c.js.map +0 -1
  40. package/example/dist/babel/App.js +0 -94
  41. package/example/dist/babel/App.js.map +0 -1
  42. package/example/dist/babel/App.test.jsx +0 -11
  43. package/example/dist/babel/Image.tsx +0 -16
  44. package/example/dist/babel/__snapshots__/App.test.jsx.snap +0 -120
  45. package/example/dist/babel/apple.jpg +0 -0
  46. package/example/dist/babel/apple.svg +0 -1
  47. package/example/dist/babel/index.js +0 -13
  48. package/example/dist/babel/index.js.map +0 -1
  49. package/example/dist/babel/style.scss +0 -9
  50. package/example/dist/cb28cdb1468c915e27e5cec9af64f22f.svg +0 -1
  51. package/example/dist/index.html +0 -4
  52. package/example/dist/report.html +0 -39
  53. package/example/dist/runtime.40856db71d718a3e9d37.js +0 -2
  54. package/example/dist/runtime.40856db71d718a3e9d37.js.map +0 -1
  55. package/example/env.config.js +0 -6
  56. package/example/node_modules/.package-lock.json +0 -98
  57. package/example/node_modules/js-tokens/CHANGELOG.md +0 -151
  58. package/example/node_modules/js-tokens/LICENSE +0 -21
  59. package/example/node_modules/js-tokens/README.md +0 -240
  60. package/example/node_modules/js-tokens/index.js +0 -23
  61. package/example/node_modules/js-tokens/package.json +0 -30
  62. package/example/node_modules/loose-envify/LICENSE +0 -21
  63. package/example/node_modules/loose-envify/README.md +0 -45
  64. package/example/node_modules/loose-envify/cli.js +0 -16
  65. package/example/node_modules/loose-envify/custom.js +0 -4
  66. package/example/node_modules/loose-envify/index.js +0 -3
  67. package/example/node_modules/loose-envify/loose-envify.js +0 -36
  68. package/example/node_modules/loose-envify/package.json +0 -36
  69. package/example/node_modules/loose-envify/replace.js +0 -65
  70. package/example/node_modules/object-assign/index.js +0 -90
  71. package/example/node_modules/object-assign/license +0 -21
  72. package/example/node_modules/object-assign/package.json +0 -42
  73. package/example/node_modules/object-assign/readme.md +0 -61
  74. package/example/node_modules/prop-types/LICENSE +0 -21
  75. package/example/node_modules/prop-types/README.md +0 -302
  76. package/example/node_modules/prop-types/checkPropTypes.js +0 -103
  77. package/example/node_modules/prop-types/factory.js +0 -19
  78. package/example/node_modules/prop-types/factoryWithThrowingShims.js +0 -65
  79. package/example/node_modules/prop-types/factoryWithTypeCheckers.js +0 -610
  80. package/example/node_modules/prop-types/index.js +0 -19
  81. package/example/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -12
  82. package/example/node_modules/prop-types/lib/has.js +0 -1
  83. package/example/node_modules/prop-types/package.json +0 -60
  84. package/example/node_modules/prop-types/prop-types.js +0 -1315
  85. package/example/node_modules/prop-types/prop-types.min.js +0 -1
  86. package/example/node_modules/react/LICENSE +0 -21
  87. package/example/node_modules/react/README.md +0 -13
  88. package/example/node_modules/react/build-info.json +0 -8
  89. package/example/node_modules/react/cjs/react-jsx-dev-runtime.development.js +0 -889
  90. package/example/node_modules/react/cjs/react-jsx-dev-runtime.production.min.js +0 -9
  91. package/example/node_modules/react/cjs/react-jsx-runtime.development.js +0 -911
  92. package/example/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -10
  93. package/example/node_modules/react/cjs/react.development.js +0 -1912
  94. package/example/node_modules/react/cjs/react.production.min.js +0 -25
  95. package/example/node_modules/react/index.js +0 -7
  96. package/example/node_modules/react/jsx-dev-runtime.js +0 -7
  97. package/example/node_modules/react/jsx-runtime.js +0 -7
  98. package/example/node_modules/react/package.json +0 -44
  99. package/example/node_modules/react/umd/react.development.js +0 -3318
  100. package/example/node_modules/react/umd/react.production.min.js +0 -32
  101. package/example/node_modules/react/umd/react.profiling.min.js +0 -39
  102. package/example/node_modules/react-dom/LICENSE +0 -21
  103. package/example/node_modules/react-dom/README.md +0 -54
  104. package/example/node_modules/react-dom/build-info.json +0 -8
  105. package/example/node_modules/react-dom/cjs/react-dom-server.browser.development.js +0 -4043
  106. package/example/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js +0 -54
  107. package/example/node_modules/react-dom/cjs/react-dom-server.node.development.js +0 -4085
  108. package/example/node_modules/react-dom/cjs/react-dom-server.node.production.min.js +0 -55
  109. package/example/node_modules/react-dom/cjs/react-dom-test-utils.development.js +0 -1480
  110. package/example/node_modules/react-dom/cjs/react-dom-test-utils.production.min.js +0 -35
  111. package/example/node_modules/react-dom/cjs/react-dom-unstable-fizz.browser.development.js +0 -141
  112. package/example/node_modules/react-dom/cjs/react-dom-unstable-fizz.browser.production.min.js +0 -11
  113. package/example/node_modules/react-dom/cjs/react-dom-unstable-fizz.node.development.js +0 -162
  114. package/example/node_modules/react-dom/cjs/react-dom-unstable-fizz.node.production.min.js +0 -12
  115. package/example/node_modules/react-dom/cjs/react-dom-unstable-native-dependencies.development.js +0 -1629
  116. package/example/node_modules/react-dom/cjs/react-dom-unstable-native-dependencies.production.min.js +0 -31
  117. package/example/node_modules/react-dom/cjs/react-dom.development.js +0 -25012
  118. package/example/node_modules/react-dom/cjs/react-dom.production.min.js +0 -292
  119. package/example/node_modules/react-dom/cjs/react-dom.profiling.min.js +0 -299
  120. package/example/node_modules/react-dom/index.js +0 -38
  121. package/example/node_modules/react-dom/package.json +0 -60
  122. package/example/node_modules/react-dom/profiling.js +0 -38
  123. package/example/node_modules/react-dom/server.browser.js +0 -7
  124. package/example/node_modules/react-dom/server.js +0 -3
  125. package/example/node_modules/react-dom/server.node.js +0 -7
  126. package/example/node_modules/react-dom/test-utils.js +0 -7
  127. package/example/node_modules/react-dom/umd/react-dom-server.browser.development.js +0 -4147
  128. package/example/node_modules/react-dom/umd/react-dom-server.browser.production.min.js +0 -45
  129. package/example/node_modules/react-dom/umd/react-dom-test-utils.development.js +0 -1499
  130. package/example/node_modules/react-dom/umd/react-dom-test-utils.production.min.js +0 -30
  131. package/example/node_modules/react-dom/umd/react-dom-unstable-fizz.browser.development.js +0 -141
  132. package/example/node_modules/react-dom/umd/react-dom-unstable-fizz.browser.production.min.js +0 -10
  133. package/example/node_modules/react-dom/umd/react-dom-unstable-native-dependencies.development.js +0 -1628
  134. package/example/node_modules/react-dom/umd/react-dom-unstable-native-dependencies.production.min.js +0 -28
  135. package/example/node_modules/react-dom/umd/react-dom.development.js +0 -25147
  136. package/example/node_modules/react-dom/umd/react-dom.production.min.js +0 -239
  137. package/example/node_modules/react-dom/umd/react-dom.profiling.min.js +0 -247
  138. package/example/node_modules/react-dom/unstable-fizz.browser.js +0 -7
  139. package/example/node_modules/react-dom/unstable-fizz.js +0 -3
  140. package/example/node_modules/react-dom/unstable-fizz.node.js +0 -7
  141. package/example/node_modules/react-dom/unstable-native-dependencies.js +0 -7
  142. package/example/node_modules/react-is/LICENSE +0 -21
  143. package/example/node_modules/react-is/README.md +0 -104
  144. package/example/node_modules/react-is/build-info.json +0 -8
  145. package/example/node_modules/react-is/cjs/react-is.development.js +0 -181
  146. package/example/node_modules/react-is/cjs/react-is.production.min.js +0 -15
  147. package/example/node_modules/react-is/index.js +0 -7
  148. package/example/node_modules/react-is/package.json +0 -27
  149. package/example/node_modules/react-is/umd/react-is.development.js +0 -181
  150. package/example/node_modules/react-is/umd/react-is.production.min.js +0 -13
  151. package/example/node_modules/react-test-renderer/LICENSE +0 -21
  152. package/example/node_modules/react-test-renderer/README.md +0 -26
  153. package/example/node_modules/react-test-renderer/build-info.json +0 -8
  154. package/example/node_modules/react-test-renderer/cjs/react-test-renderer-shallow.development.js +0 -1019
  155. package/example/node_modules/react-test-renderer/cjs/react-test-renderer-shallow.production.min.js +0 -35
  156. package/example/node_modules/react-test-renderer/cjs/react-test-renderer.development.js +0 -15596
  157. package/example/node_modules/react-test-renderer/cjs/react-test-renderer.production.min.js +0 -181
  158. package/example/node_modules/react-test-renderer/index.js +0 -7
  159. package/example/node_modules/react-test-renderer/package.json +0 -41
  160. package/example/node_modules/react-test-renderer/shallow.js +0 -7
  161. package/example/node_modules/react-test-renderer/umd/react-test-renderer-shallow.development.js +0 -1176
  162. package/example/node_modules/react-test-renderer/umd/react-test-renderer-shallow.production.min.js +0 -31
  163. package/example/node_modules/react-test-renderer/umd/react-test-renderer.development.js +0 -15709
  164. package/example/node_modules/react-test-renderer/umd/react-test-renderer.production.min.js +0 -151
  165. package/example/node_modules/scheduler/LICENSE +0 -21
  166. package/example/node_modules/scheduler/README.md +0 -9
  167. package/example/node_modules/scheduler/build-info.json +0 -8
  168. package/example/node_modules/scheduler/cjs/scheduler-tracing.development.js +0 -349
  169. package/example/node_modules/scheduler/cjs/scheduler-tracing.production.min.js +0 -10
  170. package/example/node_modules/scheduler/cjs/scheduler-tracing.profiling.min.js +0 -17
  171. package/example/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +0 -857
  172. package/example/node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js +0 -20
  173. package/example/node_modules/scheduler/cjs/scheduler.development.js +0 -858
  174. package/example/node_modules/scheduler/cjs/scheduler.production.min.js +0 -21
  175. package/example/node_modules/scheduler/index.js +0 -7
  176. package/example/node_modules/scheduler/package.json +0 -39
  177. package/example/node_modules/scheduler/tracing-profiling.js +0 -7
  178. package/example/node_modules/scheduler/tracing.js +0 -7
  179. package/example/node_modules/scheduler/umd/scheduler-tracing.development.js +0 -80
  180. package/example/node_modules/scheduler/umd/scheduler-tracing.production.min.js +0 -80
  181. package/example/node_modules/scheduler/umd/scheduler-tracing.profiling.min.js +0 -80
  182. package/example/node_modules/scheduler/umd/scheduler-unstable_mock.development.js +0 -857
  183. package/example/node_modules/scheduler/umd/scheduler-unstable_mock.production.min.js +0 -17
  184. package/example/node_modules/scheduler/umd/scheduler.development.js +0 -152
  185. package/example/node_modules/scheduler/umd/scheduler.production.min.js +0 -146
  186. package/example/node_modules/scheduler/umd/scheduler.profiling.min.js +0 -146
  187. package/example/node_modules/scheduler/unstable_mock.js +0 -7
  188. package/example/package-lock.json +0 -110
  189. package/example/package.json +0 -24
  190. package/example/public/index.html +0 -13
  191. package/example/src/App.jsx +0 -43
  192. package/example/src/App.test.jsx +0 -11
  193. package/example/src/Image.tsx +0 -16
  194. package/example/src/__snapshots__/App.test.jsx.snap +0 -120
  195. package/example/src/apple.jpg +0 -0
  196. package/example/src/apple.svg +0 -1
  197. package/example/src/index.jsx +0 -13
  198. package/example/src/style.scss +0 -9
  199. package/example/tsconfig.json +0 -16
  200. package/openedx.yaml +0 -10
  201. package/renovate.json +0 -22
  202. package/smoke-test.sh +0 -11
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env node
2
- 'use strict';
3
-
4
- var looseEnvify = require('./');
5
- var fs = require('fs');
6
-
7
- if (process.argv[2]) {
8
- fs.createReadStream(process.argv[2], {encoding: 'utf8'})
9
- .pipe(looseEnvify(process.argv[2]))
10
- .pipe(process.stdout);
11
- } else {
12
- process.stdin.resume()
13
- process.stdin
14
- .pipe(looseEnvify(__filename))
15
- .pipe(process.stdout);
16
- }
@@ -1,4 +0,0 @@
1
- // envify compatibility
2
- 'use strict';
3
-
4
- module.exports = require('./loose-envify');
@@ -1,3 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = require('./loose-envify')(process.env);
@@ -1,36 +0,0 @@
1
- 'use strict';
2
-
3
- var stream = require('stream');
4
- var util = require('util');
5
- var replace = require('./replace');
6
-
7
- var jsonExtRe = /\.json$/;
8
-
9
- module.exports = function(rootEnv) {
10
- rootEnv = rootEnv || process.env;
11
- return function (file, trOpts) {
12
- if (jsonExtRe.test(file)) {
13
- return stream.PassThrough();
14
- }
15
- var envs = trOpts ? [rootEnv, trOpts] : [rootEnv];
16
- return new LooseEnvify(envs);
17
- };
18
- };
19
-
20
- function LooseEnvify(envs) {
21
- stream.Transform.call(this);
22
- this._data = '';
23
- this._envs = envs;
24
- }
25
- util.inherits(LooseEnvify, stream.Transform);
26
-
27
- LooseEnvify.prototype._transform = function(buf, enc, cb) {
28
- this._data += buf;
29
- cb();
30
- };
31
-
32
- LooseEnvify.prototype._flush = function(cb) {
33
- var replaced = replace(this._data, this._envs);
34
- this.push(replaced);
35
- cb();
36
- };
@@ -1,36 +0,0 @@
1
- {
2
- "name": "loose-envify",
3
- "version": "1.4.0",
4
- "description": "Fast (and loose) selective `process.env` replacer using js-tokens instead of an AST",
5
- "keywords": [
6
- "environment",
7
- "variables",
8
- "browserify",
9
- "browserify-transform",
10
- "transform",
11
- "source",
12
- "configuration"
13
- ],
14
- "homepage": "https://github.com/zertosh/loose-envify",
15
- "license": "MIT",
16
- "author": "Andres Suarez <zertosh@gmail.com>",
17
- "main": "index.js",
18
- "bin": {
19
- "loose-envify": "cli.js"
20
- },
21
- "repository": {
22
- "type": "git",
23
- "url": "git://github.com/zertosh/loose-envify.git"
24
- },
25
- "scripts": {
26
- "test": "tap test/*.js"
27
- },
28
- "dependencies": {
29
- "js-tokens": "^3.0.0 || ^4.0.0"
30
- },
31
- "devDependencies": {
32
- "browserify": "^13.1.1",
33
- "envify": "^3.4.0",
34
- "tap": "^8.0.0"
35
- }
36
- }
@@ -1,65 +0,0 @@
1
- 'use strict';
2
-
3
- var jsTokens = require('js-tokens').default;
4
-
5
- var processEnvRe = /\bprocess\.env\.[_$a-zA-Z][$\w]+\b/;
6
- var spaceOrCommentRe = /^(?:\s|\/[/*])/;
7
-
8
- function replace(src, envs) {
9
- if (!processEnvRe.test(src)) {
10
- return src;
11
- }
12
-
13
- var out = [];
14
- var purge = envs.some(function(env) {
15
- return env._ && env._.indexOf('purge') !== -1;
16
- });
17
-
18
- jsTokens.lastIndex = 0
19
- var parts = src.match(jsTokens);
20
-
21
- for (var i = 0; i < parts.length; i++) {
22
- if (parts[i ] === 'process' &&
23
- parts[i + 1] === '.' &&
24
- parts[i + 2] === 'env' &&
25
- parts[i + 3] === '.') {
26
- var prevCodeToken = getAdjacentCodeToken(-1, parts, i);
27
- var nextCodeToken = getAdjacentCodeToken(1, parts, i + 4);
28
- var replacement = getReplacementString(envs, parts[i + 4], purge);
29
- if (prevCodeToken !== '.' &&
30
- nextCodeToken !== '.' &&
31
- nextCodeToken !== '=' &&
32
- typeof replacement === 'string') {
33
- out.push(replacement);
34
- i += 4;
35
- continue;
36
- }
37
- }
38
- out.push(parts[i]);
39
- }
40
-
41
- return out.join('');
42
- }
43
-
44
- function getAdjacentCodeToken(dir, parts, i) {
45
- while (true) {
46
- var part = parts[i += dir];
47
- if (!spaceOrCommentRe.test(part)) {
48
- return part;
49
- }
50
- }
51
- }
52
-
53
- function getReplacementString(envs, name, purge) {
54
- for (var j = 0; j < envs.length; j++) {
55
- var env = envs[j];
56
- if (typeof env[name] !== 'undefined') {
57
- return JSON.stringify(env[name]);
58
- }
59
- }
60
- if (purge) {
61
- return 'undefined';
62
- }
63
- }
64
-
65
- module.exports = replace;
@@ -1,90 +0,0 @@
1
- /*
2
- object-assign
3
- (c) Sindre Sorhus
4
- @license MIT
5
- */
6
-
7
- 'use strict';
8
- /* eslint-disable no-unused-vars */
9
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
10
- var hasOwnProperty = Object.prototype.hasOwnProperty;
11
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
12
-
13
- function toObject(val) {
14
- if (val === null || val === undefined) {
15
- throw new TypeError('Object.assign cannot be called with null or undefined');
16
- }
17
-
18
- return Object(val);
19
- }
20
-
21
- function shouldUseNative() {
22
- try {
23
- if (!Object.assign) {
24
- return false;
25
- }
26
-
27
- // Detect buggy property enumeration order in older V8 versions.
28
-
29
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
30
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
31
- test1[5] = 'de';
32
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
33
- return false;
34
- }
35
-
36
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
37
- var test2 = {};
38
- for (var i = 0; i < 10; i++) {
39
- test2['_' + String.fromCharCode(i)] = i;
40
- }
41
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
42
- return test2[n];
43
- });
44
- if (order2.join('') !== '0123456789') {
45
- return false;
46
- }
47
-
48
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
49
- var test3 = {};
50
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
51
- test3[letter] = letter;
52
- });
53
- if (Object.keys(Object.assign({}, test3)).join('') !==
54
- 'abcdefghijklmnopqrst') {
55
- return false;
56
- }
57
-
58
- return true;
59
- } catch (err) {
60
- // We don't expect any of the above to throw, but better to be safe.
61
- return false;
62
- }
63
- }
64
-
65
- module.exports = shouldUseNative() ? Object.assign : function (target, source) {
66
- var from;
67
- var to = toObject(target);
68
- var symbols;
69
-
70
- for (var s = 1; s < arguments.length; s++) {
71
- from = Object(arguments[s]);
72
-
73
- for (var key in from) {
74
- if (hasOwnProperty.call(from, key)) {
75
- to[key] = from[key];
76
- }
77
- }
78
-
79
- if (getOwnPropertySymbols) {
80
- symbols = getOwnPropertySymbols(from);
81
- for (var i = 0; i < symbols.length; i++) {
82
- if (propIsEnumerable.call(from, symbols[i])) {
83
- to[symbols[i]] = from[symbols[i]];
84
- }
85
- }
86
- }
87
- }
88
-
89
- return to;
90
- };
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
@@ -1,42 +0,0 @@
1
- {
2
- "name": "object-assign",
3
- "version": "4.1.1",
4
- "description": "ES2015 `Object.assign()` ponyfill",
5
- "license": "MIT",
6
- "repository": "sindresorhus/object-assign",
7
- "author": {
8
- "name": "Sindre Sorhus",
9
- "email": "sindresorhus@gmail.com",
10
- "url": "sindresorhus.com"
11
- },
12
- "engines": {
13
- "node": ">=0.10.0"
14
- },
15
- "scripts": {
16
- "test": "xo && ava",
17
- "bench": "matcha bench.js"
18
- },
19
- "files": [
20
- "index.js"
21
- ],
22
- "keywords": [
23
- "object",
24
- "assign",
25
- "extend",
26
- "properties",
27
- "es2015",
28
- "ecmascript",
29
- "harmony",
30
- "ponyfill",
31
- "prollyfill",
32
- "polyfill",
33
- "shim",
34
- "browser"
35
- ],
36
- "devDependencies": {
37
- "ava": "^0.16.0",
38
- "lodash": "^4.16.4",
39
- "matcha": "^0.7.0",
40
- "xo": "^0.16.0"
41
- }
42
- }
@@ -1,61 +0,0 @@
1
- # object-assign [![Build Status](https://travis-ci.org/sindresorhus/object-assign.svg?branch=master)](https://travis-ci.org/sindresorhus/object-assign)
2
-
3
- > ES2015 [`Object.assign()`](http://www.2ality.com/2014/01/object-assign.html) [ponyfill](https://ponyfill.com)
4
-
5
-
6
- ## Use the built-in
7
-
8
- Node.js 4 and up, as well as every evergreen browser (Chrome, Edge, Firefox, Opera, Safari),
9
- support `Object.assign()` :tada:. If you target only those environments, then by all
10
- means, use `Object.assign()` instead of this package.
11
-
12
-
13
- ## Install
14
-
15
- ```
16
- $ npm install --save object-assign
17
- ```
18
-
19
-
20
- ## Usage
21
-
22
- ```js
23
- const objectAssign = require('object-assign');
24
-
25
- objectAssign({foo: 0}, {bar: 1});
26
- //=> {foo: 0, bar: 1}
27
-
28
- // multiple sources
29
- objectAssign({foo: 0}, {bar: 1}, {baz: 2});
30
- //=> {foo: 0, bar: 1, baz: 2}
31
-
32
- // overwrites equal keys
33
- objectAssign({foo: 0}, {foo: 1}, {foo: 2});
34
- //=> {foo: 2}
35
-
36
- // ignores null and undefined sources
37
- objectAssign({foo: 0}, null, {bar: 1}, undefined);
38
- //=> {foo: 0, bar: 1}
39
- ```
40
-
41
-
42
- ## API
43
-
44
- ### objectAssign(target, [source, ...])
45
-
46
- Assigns enumerable own properties of `source` objects to the `target` object and returns the `target` object. Additional `source` objects will overwrite previous ones.
47
-
48
-
49
- ## Resources
50
-
51
- - [ES2015 spec - Object.assign](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign)
52
-
53
-
54
- ## Related
55
-
56
- - [deep-assign](https://github.com/sindresorhus/deep-assign) - Recursive `Object.assign()`
57
-
58
-
59
- ## License
60
-
61
- MIT © [Sindre Sorhus](https://sindresorhus.com)
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2013-present, Facebook, Inc.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.