@psnext/slingcli 2.4.20260521-1 → 2.4.20260521-2

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 (88) hide show
  1. package/node_modules/@aws-sdk/core/package.json +5 -5
  2. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  3. package/node_modules/@aws-sdk/credential-provider-http/package.json +7 -7
  4. package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -12
  5. package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
  6. package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
  7. package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
  8. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +6 -6
  9. package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
  10. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
  11. package/node_modules/@aws-sdk/eventstream-handler-node/package.json +4 -4
  12. package/node_modules/@aws-sdk/middleware-eventstream/package.json +4 -4
  13. package/node_modules/@aws-sdk/middleware-websocket/package.json +6 -6
  14. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  15. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  16. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  17. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  18. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  19. package/node_modules/@aws-sdk/nested-clients/package.json +8 -8
  20. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
  21. package/node_modules/@aws-sdk/types/package.json +2 -2
  22. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  23. package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +45 -9
  24. package/node_modules/@earendil-works/pi-ai/package.json +2 -2
  25. package/node_modules/@protobufjs/eventemitter/CHANGELOG.md +8 -0
  26. package/node_modules/@protobufjs/eventemitter/index.d.ts +10 -8
  27. package/node_modules/@protobufjs/eventemitter/index.js +17 -7
  28. package/node_modules/@protobufjs/eventemitter/package.json +2 -2
  29. package/node_modules/@protobufjs/eventemitter/tests/index.js +39 -3
  30. package/node_modules/@smithy/core/cbor.d.ts +1 -3
  31. package/node_modules/@smithy/core/cbor.js +0 -1
  32. package/node_modules/@smithy/core/checksum.d.ts +2 -2
  33. package/node_modules/@smithy/core/checksum.js +1 -1
  34. package/node_modules/@smithy/core/client.d.ts +1 -3
  35. package/node_modules/@smithy/core/client.js +0 -1
  36. package/node_modules/@smithy/core/config.d.ts +2 -2
  37. package/node_modules/@smithy/core/config.js +1 -1
  38. package/node_modules/@smithy/core/endpoints.d.ts +1 -3
  39. package/node_modules/@smithy/core/endpoints.js +0 -1
  40. package/node_modules/@smithy/core/event-streams.d.ts +1 -3
  41. package/node_modules/@smithy/core/event-streams.js +0 -1
  42. package/node_modules/@smithy/core/package.json +1 -1
  43. package/node_modules/@smithy/core/protocols.d.ts +1 -3
  44. package/node_modules/@smithy/core/protocols.js +0 -1
  45. package/node_modules/@smithy/core/retry.d.ts +2 -2
  46. package/node_modules/@smithy/core/retry.js +1 -1
  47. package/node_modules/@smithy/core/schema.d.ts +1 -3
  48. package/node_modules/@smithy/core/schema.js +0 -1
  49. package/node_modules/@smithy/core/serde.d.ts +1 -3
  50. package/node_modules/@smithy/core/serde.js +0 -1
  51. package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
  52. package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
  53. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  54. package/node_modules/@smithy/signature-v4/package.json +2 -2
  55. package/node_modules/protobufjs/dist/light/protobuf.js +127 -69
  56. package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
  57. package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
  58. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
  59. package/node_modules/protobufjs/dist/minimal/protobuf.js +62 -25
  60. package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
  61. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
  62. package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
  63. package/node_modules/protobufjs/dist/protobuf.js +148 -76
  64. package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
  65. package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
  66. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
  67. package/node_modules/protobufjs/ext/descriptor/index.js +7 -2
  68. package/node_modules/protobufjs/index.d.ts +12 -3
  69. package/node_modules/protobufjs/package.json +2 -2
  70. package/node_modules/protobufjs/src/converter.js +8 -5
  71. package/node_modules/protobufjs/src/encoder.js +8 -5
  72. package/node_modules/protobufjs/src/enum.js +2 -2
  73. package/node_modules/protobufjs/src/field.js +1 -1
  74. package/node_modules/protobufjs/src/namespace.js +2 -0
  75. package/node_modules/protobufjs/src/object.js +6 -6
  76. package/node_modules/protobufjs/src/parse.js +19 -5
  77. package/node_modules/protobufjs/src/root.js +14 -8
  78. package/node_modules/protobufjs/src/type.js +8 -5
  79. package/node_modules/protobufjs/src/util/minimal.js +32 -7
  80. package/node_modules/protobufjs/src/util/patterns.js +0 -1
  81. package/node_modules/protobufjs/src/util.js +4 -3
  82. package/node_modules/protobufjs/src/wrappers.js +11 -7
  83. package/node_modules/protobufjs/src/writer.js +11 -9
  84. package/node_modules/semver/classes/range.js +7 -0
  85. package/node_modules/semver/package.json +1 -1
  86. package/node_modules/semver/ranges/subset.js +2 -2
  87. package/package.json +2 -2
  88. package/slingshot/index.js +78 -78
@@ -14,15 +14,23 @@ function EventEmitter() {
14
14
  * @type {Object.<string,*>}
15
15
  * @private
16
16
  */
17
- this._listeners = {};
17
+ this._listeners = Object.create(null);
18
18
  }
19
19
 
20
+ /**
21
+ * Event listener as used by {@link util.EventEmitter}.
22
+ * @typedef EventEmitterListener
23
+ * @type {function}
24
+ * @param {...*} args Arguments
25
+ * @returns {undefined}
26
+ */
27
+
20
28
  /**
21
29
  * Registers an event listener.
22
30
  * @param {string} evt Event name
23
- * @param {function} fn Listener
31
+ * @param {EventEmitterListener} fn Listener
24
32
  * @param {*} [ctx] Listener context
25
- * @returns {util.EventEmitter} `this`
33
+ * @returns {this} `this`
26
34
  */
27
35
  EventEmitter.prototype.on = function on(evt, fn, ctx) {
28
36
  (this._listeners[evt] || (this._listeners[evt] = [])).push({
@@ -35,17 +43,19 @@ EventEmitter.prototype.on = function on(evt, fn, ctx) {
35
43
  /**
36
44
  * Removes an event listener or any matching listeners if arguments are omitted.
37
45
  * @param {string} [evt] Event name. Removes all listeners if omitted.
38
- * @param {function} [fn] Listener to remove. Removes all listeners of `evt` if omitted.
39
- * @returns {util.EventEmitter} `this`
46
+ * @param {EventEmitterListener} [fn] Listener to remove. Removes all listeners of `evt` if omitted.
47
+ * @returns {this} `this`
40
48
  */
41
49
  EventEmitter.prototype.off = function off(evt, fn) {
42
50
  if (evt === undefined)
43
- this._listeners = {};
51
+ this._listeners = Object.create(null);
44
52
  else {
45
53
  if (fn === undefined)
46
54
  this._listeners[evt] = [];
47
55
  else {
48
56
  var listeners = this._listeners[evt];
57
+ if (!listeners)
58
+ return this;
49
59
  for (var i = 0; i < listeners.length;)
50
60
  if (listeners[i].fn === fn)
51
61
  listeners.splice(i, 1);
@@ -60,7 +70,7 @@ EventEmitter.prototype.off = function off(evt, fn) {
60
70
  * Emits an event by calling its listeners with the specified arguments.
61
71
  * @param {string} evt Event name
62
72
  * @param {...*} args Arguments
63
- * @returns {util.EventEmitter} `this`
73
+ * @returns {this} `this`
64
74
  */
65
75
  EventEmitter.prototype.emit = function emit(evt) {
66
76
  var listeners = this._listeners[evt];
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@protobufjs/eventemitter",
3
3
  "description": "A minimal event emitter.",
4
- "version": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
6
6
  "repository": {
7
7
  "type": "git",
@@ -12,7 +12,7 @@
12
12
  "types": "index.d.ts",
13
13
  "devDependencies": {
14
14
  "istanbul": "^0.4.5",
15
- "tape": "^4.6.3"
15
+ "tape": "^5.0.0"
16
16
  },
17
17
  "scripts": {
18
18
  "test": "tape tests/*.js",
@@ -8,6 +8,8 @@ tape.test("eventemitter", function(test) {
8
8
  var fn;
9
9
  var ctx = {};
10
10
 
11
+ test.equal(Object.getPrototypeOf(ee._listeners), null, "should not inherit listener lookup keys");
12
+
11
13
  test.doesNotThrow(function() {
12
14
  ee.emit("a", 1);
13
15
  ee.off();
@@ -22,10 +24,12 @@ tape.test("eventemitter", function(test) {
22
24
  ee.emit("a", 1);
23
25
 
24
26
  ee.off("a");
25
- test.same(ee._listeners, { a: [] }, "should remove all listeners of the respective event when calling off(evt)");
27
+ test.same(Object.keys(ee._listeners), [ "a" ], "should keep the event key when calling off(evt)");
28
+ test.same(ee._listeners.a, [], "should remove all listeners of the respective event when calling off(evt)");
26
29
 
27
30
  ee.off();
28
- test.same(ee._listeners, {}, "should remove all listeners when just calling off()");
31
+ test.equal(Object.getPrototypeOf(ee._listeners), null, "should keep the listener table isolated when just calling off()");
32
+ test.same(Object.keys(ee._listeners), [], "should remove all listeners when just calling off()");
29
33
 
30
34
  ee.on("a", fn = function(arg1) {
31
35
  test.equal(this, ctx, "should be called with this = ctx");
@@ -33,7 +37,8 @@ tape.test("eventemitter", function(test) {
33
37
  }, ctx).emit("a", 1);
34
38
 
35
39
  ee.off("a", fn);
36
- test.same(ee._listeners, { a: [] }, "should remove the exact listener when calling off(evt, fn)");
40
+ test.same(Object.keys(ee._listeners), [ "a" ], "should keep the event key when calling off(evt, fn)");
41
+ test.same(ee._listeners.a, [], "should remove the exact listener when calling off(evt, fn)");
37
42
 
38
43
  ee.on("a", function() {
39
44
  test.equal(this, ee, "should be called with this = ee");
@@ -43,5 +48,36 @@ tape.test("eventemitter", function(test) {
43
48
  ee.off("a", fn);
44
49
  }, "should not throw if no such listener is found");
45
50
 
51
+ test.test(test.name + " - special event names", function(test) {
52
+ var ee = new EventEmitter();
53
+ var calls = 0;
54
+
55
+ test.doesNotThrow(function() {
56
+ ee.off("__proto__", function() {});
57
+ }, "should not throw when removing an absent special event listener");
58
+
59
+ ee.on("__proto__", function(arg) {
60
+ ++calls;
61
+ test.equal(arg, 1, "should pass arguments for __proto__ events");
62
+ });
63
+ ee.on("constructor", function(arg) {
64
+ ++calls;
65
+ test.equal(arg, 2, "should pass arguments for constructor events");
66
+ });
67
+ ee.emit("__proto__", 1);
68
+ ee.emit("constructor", 2);
69
+
70
+ test.equal(calls, 2, "should dispatch special event names");
71
+ test.equal(Object.getPrototypeOf(ee._listeners), null, "should keep the listener table isolated");
72
+ test.ok(Object.prototype.hasOwnProperty.call(ee._listeners, "__proto__"), "should store __proto__ as an own event key");
73
+ test.ok(Object.prototype.hasOwnProperty.call(ee._listeners, "constructor"), "should store constructor as an own event key");
74
+
75
+ ee.off("__proto__");
76
+ ee.off("constructor");
77
+ test.same(ee._listeners.__proto__, [], "should clear __proto__ listeners");
78
+ test.same(ee._listeners.constructor, [], "should clear constructor listeners");
79
+ test.end();
80
+ });
81
+
46
82
  test.end();
47
83
  });
@@ -2,6 +2,4 @@
2
2
  * Do not edit:
3
3
  * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
4
  */
5
- declare module "@smithy/core/cbor" {
6
- export * from "@smithy/core/dist-types/submodules/cbor/index.d";
7
- }
5
+ export * from "./dist-types/submodules/cbor/index";
@@ -1,4 +1,3 @@
1
-
2
1
  /**
3
2
  * Do not edit:
4
3
  * This is a compatibility redirect for contexts that do not understand package.json exports field.
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Do not edit:
3
- * This is a compatibility redirect for bundlers that do not support package.json exports field.
3
+ * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
4
  */
5
- export * from "./dist-types/submodules/checksum/index.d";
5
+ export * from "./dist-types/submodules/checksum/index";
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Do not edit:
3
- * This is a compatibility redirect for bundlers that do not support package.json exports field.
3
+ * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
4
  */
5
5
  module.exports = require("./dist-cjs/submodules/checksum/index.js");
@@ -2,6 +2,4 @@
2
2
  * Do not edit:
3
3
  * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
4
  */
5
- declare module "@smithy/core/client" {
6
- export * from "@smithy/core/dist-types/submodules/client/index.d";
7
- }
5
+ export * from "./dist-types/submodules/client/index";
@@ -1,4 +1,3 @@
1
-
2
1
  /**
3
2
  * Do not edit:
4
3
  * This is a compatibility redirect for contexts that do not understand package.json exports field.
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Do not edit:
3
- * This is a compatibility redirect for bundlers that do not support package.json exports field.
3
+ * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
4
  */
5
- export * from "./dist-types/submodules/config/index.d";
5
+ export * from "./dist-types/submodules/config/index";
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Do not edit:
3
- * This is a compatibility redirect for bundlers that do not support package.json exports field.
3
+ * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
4
  */
5
5
  module.exports = require("./dist-cjs/submodules/config/index.js");
@@ -2,6 +2,4 @@
2
2
  * Do not edit:
3
3
  * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
4
  */
5
- declare module "@smithy/core/endpoints" {
6
- export * from "@smithy/core/dist-types/submodules/endpoints/index.d";
7
- }
5
+ export * from "./dist-types/submodules/endpoints/index";
@@ -1,4 +1,3 @@
1
-
2
1
  /**
3
2
  * Do not edit:
4
3
  * This is a compatibility redirect for contexts that do not understand package.json exports field.
@@ -2,6 +2,4 @@
2
2
  * Do not edit:
3
3
  * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
4
  */
5
- declare module "@smithy/core/event-streams" {
6
- export * from "@smithy/core/dist-types/submodules/event-streams/index.d";
7
- }
5
+ export * from "./dist-types/submodules/event-streams/index";
@@ -1,4 +1,3 @@
1
-
2
1
  /**
3
2
  * Do not edit:
4
3
  * This is a compatibility redirect for contexts that do not understand package.json exports field.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.24.3",
3
+ "version": "3.24.4",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
6
6
  "build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline core",
@@ -2,6 +2,4 @@
2
2
  * Do not edit:
3
3
  * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
4
  */
5
- declare module "@smithy/core/protocols" {
6
- export * from "@smithy/core/dist-types/submodules/protocols/index.d";
7
- }
5
+ export * from "./dist-types/submodules/protocols/index";
@@ -1,4 +1,3 @@
1
-
2
1
  /**
3
2
  * Do not edit:
4
3
  * This is a compatibility redirect for contexts that do not understand package.json exports field.
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Do not edit:
3
- * This is a compatibility redirect for bundlers that do not support package.json exports field.
3
+ * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
4
  */
5
- export * from "./dist-types/submodules/retry/index.d";
5
+ export * from "./dist-types/submodules/retry/index";
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Do not edit:
3
- * This is a compatibility redirect for bundlers that do not support package.json exports field.
3
+ * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
4
  */
5
5
  module.exports = require("./dist-cjs/submodules/retry/index.js");
@@ -2,6 +2,4 @@
2
2
  * Do not edit:
3
3
  * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
4
  */
5
- declare module "@smithy/core/schema" {
6
- export * from "@smithy/core/dist-types/submodules/schema/index.d";
7
- }
5
+ export * from "./dist-types/submodules/schema/index";
@@ -1,4 +1,3 @@
1
-
2
1
  /**
3
2
  * Do not edit:
4
3
  * This is a compatibility redirect for contexts that do not understand package.json exports field.
@@ -2,6 +2,4 @@
2
2
  * Do not edit:
3
3
  * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
4
  */
5
- declare module "@smithy/core/serde" {
6
- export * from "@smithy/core/dist-types/submodules/serde/index.d";
7
- }
5
+ export * from "./dist-types/submodules/serde/index";
@@ -1,4 +1,3 @@
1
-
2
1
  /**
3
2
  * Do not edit:
4
3
  * This is a compatibility redirect for contexts that do not understand package.json exports field.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/credential-provider-imds",
3
- "version": "4.3.3",
3
+ "version": "4.3.4",
4
4
  "description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -27,7 +27,7 @@
27
27
  "license": "Apache-2.0",
28
28
  "sideEffects": false,
29
29
  "dependencies": {
30
- "@smithy/core": "^3.24.3",
30
+ "@smithy/core": "^3.24.4",
31
31
  "@smithy/types": "^4.14.2",
32
32
  "tslib": "^2.6.2"
33
33
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/fetch-http-handler",
3
- "version": "5.4.3",
3
+ "version": "5.4.4",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
@@ -27,7 +27,7 @@
27
27
  "module": "./dist-es/index.js",
28
28
  "types": "./dist-types/index.d.ts",
29
29
  "dependencies": {
30
- "@smithy/core": "^3.24.3",
30
+ "@smithy/core": "^3.24.4",
31
31
  "@smithy/types": "^4.14.2",
32
32
  "tslib": "^2.6.2"
33
33
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "4.7.3",
3
+ "version": "4.7.4",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
@@ -26,7 +26,7 @@
26
26
  "module": "./dist-es/index.js",
27
27
  "types": "./dist-types/index.d.ts",
28
28
  "dependencies": {
29
- "@smithy/core": "^3.24.3",
29
+ "@smithy/core": "^3.24.4",
30
30
  "@smithy/types": "^4.14.2",
31
31
  "tslib": "^2.6.2"
32
32
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/signature-v4",
3
- "version": "5.4.3",
3
+ "version": "5.4.4",
4
4
  "description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -25,7 +25,7 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/core": "^3.24.3",
28
+ "@smithy/core": "^3.24.4",
29
29
  "@smithy/types": "^4.14.2",
30
30
  "tslib": "^2.6.2"
31
31
  },