@nhtio/encoder 0.1.0-master-daa8452a → 1.20251202.0

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.
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { F as FunctionSerializer, i as isObject, a as isArray, b as isSet, c as isMap, d as isLuxonSystemZone, e as isLuxonInterval, f as isLuxonDuration, D as Duration, g as isLuxonDateTime, h as DateTime, j as isPhoneObject, P as Phone, k as isTypedArray, l as isBigIntTypedArray, m as isPrimitive, n as isUniterableObject, o as isError, p as isBigInt, q as isNegativeZero, I as Info, r as Interval } from "./function_serializer-Bagbph2J.mjs";
2
- import { E as E_UNENCODABLE_VALUE, a as E_CIRCULAR_REFERENCE, b as E_ENCODING_FAILED, B as BaseException, c as E_UNDECODABLE_VALUE, d as E_NOT_AN_ENCODED_VALUE, e as E_INVALID_VERSION, f as E_INCOMPATIBLE_VERSION } from "./exceptions-CC6nR1KV.mjs";
2
+ import { E as E_UNENCODABLE_VALUE, a as E_CIRCULAR_REFERENCE, b as E_ENCODING_FAILED, B as BaseException, c as E_UNDECODABLE_VALUE, d as E_NOT_AN_ENCODED_VALUE, e as E_INVALID_VERSION, f as E_INCOMPATIBLE_VERSION } from "./exceptions-DQ5GL4Nv.mjs";
3
3
  var re = { exports: {} };
4
4
  var constants;
5
5
  var hasRequiredConstants;
@@ -3222,11 +3222,11 @@ const { parse: $parse, stringify: $stringify } = JSON;
3222
3222
  const options = { json: true, lossy: true };
3223
3223
  const parse = (str) => deserialize($parse(str));
3224
3224
  const stringify = (any) => $stringify(serialize(any, options));
3225
- const version = "0.1.0-master-daa8452a";
3225
+ const version = "1.20251202.0";
3226
3226
  const encode = (what) => {
3227
3227
  const structured = toStructuredData(what);
3228
3228
  const serialized = serialize(structured, { lossy: true, json: true });
3229
- const json = stringify({ version: "0.1.0-master-daa8452a", serialized });
3229
+ const json = stringify({ version: "1.20251202.0", serialized });
3230
3230
  return utoa(json);
3231
3231
  };
3232
3232
  const decode = (base64) => {
@@ -3237,11 +3237,11 @@ const decode = (base64) => {
3237
3237
  throw new E_NOT_AN_ENCODED_VALUE(base64);
3238
3238
  }
3239
3239
  const { version: payloadVersion, serialized } = parsed;
3240
- if (semverExports.valid("0.1.0-master-daa8452a")) {
3240
+ if (semverExports.valid("1.20251202.0")) {
3241
3241
  if (!semverExports.valid(semverExports.coerce(payloadVersion))) {
3242
3242
  throw new E_INVALID_VERSION(payloadVersion);
3243
3243
  }
3244
- if (semverExports.gt(semverExports.coerce(payloadVersion), "0.1.0-master-daa8452a")) {
3244
+ if (semverExports.gt(semverExports.coerce(payloadVersion), "1.20251202.0")) {
3245
3245
  throw new E_INCOMPATIBLE_VERSION(payloadVersion);
3246
3246
  }
3247
3247
  }