Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: swordev/merge
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b31e67fe6592390c967c991aa604c06ed2ae8c4f
Choose a base ref
...
head repository: swordev/merge
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8686d8573694e201f3ee551568f3fefa64f974eb
Choose a head ref

Commits on Jul 28, 2019

  1. Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    ec16c0e View commit details
  2. refactor: from js to ts

    yeikos committed Jul 28, 2019
    Copy the full SHA
    f3e2133 View commit details
  3. build: compiled sources

    yeikos committed Jul 28, 2019
    Copy the full SHA
    da8d5a9 View commit details
  4. build: ts and webpack config

    yeikos committed Jul 28, 2019
    Copy the full SHA
    29e46a8 View commit details
  5. build: package-lock.json

    yeikos committed Jul 28, 2019
    Copy the full SHA
    7cc6574 View commit details
  6. docs: update readme

    yeikos committed Jul 28, 2019
    Copy the full SHA
    2b22e6b View commit details
  7. Copy the full SHA
    1385593 View commit details
  8. docs: remove license copyright

    yeikos committed Jul 28, 2019
    Copy the full SHA
    b36036a View commit details
  9. build: update ignored files

    yeikos committed Jul 28, 2019
    Copy the full SHA
    2d2b54a View commit details
  10. build: add editor config

    yeikos committed Jul 28, 2019
    Copy the full SHA
    75ba781 View commit details
  11. test: add merge script

    yeikos committed Jul 28, 2019
    Copy the full SHA
    bf85170 View commit details

Commits on Jul 29, 2019

  1. build: CommonJS support

    yeikos committed Jul 29, 2019
    Copy the full SHA
    eabfd6f View commit details

Commits on Jul 31, 2019

  1. build: new npm scripts

    yeikos committed Jul 31, 2019
    Copy the full SHA
    36d4b9c View commit details
  2. fix: default typings

    yeikos committed Jul 31, 2019
    Copy the full SHA
    21f4105 View commit details
  3. build: bump version

    yeikos committed Jul 31, 2019
    Copy the full SHA
    159e724 View commit details
  4. Copy the full SHA
    7bf0fc8 View commit details
  5. Copy the full SHA
    43ffa43 View commit details
  6. Merge pull request #32 from yeikos/develop

    v2.0.0
    yeikos authored Jul 31, 2019
    Copy the full SHA
    ece8885 View commit details
  7. build: include typings

    yeikos committed Jul 31, 2019
    Copy the full SHA
    bf8b1ff View commit details

Commits on Oct 9, 2020

  1. Fix Prototype Pollution

    alromh87 committed Oct 9, 2020
    Copy the full SHA
    c2f8454 View commit details
  2. Merge pull request #1 from alromh87/master

    Fix prototype pollution
    JamieSlome authored Oct 9, 2020
    Copy the full SHA
    869927f View commit details

Commits on Nov 14, 2020

  1. Merge pull request #38 from 418sec/master

    Security Fix for Prototype Pollution - huntr.dev
    yeikos authored Nov 14, 2020
    Copy the full SHA
    f571887 View commit details
  2. build: update dev dependencies

    yeikos committed Nov 14, 2020
    Copy the full SHA
    0acaaf3 View commit details
  3. build

    yeikos committed Nov 14, 2020
    Copy the full SHA
    80151be View commit details
  4. build: bump version

    yeikos committed Nov 14, 2020
    Copy the full SHA
    8686d85 View commit details
Showing with 3,104 additions and 29,947 deletions.
  1. +11 −0 .editorconfig
  2. +1 −0 .gitignore
  3. +0 −1 .npmignore
  4. +0 −2 LICENSE
  5. +58 −32 README.md
  6. +21 −21 bower.json
  7. +1 −0 dist/merge.browser.min.js
  8. +23 −0 dist/merge.browser.test.html
  9. +241 −0 dist/merge.browser.test.js
  10. +19 −0 lib/src/index.d.ts
  11. +80 −0 lib/src/index.js
  12. +1 −0 lib/test/index.d.ts
  13. +103 −0 lib/test/index.js
  14. +0 −177 merge.js
  15. +0 −3 merge.min.js
  16. +2,134 −0 package-lock.json
  17. +43 −23 package.json
  18. +97 −0 src/index.ts
  19. +224 −0 test/index.ts
  20. +0 −22 tests/index.html
  21. +0 −8 tests/index.js
  22. +0 −15 tests/qunit/node_modules/.bin/qunit
  23. +0 −5 tests/qunit/node_modules/.bin/qunit.cmd
  24. +0 −3 tests/qunit/node_modules/qunit/.gitmodules
  25. +0 −2 tests/qunit/node_modules/qunit/.npmignore
  26. +0 −4 tests/qunit/node_modules/qunit/Makefile
  27. +0 −116 tests/qunit/node_modules/qunit/bin/cli.js
  28. +0 −1 tests/qunit/node_modules/qunit/index.js
  29. +0 −138 tests/qunit/node_modules/qunit/lib/child.js
  30. +0 −35 tests/qunit/node_modules/qunit/lib/coverage.js
  31. +0 −197 tests/qunit/node_modules/qunit/lib/log.js
  32. +0 −182 tests/qunit/node_modules/qunit/lib/testrunner.js
  33. +0 −1 tests/qunit/node_modules/qunit/node_modules/argsparser/.npmignore
  34. +0 −4 tests/qunit/node_modules/qunit/node_modules/argsparser/Makefile
  35. +0 −1 tests/qunit/node_modules/qunit/node_modules/argsparser/index.js
  36. +0 −41 tests/qunit/node_modules/qunit/node_modules/argsparser/lib/argsparser.js
  37. +0 −35 tests/qunit/node_modules/qunit/node_modules/argsparser/package.json
  38. +0 −34 tests/qunit/node_modules/qunit/node_modules/argsparser/readme.md
  39. +0 −39 tests/qunit/node_modules/qunit/node_modules/argsparser/test/test.js
  40. +0 −1 tests/qunit/node_modules/qunit/node_modules/bunker/.npmignore
  41. +0 −4 tests/qunit/node_modules/qunit/node_modules/bunker/.travis.yml
  42. +0 −82 tests/qunit/node_modules/qunit/node_modules/bunker/README.markdown
  43. +0 −51 tests/qunit/node_modules/qunit/node_modules/bunker/example/prof.js
  44. +0 −18 tests/qunit/node_modules/qunit/node_modules/bunker/example/tiny.js
  45. +0 −31 tests/qunit/node_modules/qunit/node_modules/bunker/example/top/run.js
  46. +0 −18 tests/qunit/node_modules/qunit/node_modules/bunker/example/top/src.js
  47. +0 −116 tests/qunit/node_modules/qunit/node_modules/bunker/index.js
  48. +0 −1 tests/qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/.npmignore
  49. +0 −4 tests/qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/.travis.yml
  50. +0 −187 tests/qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/README.markdown
  51. +0 −8 tests/qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/example/microwave.js
  52. +0 −4,832 tests/qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/example/web/bs.js
  53. +0 −14 tests/qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/example/web/index.html
  54. +0 −17 tests/qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/example/web/main.js
  55. +0 −12 tests/qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/example/web/server.js
  56. +0 −7 tests/qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/example/wrap.js
  57. +0 −208 tests/qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/index.js
  58. +0 −15 tests/qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/.bin/uglifyjs
  59. +0 −5 .../qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/.bin/uglifyjs.cmd
  60. +0 −1 ...unit/node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/.npmignore
  61. +0 −24 ...s/qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/LICENSE
  62. +0 −237 ...node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/README.markdown
  63. +0 −16 ...ode_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/examples/json.js
  64. +0 −15 ...e_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/examples/leaves.js
  65. +0 −8 ...modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/examples/negative.js
  66. +0 −10 ...de_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/examples/scrub.js
  67. +0 −38 ...odules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/examples/stringify.js
  68. +0 −267 .../qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/index.js
  69. +0 −10 ...s/qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/main.js
  70. +0 −24 ...it/node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/package.json
  71. +0 −115 ...ode_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/test/circular.js
  72. +0 −35 ...it/node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/test/date.js
  73. +0 −220 ...t/node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/test/equal.js
  74. +0 −17 ...ode_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/test/instance.js
  75. +0 −42 ...de_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/test/interface.js
  76. +0 −47 ...it/node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/test/json.js
  77. +0 −29 ...it/node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/test/keys.js
  78. +0 −21 .../node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/test/leaves.js
  79. +0 −92 ...dules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/test/lib/deep_equal.js
  80. +0 −252 ...e_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/test/mutability.js
  81. +0 −20 ...ode_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/test/negative.js
  82. +0 −15 ...nit/node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/test/obj.js
  83. +0 −35 ...ode_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/test/siblings.js
  84. +0 −41 ...it/node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/test/stop.js
  85. +0 −36 ...de_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/test/stringify.js
  86. +0 −34 ...node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/test/subexpr.js
  87. +0 −55 ...e_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/traverse/test/super_deep.js
  88. +0 −4 ...nit/node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/uglify-js/.npmignore
  89. +0 −1,026 ...it/node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/uglify-js/README.html
  90. +0 −571 ...nit/node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/uglify-js/README.org
  91. +0 −317 ...t/node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/uglify-js/bin/uglifyjs
  92. +0 −75 ...t/node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/uglify-js/docstyle.css
  93. +0 −75 ...e_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/uglify-js/lib/object-ast.js
  94. +0 −1,339 ...ode_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/uglify-js/lib/parse-js.js
  95. +0 −2,001 ...node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/uglify-js/lib/process.js
  96. +0 −51 ...modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/uglify-js/lib/squeeze-more.js
  97. +0 −22 ...t/node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/uglify-js/package.json
  98. +0 −24 .../node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/uglify-js/package.json~
  99. +0 −28 ...de_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/beautify.js
  100. +0 −403 ..._modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/testparser.js
  101. +0 −1 ..._modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/array1.js
  102. +0 −1 ..._modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/array2.js
  103. +0 −1 ..._modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/array3.js
  104. +0 −1 ..._modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/array4.js
  105. +0 −1 ...ules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/assignment.js
  106. +0 −1 ...es/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/concatstring.js
  107. +0 −1 ...e_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/const.js
  108. +0 −1 ...es/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/empty-blocks.js
  109. +0 −1 ...es/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/forstatement.js
  110. +0 −1 ...node_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/if.js
  111. +0 −1 ...odules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/ifreturn.js
  112. +0 −1 ...dules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/ifreturn2.js
  113. +0 −1 ...modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/issue10.js
  114. +0 −1 ...modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/issue11.js
  115. +0 −1 ...modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/issue13.js
  116. +0 −1 ...modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/issue14.js
  117. +0 −1 ...modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/issue16.js
  118. +0 −1 ...modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/issue17.js
  119. +0 −1 ...modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/issue20.js
  120. +0 −1 ...modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/issue21.js
  121. +0 −1 ...modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/issue25.js
  122. +0 −1 ...modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/issue27.js
  123. +0 −1 ...modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/issue28.js
  124. +0 −1 ...modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/issue29.js
  125. +0 −1 ...modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/issue30.js
  126. +0 −1 ...modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/issue34.js
  127. +0 −1 ..._modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/issue4.js
  128. +0 −1 ...modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/issue48.js
  129. +0 −1 ...modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/issue50.js
  130. +0 −1 ...modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/issue53.js
  131. +0 −1 ...dules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/issue54.1.js
  132. +0 −1 ...modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/issue68.js
  133. +0 −1 ...modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/issue69.js
  134. +0 −1 ..._modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/issue9.js
  135. +0 −1 ..._modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/mangle.js
  136. +0 −1 ...les/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/null_string.js
  137. +0 −1 ...s/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/strict-equals.js
  138. +0 −1 ...ode_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/var.js
  139. +0 −1 ...ules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/whitespace.js
  140. +0 −1 ...de_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/expected/with.js
  141. +0 −3 ...node_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/array1.js
  142. +0 −4 ...node_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/array2.js
  143. +0 −4 ...node_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/array3.js
  144. +0 −6 ...node_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/array4.js
  145. +0 −20 ..._modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/assignment.js
  146. +0 −3 ...odules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/concatstring.js
  147. +0 −5 .../node_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/const.js
  148. +0 −4 ...odules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/empty-blocks.js
  149. +0 −10 ...odules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/forstatement.js
  150. +0 −6 ...nit/node_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/if.js
  151. +0 −9 ...de_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/ifreturn.js
  152. +0 −16 ...e_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/ifreturn2.js
  153. +0 −1 ...ode_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/issue10.js
  154. +0 −3 ...ode_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/issue11.js
  155. +0 −1 ...ode_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/issue13.js
  156. +0 −1 ...ode_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/issue14.js
  157. +0 −1 ...ode_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/issue16.js
  158. +0 −4 ...ode_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/issue17.js
  159. +0 −1 ...ode_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/issue20.js
  160. +0 −6 ...ode_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/issue21.js
  161. +0 −7 ...ode_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/issue25.js
  162. +0 −1 ...ode_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/issue27.js
  163. +0 −3 ...ode_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/issue28.js
  164. +0 −1 ...ode_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/issue29.js
  165. +0 −3 ...ode_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/issue30.js
  166. +0 −3 ...ode_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/issue34.js
  167. +0 −3 ...node_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/issue4.js
  168. +0 −1 ...ode_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/issue48.js
  169. +0 −9 ...ode_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/issue50.js
  170. +0 −1 ...ode_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/issue53.js
  171. +0 −3 ...e_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/issue54.1.js
  172. +0 −5 ...ode_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/issue68.js
  173. +0 −1 ...ode_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/issue69.js
  174. +0 −4 ...node_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/issue9.js
  175. +0 −5 ...node_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/mangle.js
  176. +0 −1 ...modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/null_string.js
  177. +0 −3 ...dules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/strict-equals.js
  178. +0 −3 ...it/node_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/var.js
  179. +0 −21 ..._modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/whitespace.js
  180. +0 −2 ...t/node_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/compress/test/with.js
  181. +0 −55 ...odules/qunit/node_modules/bunker/node_modules/burrito/node_modules/uglify-js/test/unit/scripts.js
  182. +0 −33 ...t/node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/uglify-js/tmp/hoist.js
  183. +0 −97 ...e_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/uglify-js/tmp/instrument.js
  184. +0 −138 ..._modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/uglify-js/tmp/instrument2.js
  185. +0 −30 ...it/node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/uglify-js/tmp/test.js
  186. +0 −17 ...t/node_modules/qunit/node_modules/bunker/node_modules/burrito/node_modules/uglify-js/uglify-js.js
  187. +0 −47 tests/qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/package.json
  188. +0 −31 tests/qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/test/ast.js
  189. +0 −52 tests/qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/test/err.js
  190. +0 −9 tests/qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/test/fail.js
  191. +0 −60 tests/qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/test/fail/src.js
  192. +0 −92 tests/qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/test/label.js
  193. +0 −34 tests/qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/test/microwave.js
  194. +0 −27 tests/qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/test/parent.js
  195. +0 −159 tests/qunit/node_modules/qunit/node_modules/bunker/node_modules/burrito/test/wrap.js
  196. +0 −41 tests/qunit/node_modules/qunit/node_modules/bunker/package.json
  197. +0 −36 tests/qunit/node_modules/qunit/node_modules/bunker/test/cover.js
  198. +0 −29 tests/qunit/node_modules/qunit/node_modules/bunker/test/return.js
  199. +0 −6 tests/qunit/node_modules/qunit/node_modules/bunker/test/src/cover.js
  200. +0 −1 tests/qunit/node_modules/qunit/node_modules/cli-table/.npmignore
  201. +0 −5 tests/qunit/node_modules/qunit/node_modules/cli-table/History.md
  202. +0 −14 tests/qunit/node_modules/qunit/node_modules/cli-table/Makefile
  203. +0 −82 tests/qunit/node_modules/qunit/node_modules/cli-table/README.md
  204. +0 −41 tests/qunit/node_modules/qunit/node_modules/cli-table/examples/revs.js
  205. +0 −40 tests/qunit/node_modules/qunit/node_modules/cli-table/examples/table.js
  206. +0 −2 tests/qunit/node_modules/qunit/node_modules/cli-table/index.js
  207. +0 −212 tests/qunit/node_modules/qunit/node_modules/cli-table/lib/cli-table/index.js
  208. +0 −95 tests/qunit/node_modules/qunit/node_modules/cli-table/lib/cli-table/utils.js
  209. +0 −20 tests/qunit/node_modules/qunit/node_modules/cli-table/node_modules/colors/MIT-LICENSE.txt
  210. +0 −30 tests/qunit/node_modules/qunit/node_modules/cli-table/node_modules/colors/ReadMe.md
  211. +0 −75 tests/qunit/node_modules/qunit/node_modules/cli-table/node_modules/colors/colors.js
  212. +0 −6 tests/qunit/node_modules/qunit/node_modules/cli-table/node_modules/colors/example.js
  213. +0 −20 tests/qunit/node_modules/qunit/node_modules/cli-table/node_modules/colors/package.json
  214. +0 −25 tests/qunit/node_modules/qunit/node_modules/cli-table/package.json
  215. +0 −6 tests/qunit/node_modules/qunit/node_modules/cli-table/test/common.js
  216. +0 −52 tests/qunit/node_modules/qunit/node_modules/cli-table/test/index.test.js
  217. +0 −102 tests/qunit/node_modules/qunit/node_modules/tracejs/README.md
  218. +0 −28 tests/qunit/node_modules/qunit/node_modules/tracejs/package.json
  219. +0 −7 tests/qunit/node_modules/qunit/node_modules/tracejs/test/fixture/example.js
  220. +0 −66 tests/qunit/node_modules/qunit/node_modules/tracejs/test/test.js
  221. +0 −234 tests/qunit/node_modules/qunit/node_modules/tracejs/trace.js
  222. +0 −3 tests/qunit/node_modules/qunit/node_modules/underscore/.npmignore
  223. +0 −1 tests/qunit/node_modules/qunit/node_modules/underscore/CNAME
  224. +0 −22 tests/qunit/node_modules/qunit/node_modules/underscore/LICENSE
  225. +0 −19 tests/qunit/node_modules/qunit/node_modules/underscore/README.md
  226. BIN tests/qunit/node_modules/qunit/node_modules/underscore/favicon.ico
  227. +0 −2,109 tests/qunit/node_modules/qunit/node_modules/underscore/index.html
  228. +0 −1 tests/qunit/node_modules/qunit/node_modules/underscore/index.js
  229. +0 −26 tests/qunit/node_modules/qunit/node_modules/underscore/package.json
  230. BIN tests/qunit/node_modules/qunit/node_modules/underscore/raw/underscore.psd
  231. +0 −32 tests/qunit/node_modules/qunit/node_modules/underscore/underscore-min.js
  232. +0 −1,059 tests/qunit/node_modules/qunit/node_modules/underscore/underscore.js
  233. +0 −62 tests/qunit/node_modules/qunit/package.json
  234. +0 −237 tests/qunit/node_modules/qunit/readme.md
  235. +0 −162 tests/qunit/node_modules/qunit/support/json/cycle.js
  236. +0 −7 tests/qunit/node_modules/qunit/support/qunit/.npmignore
  237. +0 −55 tests/qunit/node_modules/qunit/support/qunit/AUTHORS.txt
  238. +0 −448 tests/qunit/node_modules/qunit/support/qunit/History.md
  239. +0 −58 tests/qunit/node_modules/qunit/support/qunit/README.md
  240. +0 −16 tests/qunit/node_modules/qunit/support/qunit/addons/canvas/README.md
  241. +0 −76 tests/qunit/node_modules/qunit/support/qunit/addons/canvas/canvas-test.js
  242. +0 −15 tests/qunit/node_modules/qunit/support/qunit/addons/canvas/canvas.html
  243. +0 −6 tests/qunit/node_modules/qunit/support/qunit/addons/canvas/qunit-canvas.js
  244. +0 −17 tests/qunit/node_modules/qunit/support/qunit/addons/close-enough/README.md
  245. +0 −35 tests/qunit/node_modules/qunit/support/qunit/addons/close-enough/close-enough-test.js
  246. +0 −14 tests/qunit/node_modules/qunit/support/qunit/addons/close-enough/close-enough.html
  247. +0 −32 tests/qunit/node_modules/qunit/support/qunit/addons/close-enough/qunit-close-enough.js
  248. +0 −12 tests/qunit/node_modules/qunit/support/qunit/addons/composite/README.md
  249. +0 −26 tests/qunit/node_modules/qunit/support/qunit/addons/composite/composite-demo-test.html
  250. +0 −33 tests/qunit/node_modules/qunit/support/qunit/addons/composite/index.html
  251. +0 −13 tests/qunit/node_modules/qunit/support/qunit/addons/composite/qunit-composite.css
  252. +0 −102 tests/qunit/node_modules/qunit/support/qunit/addons/composite/qunit-composite.js
  253. +0 −44 tests/qunit/node_modules/qunit/support/qunit/addons/junitlogger/index.html
  254. +0 −268 tests/qunit/node_modules/qunit/support/qunit/addons/junitlogger/junitlogger.js
  255. +0 −14 tests/qunit/node_modules/qunit/support/qunit/addons/phantomjs/README.md
  256. +0 −102 tests/qunit/node_modules/qunit/support/qunit/addons/phantomjs/runner.js
  257. +0 −18 tests/qunit/node_modules/qunit/support/qunit/addons/step/README.md
  258. +0 −25 tests/qunit/node_modules/qunit/support/qunit/addons/step/qunit-step.js
  259. +0 −13 tests/qunit/node_modules/qunit/support/qunit/addons/step/step-test.js
  260. +0 −14 tests/qunit/node_modules/qunit/support/qunit/addons/step/step.html
  261. +0 −6 tests/qunit/node_modules/qunit/support/qunit/addons/themes/README.md
  262. +0 −362 tests/qunit/node_modules/qunit/support/qunit/addons/themes/gabe.css
  263. +0 −14 tests/qunit/node_modules/qunit/support/qunit/addons/themes/gabe.html
  264. +0 −208 tests/qunit/node_modules/qunit/support/qunit/addons/themes/nv.css
  265. +0 −14 tests/qunit/node_modules/qunit/support/qunit/addons/themes/nv.html
  266. +0 −100 tests/qunit/node_modules/qunit/support/qunit/grunt.js
  267. +0 −34 tests/qunit/node_modules/qunit/support/qunit/package.json
  268. +0 −231 tests/qunit/node_modules/qunit/support/qunit/qunit/qunit.css
  269. +0 −1,934 tests/qunit/node_modules/qunit/support/qunit/qunit/qunit.js
  270. +0 −1,432 tests/qunit/node_modules/qunit/support/qunit/test/deepEqual.js
  271. +0 −24 tests/qunit/node_modules/qunit/support/qunit/test/headless.html
  272. +0 −16 tests/qunit/node_modules/qunit/support/qunit/test/index.html
  273. +0 −13 tests/qunit/node_modules/qunit/support/qunit/test/logs.html
  274. +0 −180 tests/qunit/node_modules/qunit/support/qunit/test/logs.js
  275. +0 −22 tests/qunit/node_modules/qunit/support/qunit/test/narwhal-test.js
  276. +0 −20 tests/qunit/node_modules/qunit/support/qunit/test/node-test.js
  277. +0 −9 tests/qunit/node_modules/qunit/support/qunit/test/swarminject.js
  278. +0 −593 tests/qunit/node_modules/qunit/support/qunit/test/test.js
  279. +0 −1 tests/qunit/node_modules/qunit/test/fixtures/async-code.js
  280. +0 −27 tests/qunit/node_modules/qunit/test/fixtures/async-test.js
  281. +0 −3 tests/qunit/node_modules/qunit/test/fixtures/child-code-global.js
  282. +0 −3 tests/qunit/node_modules/qunit/test/fixtures/child-code-namespace.js
  283. +0 −5 tests/qunit/node_modules/qunit/test/fixtures/child-tests-global.js
  284. +0 −5 tests/qunit/node_modules/qunit/test/fixtures/child-tests-namespace.js
  285. +0 −9 tests/qunit/node_modules/qunit/test/fixtures/testrunner-code.js
  286. +0 −29 tests/qunit/node_modules/qunit/test/fixtures/testrunner-tests.js
  287. 0 tests/qunit/node_modules/qunit/test/fixtures/uncaught-exception-code.js
  288. +0 −1 tests/qunit/node_modules/qunit/test/fixtures/uncaught-exception-test.js
  289. +0 −152 tests/qunit/node_modules/qunit/test/testrunner.js
  290. +0 −244 tests/qunit/qunit.css
  291. +0 −1,977 tests/qunit/qunit.js
  292. +0 −234 tests/tests.js
  293. +17 −0 tsconfig.json
  294. +30 −0 webpack.config.js
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[{*.ts,*.md,*.html,*.json,webpack.config.js}]
end_of_line = lf
charset = utf-8
indent_style = tab
indent_size = 4

[package-lock.json]
indent_style = space
indent_size = 2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
1 change: 0 additions & 1 deletion .npmignore

This file was deleted.

2 changes: 0 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
The MIT License (MIT)

Copyright (c) 2014 yeikos

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
90 changes: 58 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,58 +1,84 @@
# Merge

Merge multiple objects into one, optionally creating a new cloned object.
Similar to the jQuery.extend but more flexible. Works in Node.js and the
browser.
(recursive)? merging of (cloned)? objects.

## Node.js Usage
# Install

## Node.js

```sh
npm install merge --save
npm i merge
```
```js
import merge from 'merge'
```

## Browser

```html
<script src="https://cdn.jsdelivr.net/gh/yeikos/js.merge/dist/merge.browser.min.js"></script>
```
```js
var merge = require('merge'), original, cloned;
window.merge
```

console.log(merge({one:'hello'}, {two: 'world'}));
// -> {"one": "hello", "two": "world"}
# API

original = { x: { y: 1 } };
cloned = merge(true, original);
cloned.x.y++;
```typescript
merge(clone: boolean, ...items: Object[])
merge(...items: Object[])
merge.recursive(clone: boolean, ...items: Object[])
merge.recursive(...items: Object[])
```

console.log(original.x.y, cloned.x.y);
// -> 1, 2
# Examples

console.log(merge.recursive(true, original, { x: { z: 2 } }));
// -> {"x": { "y": 1, "z": 2 } }
```js

```
// Merge

## Browser Usage
{
var objectA = {}

```html
<script src="https://cdn.jsdelivr.net/gh/yeikos/js.merge/merge.js"></script>
<script>
var original, cloned;
merge(objectA,
{ value: 1 },
{ str: 'hello world' }
)

console.log(merge({one:'hello'}, {two: 'world'}));
// -> {"one": "hello", "two": "world"}
var objectB = merge(true, objectA,
{ value: 2 }
)

original = { x: { y: 1 } };
cloned = merge(true, original);
cloned.x.y++;
objectA // { value: 1, str: 'hello world' }
objectB // { value: 2, str: 'hello world' }
}

console.log(original.x.y, cloned.x.y);
// -> 1, 2
// Recursive merge

console.log(merge.recursive(true, original, { x: { z: 2 } }));
// -> {"x": { "y": 1, "z": 2 } }
{
var objectA = {}

</script>
merge.recursive(objectA,
{ level: { value: 1 } },
{ level: { str: 'hello world' } }
)
var objectB = merge.recursive(true, objectA,
{ level: { value: 2 } }
)

objectA.level // { value: 1, str: 'hello world' }
objectB.level // { value: 2, str: 'hello world' }
}
```
# Test

## Tests
## Node.js

```sh
npm test
```
## Browser

```
./dist/merge.browser.test.html
```
42 changes: 21 additions & 21 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "merge",
"version": "1.2.1",
"homepage": "https://github.com/yeikos/js.merge",
"authors": [
"yeikos <yeikos@gmail.com>"
],
"description": "Merge multiple objects into one, optionally creating a new cloned object. Similar to the jQuery.extend but more flexible. Works in Node.js and the browser.",
"main": "merge.js",
"keywords": [
"merge",
"recursive",
"extend",
"clone",
"object",
"browser"
],
"license": "MIT",
"ignore": [
"tests"
]
}
"name": "merge",
"version": "2.1.0",
"homepage": "https://github.com/yeikos/js.merge",
"authors": [
"yeikos"
],
"description": "(recursive)? merging of (cloned)? objects.",
"main": "dist/merge.browser.min.js",
"keywords": [
"merge",
"recursive",
"extend",
"clone",
"object",
"browser"
],
"license": "MIT",
"ignore": [
"tests"
]
}
1 change: 1 addition & 0 deletions dist/merge.browser.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions dist/merge.browser.test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Mocha Tests</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
</head>
<body>
<div id="mocha"></div>
<script src="../node_modules/chai/chai.js"></script>
<script src="../node_modules/mocha/mocha.js"></script>
<script class="mocha-init">
mocha.setup('bdd');
mocha.checkLeaks();
</script>
<script src="./merge.browser.min.js"></script>
<script src="./merge.browser.test.js"></script>
<script class="mocha-exec">
mocha.run();
</script>
</body>
</html>
Loading