@semiont/graph 0.5.26 → 0.5.28

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 (55) hide show
  1. package/dist/{chunk-GPJBZ6EG.js → chunk-2FPUYYXX.js} +9 -1
  2. package/dist/chunk-2FPUYYXX.js.map +1 -0
  3. package/dist/{chunk-Y62BMZ25.js → chunk-52FQCX5M.js} +18 -6
  4. package/dist/chunk-52FQCX5M.js.map +1 -0
  5. package/dist/{chunk-RKAR27K2.js → chunk-MO34K2LQ.js} +119 -28
  6. package/dist/chunk-MO34K2LQ.js.map +1 -0
  7. package/dist/{chunk-JWG64MVA.js → chunk-RUKYB5L4.js} +6 -6
  8. package/dist/{chunk-JWG64MVA.js.map → chunk-RUKYB5L4.js.map} +1 -1
  9. package/dist/{chunk-YYVVWLB2.js → chunk-TKWHSSPF.js} +35 -16
  10. package/dist/chunk-TKWHSSPF.js.map +1 -0
  11. package/dist/{chunk-RRZDPP7Z.js → chunk-X77CPJUJ.js} +2 -2
  12. package/dist/{chunk-UKT6IXAM.js → chunk-XTHXGGIJ.js} +3 -3
  13. package/dist/{chunk-RBRHTAJN.js → chunk-ZPM4D2XD.js} +14 -5
  14. package/dist/chunk-ZPM4D2XD.js.map +1 -0
  15. package/dist/{dist-es-BGEPUOPB.js → dist-es-AET2QNVA.js} +21 -21
  16. package/dist/dist-es-AET2QNVA.js.map +1 -0
  17. package/dist/{dist-es-TLOL2VHU.js → dist-es-BSJRQ6XP.js} +7 -7
  18. package/dist/{dist-es-BUTLC2YS.js → dist-es-C2VXNLLU.js} +13 -13
  19. package/dist/{dist-es-M72B762W.js → dist-es-FTEZAK7G.js} +5 -5
  20. package/dist/{dist-es-NGG7JHEH.js → dist-es-FV5JDCUX.js} +4 -4
  21. package/dist/{dist-es-WLYFLMD3.js → dist-es-IS4IC3TZ.js} +5 -5
  22. package/dist/{dist-es-ILOZ33QI.js → dist-es-ISXX5KU4.js} +5 -5
  23. package/dist/{dist-es-WS6NDSQ5.js → dist-es-RR4OU64S.js} +5 -5
  24. package/dist/{dist-es-LN4LZWKV.js → dist-es-V7467ELV.js} +3 -3
  25. package/dist/{event-streams-2HBIXE6X.js → event-streams-UU2VASBU.js} +36 -27
  26. package/dist/event-streams-UU2VASBU.js.map +1 -0
  27. package/dist/index.d.ts +0 -3
  28. package/dist/index.js +233 -342
  29. package/dist/index.js.map +1 -1
  30. package/dist/{loadSso-GOLDOL76.js → loadSso-SCNBGUAS.js} +8 -8
  31. package/dist/{signin-TS4P2IEW.js → signin-6CO4ELBM.js} +8 -8
  32. package/dist/{sso-oidc-QHNBBLAM.js → sso-oidc-NYPIZEZ2.js} +8 -8
  33. package/dist/{sts-ZKQ7LNEG.js → sts-7LYERIMP.js} +8 -8
  34. package/package.json +6 -6
  35. package/dist/chunk-GPJBZ6EG.js.map +0 -1
  36. package/dist/chunk-RBRHTAJN.js.map +0 -1
  37. package/dist/chunk-RKAR27K2.js.map +0 -1
  38. package/dist/chunk-Y62BMZ25.js.map +0 -1
  39. package/dist/chunk-YYVVWLB2.js.map +0 -1
  40. package/dist/dist-es-BGEPUOPB.js.map +0 -1
  41. package/dist/event-streams-2HBIXE6X.js.map +0 -1
  42. /package/dist/{chunk-RRZDPP7Z.js.map → chunk-X77CPJUJ.js.map} +0 -0
  43. /package/dist/{chunk-UKT6IXAM.js.map → chunk-XTHXGGIJ.js.map} +0 -0
  44. /package/dist/{dist-es-TLOL2VHU.js.map → dist-es-BSJRQ6XP.js.map} +0 -0
  45. /package/dist/{dist-es-BUTLC2YS.js.map → dist-es-C2VXNLLU.js.map} +0 -0
  46. /package/dist/{dist-es-M72B762W.js.map → dist-es-FTEZAK7G.js.map} +0 -0
  47. /package/dist/{dist-es-NGG7JHEH.js.map → dist-es-FV5JDCUX.js.map} +0 -0
  48. /package/dist/{dist-es-WLYFLMD3.js.map → dist-es-IS4IC3TZ.js.map} +0 -0
  49. /package/dist/{dist-es-ILOZ33QI.js.map → dist-es-ISXX5KU4.js.map} +0 -0
  50. /package/dist/{dist-es-WS6NDSQ5.js.map → dist-es-RR4OU64S.js.map} +0 -0
  51. /package/dist/{dist-es-LN4LZWKV.js.map → dist-es-V7467ELV.js.map} +0 -0
  52. /package/dist/{loadSso-GOLDOL76.js.map → loadSso-SCNBGUAS.js.map} +0 -0
  53. /package/dist/{signin-TS4P2IEW.js.map → signin-6CO4ELBM.js.map} +0 -0
  54. /package/dist/{sso-oidc-QHNBBLAM.js.map → sso-oidc-NYPIZEZ2.js.map} +0 -0
  55. /package/dist/{sts-ZKQ7LNEG.js.map → sts-7LYERIMP.js.map} +0 -0
@@ -6,7 +6,7 @@ import {
6
6
  memoizeIdentityProvider,
7
7
  normalizeProvider as normalizeProvider2,
8
8
  setCredentialFeature
9
- } from "./chunk-RBRHTAJN.js";
9
+ } from "./chunk-ZPM4D2XD.js";
10
10
  import {
11
11
  FromStringShapeDeserializer,
12
12
  HttpBindingProtocol,
@@ -21,7 +21,7 @@ import {
21
21
  escapeUri,
22
22
  extendedEncodeURIComponent,
23
23
  loadConfig
24
- } from "./chunk-YYVVWLB2.js";
24
+ } from "./chunk-TKWHSSPF.js";
25
25
  import {
26
26
  HttpRequest,
27
27
  HttpResponse,
@@ -35,6 +35,7 @@ import {
35
35
  fromHex,
36
36
  fromUtf8,
37
37
  generateIdempotencyToken,
38
+ hasOwn,
38
39
  isArrayBuffer,
39
40
  normalizeProvider,
40
41
  parseEpochTimestamp,
@@ -44,7 +45,7 @@ import {
44
45
  toHex,
45
46
  toUint8Array,
46
47
  toUtf8
47
- } from "./chunk-GPJBZ6EG.js";
48
+ } from "./chunk-2FPUYYXX.js";
48
49
 
49
50
  // ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js
50
51
  var getDateHeader = (response) => HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : void 0;
@@ -238,7 +239,9 @@ var NODE_SIGV4A_CONFIG_OPTIONS = {
238
239
  var HeaderFormatter = class {
239
240
  format(headers) {
240
241
  const chunks = [];
241
- for (const headerName of Object.keys(headers)) {
242
+ for (const headerName in headers) {
243
+ if (!hasOwn(headers, headerName))
244
+ continue;
242
245
  const bytes = fromUtf8(headerName);
243
246
  chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
244
247
  }
@@ -253,27 +256,27 @@ var HeaderFormatter = class {
253
256
  formatHeaderValue(header) {
254
257
  switch (header.type) {
255
258
  case "boolean":
256
- return Uint8Array.from([header.value ? HEADER_VALUE_TYPE.boolTrue : HEADER_VALUE_TYPE.boolFalse]);
259
+ return Uint8Array.from([header.value ? 0 : 1]);
257
260
  case "byte":
258
- return Uint8Array.from([HEADER_VALUE_TYPE.byte, header.value]);
261
+ return Uint8Array.from([2, header.value]);
259
262
  case "short":
260
263
  const shortView = new DataView(new ArrayBuffer(3));
261
- shortView.setUint8(0, HEADER_VALUE_TYPE.short);
264
+ shortView.setUint8(0, 3);
262
265
  shortView.setInt16(1, header.value, false);
263
266
  return new Uint8Array(shortView.buffer);
264
267
  case "integer":
265
268
  const intView = new DataView(new ArrayBuffer(5));
266
- intView.setUint8(0, HEADER_VALUE_TYPE.integer);
269
+ intView.setUint8(0, 4);
267
270
  intView.setInt32(1, header.value, false);
268
271
  return new Uint8Array(intView.buffer);
269
272
  case "long":
270
273
  const longBytes = new Uint8Array(9);
271
- longBytes[0] = HEADER_VALUE_TYPE.long;
274
+ longBytes[0] = 5;
272
275
  longBytes.set(header.value.bytes, 1);
273
276
  return longBytes;
274
277
  case "binary":
275
278
  const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
276
- binView.setUint8(0, HEADER_VALUE_TYPE.byteArray);
279
+ binView.setUint8(0, 6);
277
280
  binView.setUint16(1, header.value.byteLength, false);
278
281
  const binBytes = new Uint8Array(binView.buffer);
279
282
  binBytes.set(header.value, 3);
@@ -281,14 +284,14 @@ var HeaderFormatter = class {
281
284
  case "string":
282
285
  const utf8Bytes = fromUtf8(header.value);
283
286
  const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
284
- strView.setUint8(0, HEADER_VALUE_TYPE.string);
287
+ strView.setUint8(0, 7);
285
288
  strView.setUint16(1, utf8Bytes.byteLength, false);
286
289
  const strBytes = new Uint8Array(strView.buffer);
287
290
  strBytes.set(utf8Bytes, 3);
288
291
  return strBytes;
289
292
  case "timestamp":
290
293
  const tsBytes = new Uint8Array(9);
291
- tsBytes[0] = HEADER_VALUE_TYPE.timestamp;
294
+ tsBytes[0] = 8;
292
295
  tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
293
296
  return tsBytes;
294
297
  case "uuid":
@@ -296,7 +299,7 @@ var HeaderFormatter = class {
296
299
  throw new Error(`Invalid UUID received: ${header.value}`);
297
300
  }
298
301
  const uuidBytes = new Uint8Array(17);
299
- uuidBytes[0] = HEADER_VALUE_TYPE.uuid;
302
+ uuidBytes[0] = 9;
300
303
  uuidBytes.set(fromHex(header.value.replace(/-/g, "")), 1);
301
304
  return uuidBytes;
302
305
  }
@@ -405,7 +408,9 @@ var MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7;
405
408
  var getCanonicalQuery = ({ query = {} }) => {
406
409
  const keys = [];
407
410
  const serialized = {};
408
- for (const key of Object.keys(query)) {
411
+ for (const key in query) {
412
+ if (!hasOwn(query, key))
413
+ continue;
409
414
  if (key.toLowerCase() === SIGNATURE_HEADER) {
410
415
  continue;
411
416
  }
@@ -554,7 +559,9 @@ var getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => {
554
559
 
555
560
  // ../../node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js
556
561
  var getPayloadHash = async ({ headers, body }, hashConstructor) => {
557
- for (const headerName of Object.keys(headers)) {
562
+ for (const headerName in headers) {
563
+ if (!hasOwn(headers, headerName))
564
+ continue;
558
565
  if (headerName.toLowerCase() === SHA256_HEADER) {
559
566
  return headers[headerName];
560
567
  }
@@ -572,7 +579,9 @@ var getPayloadHash = async ({ headers, body }, hashConstructor) => {
572
579
  // ../../node_modules/@smithy/signature-v4/dist-es/headerUtil.js
573
580
  var hasHeader = (soughtHeader, headers) => {
574
581
  soughtHeader = soughtHeader.toLowerCase();
575
- for (const headerName of Object.keys(headers)) {
582
+ for (const headerName in headers) {
583
+ if (!hasOwn(headers, headerName))
584
+ continue;
576
585
  if (soughtHeader === headerName.toLowerCase()) {
577
586
  return true;
578
587
  }
@@ -583,7 +592,9 @@ var hasHeader = (soughtHeader, headers) => {
583
592
  // ../../node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js
584
593
  var moveHeadersToQuery = (request, options = {}) => {
585
594
  const { headers, query = {} } = HttpRequest.clone(request);
586
- for (const name of Object.keys(headers)) {
595
+ for (const name in headers) {
596
+ if (!hasOwn(headers, name))
597
+ continue;
587
598
  const lname = name.toLowerCase();
588
599
  if (lname.slice(0, 6) === "x-amz-" && !options.unhoistableHeaders?.has(lname) || options.hoistableHeaders?.has(lname)) {
589
600
  query[name] = headers[name];
@@ -600,7 +611,9 @@ var moveHeadersToQuery = (request, options = {}) => {
600
611
  // ../../node_modules/@smithy/signature-v4/dist-es/prepareRequest.js
601
612
  var prepareRequest = (request) => {
602
613
  request = HttpRequest.clone(request);
603
- for (const headerName of Object.keys(request.headers)) {
614
+ for (const headerName in request.headers) {
615
+ if (!hasOwn(request.headers, headerName))
616
+ continue;
604
617
  if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) {
605
618
  delete request.headers[headerName];
606
619
  }
@@ -1077,24 +1090,25 @@ function jsonReviver(key, value, context) {
1077
1090
  const numericString = context.source;
1078
1091
  if (typeof value === "number") {
1079
1092
  const inSafeRange = value <= Number.MAX_SAFE_INTEGER && value >= Number.MIN_SAFE_INTEGER;
1080
- if (!inSafeRange || numericString !== String(value)) {
1081
- if (inSafeRange && /[eE]/.test(numericString) && String(Number(numericString)) === String(value)) {
1093
+ if (inSafeRange) {
1094
+ if (isRepresentable(numericString, value)) {
1082
1095
  return value;
1083
1096
  }
1084
- if (isFractionalNumeric(numericString)) {
1097
+ return new NumericValue(numericString, "bigDecimal");
1098
+ } else {
1099
+ if (isFractionalBigNumeric(numericString)) {
1085
1100
  return new NumericValue(numericString, "bigDecimal");
1086
- } else {
1087
- if (/[eE]/.test(numericString)) {
1088
- return BigInt(Number(numericString));
1089
- }
1090
- return BigInt(numericString);
1091
1101
  }
1102
+ if (/[eE]/.test(numericString)) {
1103
+ return expandExponentToBigInt(numericString);
1104
+ }
1105
+ return BigInt(numericString);
1092
1106
  }
1093
1107
  }
1094
1108
  }
1095
1109
  return value;
1096
1110
  }
1097
- function isFractionalNumeric(s) {
1111
+ function isFractionalBigNumeric(s) {
1098
1112
  const dotIndex = s.indexOf(".");
1099
1113
  if (dotIndex === -1) {
1100
1114
  return false;
@@ -1107,6 +1121,83 @@ function isFractionalNumeric(s) {
1107
1121
  const exp = parseInt(s.slice(eIndex + 1), 10);
1108
1122
  return exp < fracDigits;
1109
1123
  }
1124
+ function isRepresentable(numericString, value) {
1125
+ if (numericString === String(value)) {
1126
+ return true;
1127
+ }
1128
+ if (Object.is(value, -0)) {
1129
+ return true;
1130
+ }
1131
+ if (/[eE]/.test(numericString)) {
1132
+ return expandToDecimal(numericString) === expandToDecimal(String(value));
1133
+ }
1134
+ const normalized = numericString.replace(/(\.\d*?)0+$/, "$1").replace(/\.$/, "");
1135
+ const canonical = String(value);
1136
+ if (normalized === canonical) {
1137
+ return true;
1138
+ }
1139
+ if (/[eE]/.test(canonical)) {
1140
+ return normalized === expandToDecimal(canonical);
1141
+ }
1142
+ return false;
1143
+ }
1144
+ function expandToDecimal(s) {
1145
+ const negative = s.startsWith("-");
1146
+ const abs = negative ? s.slice(1) : s;
1147
+ const eIndex = abs.search(/[eE]/);
1148
+ let result;
1149
+ if (eIndex === -1) {
1150
+ result = abs;
1151
+ } else {
1152
+ const exp = parseInt(abs.slice(eIndex + 1), 10);
1153
+ const mantissa = abs.slice(0, eIndex);
1154
+ const dotIndex = mantissa.indexOf(".");
1155
+ let digits;
1156
+ let intLen;
1157
+ if (dotIndex === -1) {
1158
+ digits = mantissa;
1159
+ intLen = mantissa.length;
1160
+ } else {
1161
+ digits = mantissa.slice(0, dotIndex) + mantissa.slice(dotIndex + 1);
1162
+ intLen = dotIndex;
1163
+ }
1164
+ digits = digits.replace(/0+$/, "") || "0";
1165
+ const newDotPos = intLen + exp;
1166
+ if (digits === "0") {
1167
+ result = "0";
1168
+ } else if (newDotPos <= 0) {
1169
+ result = "0." + "0".repeat(-newDotPos) + digits;
1170
+ } else if (newDotPos >= digits.length) {
1171
+ result = digits + "0".repeat(newDotPos - digits.length);
1172
+ } else {
1173
+ result = digits.slice(0, newDotPos) + "." + digits.slice(newDotPos);
1174
+ }
1175
+ }
1176
+ if (result.includes(".")) {
1177
+ result = result.replace(/(\.\d*?)0+$/, "$1").replace(/\.$/, "");
1178
+ }
1179
+ return (negative ? "-" : "") + result;
1180
+ }
1181
+ function expandExponentToBigInt(s) {
1182
+ const eIndex = s.search(/[eE]/);
1183
+ const exp = parseInt(s.slice(eIndex + 1), 10);
1184
+ const negative = s.startsWith("-");
1185
+ const mantissa = s.slice(negative ? 1 : 0, eIndex);
1186
+ const dotIndex = mantissa.indexOf(".");
1187
+ let digits;
1188
+ let shift;
1189
+ if (dotIndex === -1) {
1190
+ digits = mantissa;
1191
+ shift = exp;
1192
+ } else {
1193
+ digits = mantissa.slice(0, dotIndex) + mantissa.slice(dotIndex + 1);
1194
+ const fracDigits = mantissa.length - dotIndex - 1;
1195
+ shift = exp - fracDigits;
1196
+ }
1197
+ digits = digits.replace(/0+$/, "") || "0";
1198
+ const result = BigInt(digits) * 10n ** BigInt(shift + (mantissa.replace(".", "").length - digits.length));
1199
+ return negative ? -result : result;
1200
+ }
1110
1201
 
1111
1202
  // ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/needsReviver.js
1112
1203
  var REVIVER_SYMBOL = /* @__PURE__ */ Symbol.for("@aws-sdk/reviver");
@@ -2815,4 +2906,4 @@ export {
2815
2906
  AwsRestJsonProtocol,
2816
2907
  AwsQueryProtocol
2817
2908
  };
2818
- //# sourceMappingURL=chunk-RKAR27K2.js.map
2909
+ //# sourceMappingURL=chunk-MO34K2LQ.js.map