step-node-agent 3.26.0 → 3.26.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 (48) hide show
  1. package/node_modules/cookie/index.js +117 -57
  2. package/node_modules/cookie/package.json +3 -3
  3. package/node_modules/express/History.md +5 -0
  4. package/node_modules/express/package.json +2 -2
  5. package/node_modules/yaml/README.md +17 -3
  6. package/node_modules/yaml/browser/dist/compose/compose-doc.js +1 -0
  7. package/node_modules/yaml/browser/dist/compose/compose-node.js +10 -0
  8. package/node_modules/yaml/browser/dist/compose/compose-scalar.js +14 -8
  9. package/node_modules/yaml/browser/dist/compose/resolve-block-map.js +2 -0
  10. package/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +2 -0
  11. package/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +4 -0
  12. package/node_modules/yaml/browser/dist/compose/util-map-includes.js +1 -5
  13. package/node_modules/yaml/browser/dist/doc/Document.js +3 -2
  14. package/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +7 -49
  15. package/node_modules/yaml/browser/dist/public-api.js +3 -0
  16. package/node_modules/yaml/browser/dist/schema/Schema.js +1 -2
  17. package/node_modules/yaml/browser/dist/schema/tags.js +26 -13
  18. package/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +64 -0
  19. package/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +2 -0
  20. package/node_modules/yaml/browser/dist/stringify/stringify.js +6 -1
  21. package/node_modules/yaml/dist/compose/compose-doc.js +1 -0
  22. package/node_modules/yaml/dist/compose/compose-node.d.ts +1 -0
  23. package/node_modules/yaml/dist/compose/compose-node.js +10 -0
  24. package/node_modules/yaml/dist/compose/compose-scalar.js +13 -7
  25. package/node_modules/yaml/dist/compose/resolve-block-map.js +2 -0
  26. package/node_modules/yaml/dist/compose/resolve-block-seq.js +2 -0
  27. package/node_modules/yaml/dist/compose/resolve-flow-collection.js +4 -0
  28. package/node_modules/yaml/dist/compose/util-map-includes.js +1 -5
  29. package/node_modules/yaml/dist/doc/Document.js +3 -2
  30. package/node_modules/yaml/dist/errors.d.ts +1 -1
  31. package/node_modules/yaml/dist/nodes/Node.d.ts +7 -1
  32. package/node_modules/yaml/dist/nodes/addPairToJSMap.js +6 -48
  33. package/node_modules/yaml/dist/options.d.ts +6 -0
  34. package/node_modules/yaml/dist/parse/lexer.d.ts +1 -1
  35. package/node_modules/yaml/dist/parse/parser.d.ts +3 -3
  36. package/node_modules/yaml/dist/public-api.js +3 -0
  37. package/node_modules/yaml/dist/schema/Schema.d.ts +0 -1
  38. package/node_modules/yaml/dist/schema/Schema.js +1 -2
  39. package/node_modules/yaml/dist/schema/tags.d.ts +9 -1
  40. package/node_modules/yaml/dist/schema/tags.js +26 -13
  41. package/node_modules/yaml/dist/schema/types.d.ts +6 -4
  42. package/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
  43. package/node_modules/yaml/dist/schema/yaml-1.1/merge.js +68 -0
  44. package/node_modules/yaml/dist/schema/yaml-1.1/schema.js +2 -0
  45. package/node_modules/yaml/dist/stringify/stringify.js +6 -1
  46. package/node_modules/yaml/package.json +1 -1
  47. package/package.json +1 -1
  48. package/node_modules/cookie/HISTORY.md +0 -147
@@ -0,0 +1,9 @@
1
+ import type { ToJSContext } from '../../nodes/toJS.js';
2
+ import type { MapLike } from '../../nodes/YAMLMap.js';
3
+ import type { ScalarTag } from '../types.js';
4
+ export declare const merge: ScalarTag & {
5
+ identify(value: unknown): boolean;
6
+ test: RegExp;
7
+ };
8
+ export declare const isMergeKey: (ctx: ToJSContext | undefined, key: unknown) => boolean | undefined;
9
+ export declare function addMergeToJSMap(ctx: ToJSContext | undefined, map: MapLike, value: unknown): void;
@@ -0,0 +1,68 @@
1
+ 'use strict';
2
+
3
+ var identity = require('../../nodes/identity.js');
4
+ var Scalar = require('../../nodes/Scalar.js');
5
+
6
+ // If the value associated with a merge key is a single mapping node, each of
7
+ // its key/value pairs is inserted into the current mapping, unless the key
8
+ // already exists in it. If the value associated with the merge key is a
9
+ // sequence, then this sequence is expected to contain mapping nodes and each
10
+ // of these nodes is merged in turn according to its order in the sequence.
11
+ // Keys in mapping nodes earlier in the sequence override keys specified in
12
+ // later mapping nodes. -- http://yaml.org/type/merge.html
13
+ const MERGE_KEY = '<<';
14
+ const merge = {
15
+ identify: value => value === MERGE_KEY ||
16
+ (typeof value === 'symbol' && value.description === MERGE_KEY),
17
+ default: 'key',
18
+ tag: 'tag:yaml.org,2002:merge',
19
+ test: /^<<$/,
20
+ resolve: () => Object.assign(new Scalar.Scalar(Symbol(MERGE_KEY)), {
21
+ addToJSMap: addMergeToJSMap
22
+ }),
23
+ stringify: () => MERGE_KEY
24
+ };
25
+ const isMergeKey = (ctx, key) => (merge.identify(key) ||
26
+ (identity.isScalar(key) &&
27
+ (!key.type || key.type === Scalar.Scalar.PLAIN) &&
28
+ merge.identify(key.value))) &&
29
+ ctx?.doc.schema.tags.some(tag => tag.tag === merge.tag && tag.default);
30
+ function addMergeToJSMap(ctx, map, value) {
31
+ value = ctx && identity.isAlias(value) ? value.resolve(ctx.doc) : value;
32
+ if (identity.isSeq(value))
33
+ for (const it of value.items)
34
+ mergeValue(ctx, map, it);
35
+ else if (Array.isArray(value))
36
+ for (const it of value)
37
+ mergeValue(ctx, map, it);
38
+ else
39
+ mergeValue(ctx, map, value);
40
+ }
41
+ function mergeValue(ctx, map, value) {
42
+ const source = ctx && identity.isAlias(value) ? value.resolve(ctx.doc) : value;
43
+ if (!identity.isMap(source))
44
+ throw new Error('Merge sources must be maps or map aliases');
45
+ const srcMap = source.toJSON(null, ctx, Map);
46
+ for (const [key, value] of srcMap) {
47
+ if (map instanceof Map) {
48
+ if (!map.has(key))
49
+ map.set(key, value);
50
+ }
51
+ else if (map instanceof Set) {
52
+ map.add(key);
53
+ }
54
+ else if (!Object.prototype.hasOwnProperty.call(map, key)) {
55
+ Object.defineProperty(map, key, {
56
+ value,
57
+ writable: true,
58
+ enumerable: true,
59
+ configurable: true
60
+ });
61
+ }
62
+ }
63
+ return map;
64
+ }
65
+
66
+ exports.addMergeToJSMap = addMergeToJSMap;
67
+ exports.isMergeKey = isMergeKey;
68
+ exports.merge = merge;
@@ -8,6 +8,7 @@ var binary = require('./binary.js');
8
8
  var bool = require('./bool.js');
9
9
  var float = require('./float.js');
10
10
  var int = require('./int.js');
11
+ var merge = require('./merge.js');
11
12
  var omap = require('./omap.js');
12
13
  var pairs = require('./pairs.js');
13
14
  var set = require('./set.js');
@@ -28,6 +29,7 @@ const schema = [
28
29
  float.floatExp,
29
30
  float.float,
30
31
  binary.binary,
32
+ merge.merge,
31
33
  omap.omap,
32
34
  pairs.pairs,
33
35
  set.set,
@@ -56,7 +56,12 @@ function getTagObject(tags, item) {
56
56
  let obj;
57
57
  if (identity.isScalar(item)) {
58
58
  obj = item.value;
59
- const match = tags.filter(t => t.identify?.(obj));
59
+ let match = tags.filter(t => t.identify?.(obj));
60
+ if (match.length > 1) {
61
+ const testMatch = match.filter(t => t.test);
62
+ if (testMatch.length > 0)
63
+ match = testMatch;
64
+ }
60
65
  tagObj =
61
66
  match.find(t => t.format === item.format) ?? match.find(t => !t.format);
62
67
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yaml",
3
- "version": "2.5.1",
3
+ "version": "2.6.0",
4
4
  "license": "ISC",
5
5
  "author": "Eemeli Aro <eemeli@gmail.com>",
6
6
  "repository": "github:eemeli/yaml",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "step-node-agent",
3
- "version": "3.26.0",
3
+ "version": "3.26.2",
4
4
  "description": "The official STEP Agent implementation for Node.js",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,147 +0,0 @@
1
- 0.6.0 / 2023-11-06
2
- ==================
3
-
4
- * Add `partitioned` option
5
-
6
- 0.5.0 / 2022-04-11
7
- ==================
8
-
9
- * Add `priority` option
10
- * Fix `expires` option to reject invalid dates
11
- * perf: improve default decode speed
12
- * perf: remove slow string split in parse
13
-
14
- 0.4.2 / 2022-02-02
15
- ==================
16
-
17
- * perf: read value only when assigning in parse
18
- * perf: remove unnecessary regexp in parse
19
-
20
- 0.4.1 / 2020-04-21
21
- ==================
22
-
23
- * Fix `maxAge` option to reject invalid values
24
-
25
- 0.4.0 / 2019-05-15
26
- ==================
27
-
28
- * Add `SameSite=None` support
29
-
30
- 0.3.1 / 2016-05-26
31
- ==================
32
-
33
- * Fix `sameSite: true` to work with draft-7 clients
34
- - `true` now sends `SameSite=Strict` instead of `SameSite`
35
-
36
- 0.3.0 / 2016-05-26
37
- ==================
38
-
39
- * Add `sameSite` option
40
- - Replaces `firstPartyOnly` option, never implemented by browsers
41
- * Improve error message when `encode` is not a function
42
- * Improve error message when `expires` is not a `Date`
43
-
44
- 0.2.4 / 2016-05-20
45
- ==================
46
-
47
- * perf: enable strict mode
48
- * perf: use for loop in parse
49
- * perf: use string concatenation for serialization
50
-
51
- 0.2.3 / 2015-10-25
52
- ==================
53
-
54
- * Fix cookie `Max-Age` to never be a floating point number
55
-
56
- 0.2.2 / 2015-09-17
57
- ==================
58
-
59
- * Fix regression when setting empty cookie value
60
- - Ease the new restriction, which is just basic header-level validation
61
- * Fix typo in invalid value errors
62
-
63
- 0.2.1 / 2015-09-17
64
- ==================
65
-
66
- * Throw on invalid values provided to `serialize`
67
- - Ensures the resulting string is a valid HTTP header value
68
-
69
- 0.2.0 / 2015-08-13
70
- ==================
71
-
72
- * Add `firstPartyOnly` option
73
- * Throw better error for invalid argument to parse
74
- * perf: hoist regular expression
75
-
76
- 0.1.5 / 2015-09-17
77
- ==================
78
-
79
- * Fix regression when setting empty cookie value
80
- - Ease the new restriction, which is just basic header-level validation
81
- * Fix typo in invalid value errors
82
-
83
- 0.1.4 / 2015-09-17
84
- ==================
85
-
86
- * Throw better error for invalid argument to parse
87
- * Throw on invalid values provided to `serialize`
88
- - Ensures the resulting string is a valid HTTP header value
89
-
90
- 0.1.3 / 2015-05-19
91
- ==================
92
-
93
- * Reduce the scope of try-catch deopt
94
- * Remove argument reassignments
95
-
96
- 0.1.2 / 2014-04-16
97
- ==================
98
-
99
- * Remove unnecessary files from npm package
100
-
101
- 0.1.1 / 2014-02-23
102
- ==================
103
-
104
- * Fix bad parse when cookie value contained a comma
105
- * Fix support for `maxAge` of `0`
106
-
107
- 0.1.0 / 2013-05-01
108
- ==================
109
-
110
- * Add `decode` option
111
- * Add `encode` option
112
-
113
- 0.0.6 / 2013-04-08
114
- ==================
115
-
116
- * Ignore cookie parts missing `=`
117
-
118
- 0.0.5 / 2012-10-29
119
- ==================
120
-
121
- * Return raw cookie value if value unescape errors
122
-
123
- 0.0.4 / 2012-06-21
124
- ==================
125
-
126
- * Use encode/decodeURIComponent for cookie encoding/decoding
127
- - Improve server/client interoperability
128
-
129
- 0.0.3 / 2012-06-06
130
- ==================
131
-
132
- * Only escape special characters per the cookie RFC
133
-
134
- 0.0.2 / 2012-06-01
135
- ==================
136
-
137
- * Fix `maxAge` option to not throw error
138
-
139
- 0.0.1 / 2012-05-28
140
- ==================
141
-
142
- * Add more tests
143
-
144
- 0.0.0 / 2012-05-28
145
- ==================
146
-
147
- * Initial release