cloudstructs 0.12.6 → 0.12.8

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 (167) hide show
  1. package/.jsii +3 -3
  2. package/lib/codecommit-mirror/index.js +2 -2
  3. package/lib/dmarc/index.js +1 -1
  4. package/lib/ecs-service-roller/index.js +2 -2
  5. package/lib/email-receiver/receiver.js +1 -1
  6. package/lib/mjml-template/index.js +1 -1
  7. package/lib/saml-identity-provider/index.js +2 -2
  8. package/lib/slack-app/manifest.js +1 -1
  9. package/lib/slack-app/slack-app.js +2 -2
  10. package/lib/slack-events/index.js +1 -1
  11. package/lib/slack-textract/index.js +1 -1
  12. package/lib/ssl-server-test/index.js +1 -1
  13. package/lib/state-machine-cr-provider/index.js +1 -1
  14. package/lib/static-website/index.js +1 -1
  15. package/lib/toolkit-cleaner/index.js +3 -3
  16. package/lib/url-shortener/index.js +1 -1
  17. package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +153 -153
  18. package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +153 -153
  19. package/node_modules/@aws-sdk/client-lambda/package.json +43 -43
  20. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +6 -6
  21. package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +6 -6
  22. package/node_modules/@aws-sdk/client-sso/package.json +37 -37
  23. package/node_modules/@aws-sdk/core/dist-cjs/index.js +45 -10
  24. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +45 -10
  25. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +23 -5
  26. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +22 -5
  27. package/node_modules/@aws-sdk/core/package.json +16 -16
  28. package/node_modules/@aws-sdk/credential-provider-env/package.json +9 -9
  29. package/node_modules/@aws-sdk/credential-provider-http/package.json +14 -14
  30. package/node_modules/@aws-sdk/credential-provider-ini/package.json +18 -18
  31. package/node_modules/@aws-sdk/credential-provider-login/package.json +12 -12
  32. package/node_modules/@aws-sdk/credential-provider-node/package.json +16 -16
  33. package/node_modules/@aws-sdk/credential-provider-process/package.json +10 -10
  34. package/node_modules/@aws-sdk/credential-provider-sso/package.json +12 -12
  35. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +11 -11
  36. package/node_modules/@aws-sdk/middleware-host-header/package.json +7 -7
  37. package/node_modules/@aws-sdk/middleware-logger/package.json +7 -7
  38. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +7 -7
  39. package/node_modules/@aws-sdk/middleware-user-agent/package.json +10 -10
  40. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +9 -4
  41. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -0
  42. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +5 -2
  43. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +9 -4
  44. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +1 -0
  45. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +5 -2
  46. package/node_modules/@aws-sdk/nested-clients/package.json +35 -35
  47. package/node_modules/@aws-sdk/region-config-resolver/package.json +8 -8
  48. package/node_modules/@aws-sdk/token-providers/package.json +11 -11
  49. package/node_modules/@aws-sdk/types/package.json +5 -5
  50. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +1 -1
  51. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +1 -1
  52. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +1 -1
  53. package/node_modules/@aws-sdk/util-endpoints/package.json +8 -8
  54. package/node_modules/@aws-sdk/util-locate-window/package.json +5 -5
  55. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +5 -5
  56. package/node_modules/@aws-sdk/util-user-agent-node/package.json +9 -9
  57. package/node_modules/@aws-sdk/xml-builder/package.json +5 -5
  58. package/node_modules/@babel/runtime/package.json +1 -1
  59. package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
  60. package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
  61. package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +61 -2
  62. package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +3 -0
  63. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  64. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
  65. package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +61 -2
  66. package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +3 -0
  67. package/node_modules/@smithy/abort-controller/package.json +3 -3
  68. package/node_modules/@smithy/config-resolver/package.json +6 -6
  69. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +17 -0
  70. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +5 -0
  71. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +16 -6
  72. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +17 -0
  73. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +5 -0
  74. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +16 -6
  75. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  76. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  77. package/node_modules/@smithy/core/package.json +11 -11
  78. package/node_modules/@smithy/credential-provider-imds/package.json +6 -6
  79. package/node_modules/@smithy/eventstream-codec/package.json +3 -3
  80. package/node_modules/@smithy/eventstream-serde-browser/package.json +4 -4
  81. package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +3 -3
  82. package/node_modules/@smithy/eventstream-serde-node/package.json +4 -4
  83. package/node_modules/@smithy/eventstream-serde-universal/package.json +4 -4
  84. package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  85. package/node_modules/@smithy/hash-node/package.json +3 -3
  86. package/node_modules/@smithy/invalid-dependency/package.json +3 -3
  87. package/node_modules/@smithy/middleware-content-length/package.json +4 -4
  88. package/node_modules/@smithy/middleware-endpoint/package.json +12 -12
  89. package/node_modules/@smithy/middleware-retry/package.json +12 -12
  90. package/node_modules/@smithy/middleware-serde/package.json +4 -4
  91. package/node_modules/@smithy/middleware-stack/package.json +3 -3
  92. package/node_modules/@smithy/node-config-provider/package.json +5 -5
  93. package/node_modules/@smithy/node-http-handler/package.json +6 -6
  94. package/node_modules/@smithy/property-provider/package.json +3 -3
  95. package/node_modules/@smithy/protocol-http/package.json +3 -3
  96. package/node_modules/@smithy/querystring-builder/package.json +3 -3
  97. package/node_modules/@smithy/querystring-parser/package.json +3 -3
  98. package/node_modules/@smithy/service-error-classification/package.json +3 -3
  99. package/node_modules/@smithy/shared-ini-file-loader/package.json +3 -3
  100. package/node_modules/@smithy/signature-v4/package.json +5 -5
  101. package/node_modules/@smithy/smithy-client/package.json +11 -11
  102. package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  103. package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  104. package/node_modules/@smithy/types/package.json +2 -2
  105. package/node_modules/@smithy/url-parser/package.json +4 -4
  106. package/node_modules/@smithy/util-defaults-mode-browser/package.json +8 -8
  107. package/node_modules/@smithy/util-defaults-mode-node/package.json +11 -11
  108. package/node_modules/@smithy/util-endpoints/package.json +4 -4
  109. package/node_modules/@smithy/util-middleware/package.json +3 -3
  110. package/node_modules/@smithy/util-retry/package.json +4 -4
  111. package/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +20 -9
  112. package/node_modules/@smithy/util-stream/dist-cjs/index.js +8 -6
  113. package/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.js +19 -7
  114. package/node_modules/@smithy/util-stream/dist-es/index.js +1 -1
  115. package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +7 -7
  116. package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts +2 -3
  117. package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +4 -2
  118. package/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts +4 -1
  119. package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +7 -3
  120. package/node_modules/@smithy/util-stream/dist-types/headStream.browser.d.ts +1 -2
  121. package/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +2 -2
  122. package/node_modules/@smithy/util-stream/dist-types/index.d.ts +4 -1
  123. package/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +3 -0
  124. package/node_modules/@smithy/util-stream/dist-types/stream-type-check.d.ts +2 -1
  125. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +7 -7
  126. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.browser.d.ts +2 -3
  127. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +4 -2
  128. package/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +4 -1
  129. package/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +7 -3
  130. package/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.browser.d.ts +1 -2
  131. package/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.d.ts +2 -2
  132. package/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts +4 -1
  133. package/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +3 -0
  134. package/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +2 -1
  135. package/node_modules/@smithy/util-stream/package.json +5 -5
  136. package/node_modules/@smithy/util-waiter/package.json +4 -4
  137. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  138. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
  139. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +61 -2
  140. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +3 -0
  141. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  142. package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
  143. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +61 -2
  144. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +3 -0
  145. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  146. package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
  147. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +61 -2
  148. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +3 -0
  149. package/node_modules/eventemitter3/README.md +3 -12
  150. package/node_modules/eventemitter3/dist/eventemitter3.esm.js +353 -345
  151. package/node_modules/eventemitter3/dist/eventemitter3.esm.min.js +1 -1
  152. package/node_modules/eventemitter3/dist/eventemitter3.esm.min.js.map +1 -1
  153. package/node_modules/eventemitter3/dist/eventemitter3.umd.js +358 -350
  154. package/node_modules/eventemitter3/dist/eventemitter3.umd.min.js +1 -1
  155. package/node_modules/eventemitter3/dist/eventemitter3.umd.min.js.map +1 -1
  156. package/node_modules/eventemitter3/package.json +7 -12
  157. package/node_modules/lodash/README.md +2 -2
  158. package/node_modules/lodash/_baseUnset.js +47 -2
  159. package/node_modules/lodash/core.js +1 -1
  160. package/node_modules/lodash/core.min.js +1 -1
  161. package/node_modules/lodash/lodash.js +43 -4
  162. package/node_modules/lodash/lodash.min.js +57 -57
  163. package/node_modules/lodash/package.json +1 -1
  164. package/package.json +15 -15
  165. package/node_modules/lodash/flake.lock +0 -40
  166. package/node_modules/lodash/flake.nix +0 -20
  167. package/node_modules/lodash/release.md +0 -48
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).EventEmitter3=t()}(this,(function(){"use strict";var e={};return function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,r,s,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var c=new o(r,s||e,i),f=n?n+t:t;return e._events[f]?e._events[f].fn?e._events[f]=[e._events[f],c]:e._events[f].push(c):(e._events[f]=c,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function c(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),c.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},c.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,s=r.length,i=new Array(s);o<s;o++)i[o]=r[o].fn;return i},c.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},c.prototype.emit=function(e,t,r,o,s,i){var c=n?n+e:e;if(!this._events[c])return!1;var f,u,a=this._events[c],l=arguments.length;if(a.fn){switch(a.once&&this.removeListener(e,a.fn,void 0,!0),l){case 1:return a.fn.call(a.context),!0;case 2:return a.fn.call(a.context,t),!0;case 3:return a.fn.call(a.context,t,r),!0;case 4:return a.fn.call(a.context,t,r,o),!0;case 5:return a.fn.call(a.context,t,r,o,s),!0;case 6:return a.fn.call(a.context,t,r,o,s,i),!0}for(u=1,f=new Array(l-1);u<l;u++)f[u-1]=arguments[u];a.fn.apply(a.context,f)}else{var p,v=a.length;for(u=0;u<v;u++)switch(a[u].once&&this.removeListener(e,a[u].fn,void 0,!0),l){case 1:a[u].fn.call(a[u].context);break;case 2:a[u].fn.call(a[u].context,t);break;case 3:a[u].fn.call(a[u].context,t,r);break;case 4:a[u].fn.call(a[u].context,t,r,o);break;default:if(!f)for(p=1,f=new Array(l-1);p<l;p++)f[p-1]=arguments[p];a[u].fn.apply(a[u].context,f)}}return!0},c.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,r,o){var s=n?n+e:e;if(!this._events[s])return this;if(!t)return i(this,s),this;var c=this._events[s];if(c.fn)c.fn!==t||o&&!c.once||r&&c.context!==r||i(this,s);else{for(var f=0,u=[],a=c.length;f<a;f++)(c[f].fn!==t||o&&!c[f].once||r&&c[f].context!==r)&&u.push(c[f]);u.length?this._events[s]=1===u.length?u[0]:u:i(this,s)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(this,t)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c}({get exports(){return e},set exports(t){e=t}}),e}));//# sourceMappingURL=eventemitter3.umd.min.js.map
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).EventEmitter3=t()}(this,function(){"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t,n={exports:{}};var r=(t||(t=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,r,s,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var c=new o(r,s||e,i),f=n?n+t:t;return e._events[f]?e._events[f].fn?e._events[f]=[e._events[f],c]:e._events[f].push(c):(e._events[f]=c,e._eventsCount++),e}function i(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function c(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),c.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},c.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,s=r.length,i=new Array(s);o<s;o++)i[o]=r[o].fn;return i},c.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},c.prototype.emit=function(e,t,r,o,s,i){var c=n?n+e:e;if(!this._events[c])return!1;var f,u,a=this._events[c],l=arguments.length;if(a.fn){switch(a.once&&this.removeListener(e,a.fn,void 0,!0),l){case 1:return a.fn.call(a.context),!0;case 2:return a.fn.call(a.context,t),!0;case 3:return a.fn.call(a.context,t,r),!0;case 4:return a.fn.call(a.context,t,r,o),!0;case 5:return a.fn.call(a.context,t,r,o,s),!0;case 6:return a.fn.call(a.context,t,r,o,s,i),!0}for(u=1,f=new Array(l-1);u<l;u++)f[u-1]=arguments[u];a.fn.apply(a.context,f)}else{var p,v=a.length;for(u=0;u<v;u++)switch(a[u].once&&this.removeListener(e,a[u].fn,void 0,!0),l){case 1:a[u].fn.call(a[u].context);break;case 2:a[u].fn.call(a[u].context,t);break;case 3:a[u].fn.call(a[u].context,t,r);break;case 4:a[u].fn.call(a[u].context,t,r,o);break;default:if(!f)for(p=1,f=new Array(l-1);p<l;p++)f[p-1]=arguments[p];a[u].fn.apply(a[u].context,f)}}return!0},c.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,r,o){var s=n?n+e:e;if(!this._events[s])return this;if(!t)return i(this,s),this;var c=this._events[s];if(c.fn)c.fn!==t||o&&!c.once||r&&c.context!==r||i(this,s);else{for(var f=0,u=[],a=c.length;f<a;f++)(c[f].fn!==t||o&&!c[f].once||r&&c[f].context!==r)&&u.push(c[f]);u.length?this._events[s]=1===u.length?u[0]:u:i(this,s)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(this,t)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c}(n)),n.exports);return e(r)});//# sourceMappingURL=eventemitter3.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"eventemitter3.umd.min.js","sources":["../index.js"],"sourcesContent":["'use strict';\n\nvar has = Object.prototype.hasOwnProperty\n , prefix = '~';\n\n/**\n * Constructor to create a storage for our `EE` objects.\n * An `Events` instance is a plain object whose properties are event names.\n *\n * @constructor\n * @private\n */\nfunction Events() {}\n\n//\n// We try to not inherit from `Object.prototype`. In some engines creating an\n// instance in this way is faster than calling `Object.create(null)` directly.\n// If `Object.create(null)` is not supported we prefix the event names with a\n// character to make sure that the built-in object properties are not\n// overridden or used as an attack vector.\n//\nif (Object.create) {\n Events.prototype = Object.create(null);\n\n //\n // This hack is needed because the `__proto__` property is still inherited in\n // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5.\n //\n if (!new Events().__proto__) prefix = false;\n}\n\n/**\n * Representation of a single event listener.\n *\n * @param {Function} fn The listener function.\n * @param {*} context The context to invoke the listener with.\n * @param {Boolean} [once=false] Specify if the listener is a one-time listener.\n * @constructor\n * @private\n */\nfunction EE(fn, context, once) {\n this.fn = fn;\n this.context = context;\n this.once = once || false;\n}\n\n/**\n * Add a listener for a given event.\n *\n * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} context The context to invoke the listener with.\n * @param {Boolean} once Specify if the listener is a one-time listener.\n * @returns {EventEmitter}\n * @private\n */\nfunction addListener(emitter, event, fn, context, once) {\n if (typeof fn !== 'function') {\n throw new TypeError('The listener must be a function');\n }\n\n var listener = new EE(fn, context || emitter, once)\n , evt = prefix ? prefix + event : event;\n\n if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;\n else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);\n else emitter._events[evt] = [emitter._events[evt], listener];\n\n return emitter;\n}\n\n/**\n * Clear event by name.\n *\n * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.\n * @param {(String|Symbol)} evt The Event name.\n * @private\n */\nfunction clearEvent(emitter, evt) {\n if (--emitter._eventsCount === 0) emitter._events = new Events();\n else delete emitter._events[evt];\n}\n\n/**\n * Minimal `EventEmitter` interface that is molded against the Node.js\n * `EventEmitter` interface.\n *\n * @constructor\n * @public\n */\nfunction EventEmitter() {\n this._events = new Events();\n this._eventsCount = 0;\n}\n\n/**\n * Return an array listing the events for which the emitter has registered\n * listeners.\n *\n * @returns {Array}\n * @public\n */\nEventEmitter.prototype.eventNames = function eventNames() {\n var names = []\n , events\n , name;\n\n if (this._eventsCount === 0) return names;\n\n for (name in (events = this._events)) {\n if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);\n }\n\n if (Object.getOwnPropertySymbols) {\n return names.concat(Object.getOwnPropertySymbols(events));\n }\n\n return names;\n};\n\n/**\n * Return the listeners registered for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Array} The registered listeners.\n * @public\n */\nEventEmitter.prototype.listeners = function listeners(event) {\n var evt = prefix ? prefix + event : event\n , handlers = this._events[evt];\n\n if (!handlers) return [];\n if (handlers.fn) return [handlers.fn];\n\n for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) {\n ee[i] = handlers[i].fn;\n }\n\n return ee;\n};\n\n/**\n * Return the number of listeners listening to a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Number} The number of listeners.\n * @public\n */\nEventEmitter.prototype.listenerCount = function listenerCount(event) {\n var evt = prefix ? prefix + event : event\n , listeners = this._events[evt];\n\n if (!listeners) return 0;\n if (listeners.fn) return 1;\n return listeners.length;\n};\n\n/**\n * Calls each of the listeners registered for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Boolean} `true` if the event had listeners, else `false`.\n * @public\n */\nEventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {\n var evt = prefix ? prefix + event : event;\n\n if (!this._events[evt]) return false;\n\n var listeners = this._events[evt]\n , len = arguments.length\n , args\n , i;\n\n if (listeners.fn) {\n if (listeners.once) this.removeListener(event, listeners.fn, undefined, true);\n\n switch (len) {\n case 1: return listeners.fn.call(listeners.context), true;\n case 2: return listeners.fn.call(listeners.context, a1), true;\n case 3: return listeners.fn.call(listeners.context, a1, a2), true;\n case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;\n case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;\n case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;\n }\n\n for (i = 1, args = new Array(len -1); i < len; i++) {\n args[i - 1] = arguments[i];\n }\n\n listeners.fn.apply(listeners.context, args);\n } else {\n var length = listeners.length\n , j;\n\n for (i = 0; i < length; i++) {\n if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true);\n\n switch (len) {\n case 1: listeners[i].fn.call(listeners[i].context); break;\n case 2: listeners[i].fn.call(listeners[i].context, a1); break;\n case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break;\n case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break;\n default:\n if (!args) for (j = 1, args = new Array(len -1); j < len; j++) {\n args[j - 1] = arguments[j];\n }\n\n listeners[i].fn.apply(listeners[i].context, args);\n }\n }\n }\n\n return true;\n};\n\n/**\n * Add a listener for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.on = function on(event, fn, context) {\n return addListener(this, event, fn, context, false);\n};\n\n/**\n * Add a one-time listener for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.once = function once(event, fn, context) {\n return addListener(this, event, fn, context, true);\n};\n\n/**\n * Remove the listeners of a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn Only remove the listeners that match this function.\n * @param {*} context Only remove the listeners that have this context.\n * @param {Boolean} once Only remove one-time listeners.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {\n var evt = prefix ? prefix + event : event;\n\n if (!this._events[evt]) return this;\n if (!fn) {\n clearEvent(this, evt);\n return this;\n }\n\n var listeners = this._events[evt];\n\n if (listeners.fn) {\n if (\n listeners.fn === fn &&\n (!once || listeners.once) &&\n (!context || listeners.context === context)\n ) {\n clearEvent(this, evt);\n }\n } else {\n for (var i = 0, events = [], length = listeners.length; i < length; i++) {\n if (\n listeners[i].fn !== fn ||\n (once && !listeners[i].once) ||\n (context && listeners[i].context !== context)\n ) {\n events.push(listeners[i]);\n }\n }\n\n //\n // Reset the array, or remove it completely if we have no more listeners.\n //\n if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;\n else clearEvent(this, evt);\n }\n\n return this;\n};\n\n/**\n * Remove all listeners, or those of the specified event.\n *\n * @param {(String|Symbol)} [event] The event name.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {\n var evt;\n\n if (event) {\n evt = prefix ? prefix + event : event;\n if (this._events[evt]) clearEvent(this, evt);\n } else {\n this._events = new Events();\n this._eventsCount = 0;\n }\n\n return this;\n};\n\n//\n// Alias methods names because people roll like that.\n//\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\nEventEmitter.prototype.addListener = EventEmitter.prototype.on;\n\n//\n// Expose the prefix.\n//\nEventEmitter.prefixed = prefix;\n\n//\n// Allow `EventEmitter` to be imported as module namespace.\n//\nEventEmitter.EventEmitter = EventEmitter;\n\n//\n// Expose the module.\n//\nif ('undefined' !== typeof module) {\n module.exports = EventEmitter;\n}\n"],"names":["has","Object","prototype","hasOwnProperty","prefix","Events","EE","fn","context","once","this","addListener","emitter","event","TypeError","listener","evt","_events","push","_eventsCount","clearEvent","EventEmitter","create","__proto__","eventNames","events","name","names","call","slice","getOwnPropertySymbols","concat","listeners","handlers","i","l","length","ee","Array","listenerCount","emit","a1","a2","a3","a4","a5","args","len","arguments","removeListener","undefined","apply","j","on","removeAllListeners","off","prefixed","module","exports"],"mappings":"0QAEA,IAAIA,EAAMC,OAAOC,UAAUC,eACvBC,EAAS,IASb,SAASC,IAAW,CA4BpB,SAASC,EAAGC,EAAIC,EAASC,GACvBC,KAAKH,GAAKA,EACVG,KAAKF,QAAUA,EACfE,KAAKD,KAAOA,IAAQ,CACrB,CAaD,SAASE,EAAYC,EAASC,EAAON,EAAIC,EAASC,GAChD,GAAkB,mBAAPF,EACT,MAAM,IAAIO,UAAU,mCAGtB,IAAIC,EAAW,IAAIT,EAAGC,EAAIC,GAAWI,EAASH,GAC1CO,EAAMZ,EAASA,EAASS,EAAQA,EAMpC,OAJKD,EAAQK,QAAQD,GACXJ,EAAQK,QAAQD,GAAKT,GAC1BK,EAAQK,QAAQD,GAAO,CAACJ,EAAQK,QAAQD,GAAMD,GADhBH,EAAQK,QAAQD,GAAKE,KAAKH,IADlCH,EAAQK,QAAQD,GAAOD,EAAUH,EAAQO,gBAI7DP,CACR,CASD,SAASQ,EAAWR,EAASI,GACI,KAAzBJ,EAAQO,aAAoBP,EAAQK,QAAU,IAAIZ,SAC5CO,EAAQK,QAAQD,EAC7B,CASD,SAASK,IACPX,KAAKO,QAAU,IAAIZ,EACnBK,KAAKS,aAAe,CACrB,CAzEGlB,OAAOqB,SACTjB,EAAOH,UAAYD,OAAOqB,OAAO,OAM5B,IAAIjB,GAASkB,YAAWnB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AAUqD,IAAMlC,EAAanB,UAAU+C,eACpD5B,EAAanB,UAAUS,YAAcU,EAAanB,UAAUmD,GAK5DhC,EAAamC,SAAWpD,EAKxBiB,EAAaA,aAAeA,EAM1BoC,EAAAC,QAAiBrC"}
1
+ {"version":3,"file":"eventemitter3.umd.min.js","sources":["../index.js?commonjs-entry","../index.js"],"sourcesContent":["import { getDefaultExportFromCjs } from \"\u0000commonjsHelpers.js\";\nimport { __require as requireEventemitter3 } from \"/home/luigi/eventemitter3/index.js\";\nvar eventemitter3Exports = requireEventemitter3();\nexport { eventemitter3Exports as __moduleExports };\nexport default /*@__PURE__*/getDefaultExportFromCjs(eventemitter3Exports);","'use strict';\n\nvar has = Object.prototype.hasOwnProperty\n , prefix = '~';\n\n/**\n * Constructor to create a storage for our `EE` objects.\n * An `Events` instance is a plain object whose properties are event names.\n *\n * @constructor\n * @private\n */\nfunction Events() {}\n\n//\n// We try to not inherit from `Object.prototype`. In some engines creating an\n// instance in this way is faster than calling `Object.create(null)` directly.\n// If `Object.create(null)` is not supported we prefix the event names with a\n// character to make sure that the built-in object properties are not\n// overridden or used as an attack vector.\n//\nif (Object.create) {\n Events.prototype = Object.create(null);\n\n //\n // This hack is needed because the `__proto__` property is still inherited in\n // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5.\n //\n if (!new Events().__proto__) prefix = false;\n}\n\n/**\n * Representation of a single event listener.\n *\n * @param {Function} fn The listener function.\n * @param {*} context The context to invoke the listener with.\n * @param {Boolean} [once=false] Specify if the listener is a one-time listener.\n * @constructor\n * @private\n */\nfunction EE(fn, context, once) {\n this.fn = fn;\n this.context = context;\n this.once = once || false;\n}\n\n/**\n * Add a listener for a given event.\n *\n * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} context The context to invoke the listener with.\n * @param {Boolean} once Specify if the listener is a one-time listener.\n * @returns {EventEmitter}\n * @private\n */\nfunction addListener(emitter, event, fn, context, once) {\n if (typeof fn !== 'function') {\n throw new TypeError('The listener must be a function');\n }\n\n var listener = new EE(fn, context || emitter, once)\n , evt = prefix ? prefix + event : event;\n\n if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;\n else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);\n else emitter._events[evt] = [emitter._events[evt], listener];\n\n return emitter;\n}\n\n/**\n * Clear event by name.\n *\n * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.\n * @param {(String|Symbol)} evt The Event name.\n * @private\n */\nfunction clearEvent(emitter, evt) {\n if (--emitter._eventsCount === 0) emitter._events = new Events();\n else delete emitter._events[evt];\n}\n\n/**\n * Minimal `EventEmitter` interface that is molded against the Node.js\n * `EventEmitter` interface.\n *\n * @constructor\n * @public\n */\nfunction EventEmitter() {\n this._events = new Events();\n this._eventsCount = 0;\n}\n\n/**\n * Return an array listing the events for which the emitter has registered\n * listeners.\n *\n * @returns {Array}\n * @public\n */\nEventEmitter.prototype.eventNames = function eventNames() {\n var names = []\n , events\n , name;\n\n if (this._eventsCount === 0) return names;\n\n for (name in (events = this._events)) {\n if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);\n }\n\n if (Object.getOwnPropertySymbols) {\n return names.concat(Object.getOwnPropertySymbols(events));\n }\n\n return names;\n};\n\n/**\n * Return the listeners registered for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Array} The registered listeners.\n * @public\n */\nEventEmitter.prototype.listeners = function listeners(event) {\n var evt = prefix ? prefix + event : event\n , handlers = this._events[evt];\n\n if (!handlers) return [];\n if (handlers.fn) return [handlers.fn];\n\n for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) {\n ee[i] = handlers[i].fn;\n }\n\n return ee;\n};\n\n/**\n * Return the number of listeners listening to a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Number} The number of listeners.\n * @public\n */\nEventEmitter.prototype.listenerCount = function listenerCount(event) {\n var evt = prefix ? prefix + event : event\n , listeners = this._events[evt];\n\n if (!listeners) return 0;\n if (listeners.fn) return 1;\n return listeners.length;\n};\n\n/**\n * Calls each of the listeners registered for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Boolean} `true` if the event had listeners, else `false`.\n * @public\n */\nEventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {\n var evt = prefix ? prefix + event : event;\n\n if (!this._events[evt]) return false;\n\n var listeners = this._events[evt]\n , len = arguments.length\n , args\n , i;\n\n if (listeners.fn) {\n if (listeners.once) this.removeListener(event, listeners.fn, undefined, true);\n\n switch (len) {\n case 1: return listeners.fn.call(listeners.context), true;\n case 2: return listeners.fn.call(listeners.context, a1), true;\n case 3: return listeners.fn.call(listeners.context, a1, a2), true;\n case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;\n case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;\n case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;\n }\n\n for (i = 1, args = new Array(len -1); i < len; i++) {\n args[i - 1] = arguments[i];\n }\n\n listeners.fn.apply(listeners.context, args);\n } else {\n var length = listeners.length\n , j;\n\n for (i = 0; i < length; i++) {\n if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true);\n\n switch (len) {\n case 1: listeners[i].fn.call(listeners[i].context); break;\n case 2: listeners[i].fn.call(listeners[i].context, a1); break;\n case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break;\n case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break;\n default:\n if (!args) for (j = 1, args = new Array(len -1); j < len; j++) {\n args[j - 1] = arguments[j];\n }\n\n listeners[i].fn.apply(listeners[i].context, args);\n }\n }\n }\n\n return true;\n};\n\n/**\n * Add a listener for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.on = function on(event, fn, context) {\n return addListener(this, event, fn, context, false);\n};\n\n/**\n * Add a one-time listener for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.once = function once(event, fn, context) {\n return addListener(this, event, fn, context, true);\n};\n\n/**\n * Remove the listeners of a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn Only remove the listeners that match this function.\n * @param {*} context Only remove the listeners that have this context.\n * @param {Boolean} once Only remove one-time listeners.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {\n var evt = prefix ? prefix + event : event;\n\n if (!this._events[evt]) return this;\n if (!fn) {\n clearEvent(this, evt);\n return this;\n }\n\n var listeners = this._events[evt];\n\n if (listeners.fn) {\n if (\n listeners.fn === fn &&\n (!once || listeners.once) &&\n (!context || listeners.context === context)\n ) {\n clearEvent(this, evt);\n }\n } else {\n for (var i = 0, events = [], length = listeners.length; i < length; i++) {\n if (\n listeners[i].fn !== fn ||\n (once && !listeners[i].once) ||\n (context && listeners[i].context !== context)\n ) {\n events.push(listeners[i]);\n }\n }\n\n //\n // Reset the array, or remove it completely if we have no more listeners.\n //\n if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;\n else clearEvent(this, evt);\n }\n\n return this;\n};\n\n/**\n * Remove all listeners, or those of the specified event.\n *\n * @param {(String|Symbol)} [event] The event name.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {\n var evt;\n\n if (event) {\n evt = prefix ? prefix + event : event;\n if (this._events[evt]) clearEvent(this, evt);\n } else {\n this._events = new Events();\n this._eventsCount = 0;\n }\n\n return this;\n};\n\n//\n// Alias methods names because people roll like that.\n//\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\nEventEmitter.prototype.addListener = EventEmitter.prototype.on;\n\n//\n// Expose the prefix.\n//\nEventEmitter.prefixed = prefix;\n\n//\n// Allow `EventEmitter` to be imported as module namespace.\n//\nEventEmitter.EventEmitter = EventEmitter;\n\n//\n// Expose the module.\n//\nif ('undefined' !== typeof module) {\n module.exports = EventEmitter;\n}\n"],"names":["eventemitter3Exports","has","Object","prototype","hasOwnProperty","prefix","Events","EE","fn","context","once","this","addListener","emitter","event","TypeError","listener","evt","_events","push","_eventsCount","clearEvent","EventEmitter","create","__proto__","eventNames","events","name","names","call","slice","getOwnPropertySymbols","concat","listeners","handlers","i","l","length","ee","Array","listenerCount","emit","a1","a2","a3","a4","a5","args","len","arguments","removeListener","undefined","apply","j","on","removeAllListeners","off","prefixed","module","getDefaultExportFromCjs"],"mappings":"sWAEA,IAAIA,uBCAJ,IAAIC,EAAMC,OAAOC,UAAUC,eACvBC,EAAS,IASb,SAASC,IAAS,CA4BlB,SAASC,EAAGC,EAAIC,EAASC,GACvBC,KAAKH,GAAKA,EACVG,KAAKF,QAAUA,EACfE,KAAKD,KAAOA,IAAQ,CACtB,CAaA,SAASE,EAAYC,EAASC,EAAON,EAAIC,EAASC,GAChD,GAAkB,mBAAPF,EACT,MAAM,IAAIO,UAAU,mCAGtB,IAAIC,EAAW,IAAIT,EAAGC,EAAIC,GAAWI,EAASH,GAC1CO,EAAMZ,EAASA,EAASS,EAAQA,EAMpC,OAJKD,EAAQK,QAAQD,GACXJ,EAAQK,QAAQD,GAAKT,GAC1BK,EAAQK,QAAQD,GAAO,CAACJ,EAAQK,QAAQD,GAAMD,GADhBH,EAAQK,QAAQD,GAAKE,KAAKH,IADlCH,EAAQK,QAAQD,GAAOD,EAAUH,EAAQO,gBAI7DP,CACT,CASA,SAASQ,EAAWR,EAASI,GACI,MAAzBJ,EAAQO,aAAoBP,EAAQK,QAAU,IAAIZ,SAC5CO,EAAQK,QAAQD,EAC9B,CASA,SAASK,IACPX,KAAKO,QAAU,IAAIZ,EACnBK,KAAKS,aAAe,CACtB,CAzEIlB,OAAOqB,SACTjB,EAAOH,UAAYD,OAAO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K,KAAKS,aAAe,GAGfT,IACT,EAKAW,EAAanB,UAAUqD,IAAMlC,EAAanB,UAAU+C,eACpD5B,EAAanB,UAAUS,YAAcU,EAAanB,UAAUmD,GAK5DhC,EAAamC,SAAWpD,EAKxBiB,EAAaA,aAAeA,EAM1BoC,UAAiBpC,kBD1UsD,OAA7CqC,EAAwB3D,EAAqB"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eventemitter3",
3
- "version": "5.0.1",
3
+ "version": "5.0.4",
4
4
  "description": "EventEmitter3 focuses on performance while maintaining a Node.js AND browser compatible interface.",
5
5
  "exports": {
6
6
  ".": {
@@ -13,12 +13,11 @@
13
13
  "main": "index.js",
14
14
  "types": "index.d.ts",
15
15
  "scripts": {
16
- "rollup": "rimraf dist umd && rollup -c",
16
+ "rollup": "rm -rf dist && rollup -c",
17
17
  "benchmark": "find benchmarks/run -name '*.js' -exec benchmarks/start.sh {} \\;",
18
18
  "test": "c8 --reporter=lcov --reporter=text mocha test/test.js",
19
19
  "test-esm": "mocha test/test.mjs",
20
- "prepublishOnly": "npm run rollup",
21
- "test-browser": "node test/browser.js"
20
+ "prepublishOnly": "npm run rollup"
22
21
  },
23
22
  "files": [
24
23
  "index.js",
@@ -53,15 +52,11 @@
53
52
  "url": "https://github.com/primus/eventemitter3/issues"
54
53
  },
55
54
  "devDependencies": {
56
- "@rollup/plugin-commonjs": "^24.0.0",
55
+ "@rollup/plugin-commonjs": "^29.0.0",
57
56
  "@rollup/plugin-terser": "^0.4.0",
58
57
  "assume": "^2.2.0",
59
- "c8": "^7.3.1",
60
- "mocha": "^10.0.0",
61
- "pre-commit": "^1.2.0",
62
- "rimraf": "^4.1.2",
63
- "rollup": "^3.4.0",
64
- "sauce-browsers": "^3.0.0",
65
- "sauce-test": "^1.3.3"
58
+ "c8": "^10.1.3",
59
+ "mocha": "^11.7.5",
60
+ "rollup": "^4.5.2"
66
61
  }
67
62
  }
@@ -1,4 +1,4 @@
1
- # lodash v4.17.21
1
+ # lodash v4.17.23
2
2
 
3
3
  The [Lodash](https://lodash.com/) library exported as [Node.js](https://nodejs.org/) modules.
4
4
 
@@ -28,7 +28,7 @@ var at = require('lodash/at');
28
28
  var curryN = require('lodash/fp/curryN');
29
29
  ```
30
30
 
31
- See the [package source](https://github.com/lodash/lodash/tree/4.17.21-npm) for more details.
31
+ See the [package source](https://github.com/lodash/lodash/tree/4.17.23-npm) for more details.
32
32
 
33
33
  **Note:**<br>
34
34
  Install [n_](https://www.npmjs.com/package/n_) for Lodash use in the Node.js < 6 REPL.
@@ -3,6 +3,12 @@ var castPath = require('./_castPath'),
3
3
  parent = require('./_parent'),
4
4
  toKey = require('./_toKey');
5
5
 
6
+ /** Used for built-in method references. */
7
+ var objectProto = Object.prototype;
8
+
9
+ /** Used to check objects for own properties. */
10
+ var hasOwnProperty = objectProto.hasOwnProperty;
11
+
6
12
  /**
7
13
  * The base implementation of `_.unset`.
8
14
  *
@@ -13,8 +19,47 @@ var castPath = require('./_castPath'),
13
19
  */
14
20
  function baseUnset(object, path) {
15
21
  path = castPath(path, object);
16
- object = parent(object, path);
17
- return object == null || delete object[toKey(last(path))];
22
+
23
+ // Prevent prototype pollution, see: https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg
24
+ var index = -1,
25
+ length = path.length;
26
+
27
+ if (!length) {
28
+ return true;
29
+ }
30
+
31
+ var isRootPrimitive = object == null || (typeof object !== 'object' && typeof object !== 'function');
32
+
33
+ while (++index < length) {
34
+ var key = path[index];
35
+
36
+ // skip non-string keys (e.g., Symbols, numbers)
37
+ if (typeof key !== 'string') {
38
+ continue;
39
+ }
40
+
41
+ // Always block "__proto__" anywhere in the path if it's not expected
42
+ if (key === '__proto__' && !hasOwnProperty.call(object, '__proto__')) {
43
+ return false;
44
+ }
45
+
46
+ // Block "constructor.prototype" chains
47
+ if (key === 'constructor' &&
48
+ (index + 1) < length &&
49
+ typeof path[index + 1] === 'string' &&
50
+ path[index + 1] === 'prototype') {
51
+
52
+ // Allow ONLY when the path starts at a primitive root, e.g., _.unset(0, 'constructor.prototype.a')
53
+ if (isRootPrimitive && index === 0) {
54
+ continue;
55
+ }
56
+
57
+ return false;
58
+ }
59
+ }
60
+
61
+ var obj = parent(object, path);
62
+ return obj == null || delete obj[toKey(last(path))];
18
63
  }
19
64
 
20
65
  module.exports = baseUnset;
@@ -13,7 +13,7 @@
13
13
  var undefined;
14
14
 
15
15
  /** Used as the semantic version number. */
16
- var VERSION = '4.17.21';
16
+ var VERSION = '4.17.23';
17
17
 
18
18
  /** Error message constants. */
19
19
  var FUNC_ERROR_TEXT = 'Expected a function';
@@ -25,5 +25,5 @@ return G(2,n)},o.pick=$n,o.slice=function(n,t,r){var e=null==n?0:n.length;return
25
25
  return t(n),n},o.thru=function(n,t){return t(n)},o.toArray=function(n){return M(n)?n.length?A(n):[]:W(n)},o.values=W,o.extend=Bn,Y(o,o),o.clone=function(n){return V(n)?Nn(n)?A(n):k(n,_n(n)):n},o.escape=function(n){return(n=Q(n))&&rn.test(n)?n.replace(tn,fn):n},o.every=function(n,t,r){return t=r?Z:t,f(n,g(t))},o.find=An,o.forEach=z,o.has=function(n,t){return null!=n&&pn.call(n,t)},o.head=q,o.identity=X,o.indexOf=P,o.isArguments=n,o.isArray=Nn,o.isBoolean=function(n){return true===n||false===n||H(n)&&"[object Boolean]"==hn.call(n);
26
26
  },o.isDate=function(n){return H(n)&&"[object Date]"==hn.call(n)},o.isEmpty=function(t){return M(t)&&(Nn(t)||L(t)||U(t.splice)||n(t))?!t.length:!_n(t).length},o.isEqual=function(n,t){return b(n,t)},o.isFinite=function(n){return typeof n=="number"&&gn(n)},o.isFunction=U,o.isNaN=function(n){return K(n)&&n!=+n},o.isNull=function(n){return null===n},o.isNumber=K,o.isObject=V,o.isRegExp=function(n){return H(n)&&"[object RegExp]"==hn.call(n)},o.isString=L,o.isUndefined=function(n){return n===Z},o.last=function(n){
27
27
  var t=null==n?0:n.length;return t?n[t-1]:Z},o.max=function(n){return n&&n.length?a(n,X,v):Z},o.min=function(n){return n&&n.length?a(n,X,_):Z},o.noConflict=function(){return on._===this&&(on._=vn),this},o.noop=function(){},o.reduce=C,o.result=function(n,t,r){return t=null==n?Z:n[t],t===Z&&(t=r),U(t)?t.call(n):t},o.size=function(n){return null==n?0:(n=M(n)?n:_n(n),n.length)},o.some=function(n,t,r){return t=r?Z:t,E(n,g(t))},o.uniqueId=function(n){var t=++sn;return Q(n)+t},o.each=z,o.first=q,Y(o,function(){
28
- var n={};return s(o,function(t,r){pn.call(o.prototype,r)||(n[r]=t)}),n}(),{chain:false}),o.VERSION="4.17.21",mn("pop join replace reverse split push shift sort splice unshift".split(" "),function(n){var t=(/^(?:replace|split)$/.test(n)?String.prototype:an)[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|join|replace|shift)$/.test(n);o.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Nn(u)?u:[],n)}return this[r](function(r){return t.apply(Nn(r)?r:[],n);
28
+ var n={};return s(o,function(t,r){pn.call(o.prototype,r)||(n[r]=t)}),n}(),{chain:false}),o.VERSION="4.17.23",mn("pop join replace reverse split push shift sort splice unshift".split(" "),function(n){var t=(/^(?:replace|split)$/.test(n)?String.prototype:an)[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|join|replace|shift)$/.test(n);o.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Nn(u)?u:[],n)}return this[r](function(r){return t.apply(Nn(r)?r:[],n);
29
29
  })}}),o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=function(){return w(this.__wrapped__,this.__actions__)},typeof define=="function"&&typeof define.amd=="object"&&define.amd?(on._=o, define(function(){return o})):cn?((cn.exports=o)._=o,un._=o):on._=o}).call(this);
@@ -12,7 +12,7 @@
12
12
  var undefined;
13
13
 
14
14
  /** Used as the semantic version number. */
15
- var VERSION = '4.17.21';
15
+ var VERSION = '4.17.23';
16
16
 
17
17
  /** Used as the size to enable large array optimizations. */
18
18
  var LARGE_ARRAY_SIZE = 200;
@@ -3766,7 +3766,7 @@
3766
3766
  if (isArray(iteratee)) {
3767
3767
  return function(value) {
3768
3768
  return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
3769
- }
3769
+ };
3770
3770
  }
3771
3771
  return iteratee;
3772
3772
  });
@@ -4370,8 +4370,47 @@
4370
4370
  */
4371
4371
  function baseUnset(object, path) {
4372
4372
  path = castPath(path, object);
4373
- object = parent(object, path);
4374
- return object == null || delete object[toKey(last(path))];
4373
+
4374
+ // Prevent prototype pollution, see: https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg
4375
+ var index = -1,
4376
+ length = path.length;
4377
+
4378
+ if (!length) {
4379
+ return true;
4380
+ }
4381
+
4382
+ var isRootPrimitive = object == null || (typeof object !== 'object' && typeof object !== 'function');
4383
+
4384
+ while (++index < length) {
4385
+ var key = path[index];
4386
+
4387
+ // skip non-string keys (e.g., Symbols, numbers)
4388
+ if (typeof key !== 'string') {
4389
+ continue;
4390
+ }
4391
+
4392
+ // Always block "__proto__" anywhere in the path if it's not expected
4393
+ if (key === '__proto__' && !hasOwnProperty.call(object, '__proto__')) {
4394
+ return false;
4395
+ }
4396
+
4397
+ // Block "constructor.prototype" chains
4398
+ if (key === 'constructor' &&
4399
+ (index + 1) < length &&
4400
+ typeof path[index + 1] === 'string' &&
4401
+ path[index + 1] === 'prototype') {
4402
+
4403
+ // Allow ONLY when the path starts at a primitive root, e.g., _.unset(0, 'constructor.prototype.a')
4404
+ if (isRootPrimitive && index === 0) {
4405
+ continue;
4406
+ }
4407
+
4408
+ return false;
4409
+ }
4410
+ }
4411
+
4412
+ var obj = parent(object, path);
4413
+ return obj == null || delete obj[toKey(last(path))];
4375
4414
  }
4376
4415
 
4377
4416
  /**