@karmaniverous/jsonmap 2.0.0 → 2.0.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.
package/dist/index.cjs CHANGED
@@ -43,17 +43,33 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
43
43
  };
44
44
 
45
45
  // Get package scope & name from package.json.
46
- var _a$1, _b, _c;
46
+ var _a$1, _b$1, _c;
47
47
  const npmPackageRegex = /^(?:(?<packageScope>@[a-z0-9-~][a-z0-9-._~]*)\/)?(?<packageName>[a-z0-9-~][a-z0-9-._~]*)$/;
48
- const { packageScope, packageName } = ((_c = (_b = (_a$1 = process.env.npm_package_name) === null || _a$1 === void 0 ? void 0 : _a$1.match(npmPackageRegex)) === null || _b === void 0 ? void 0 : _b.groups) !== null && _c !== void 0 ? _c : {});
48
+ const { packageScope, packageName } = ((_c = (_b$1 = (_a$1 = process.env.npm_package_name) === null || _a$1 === void 0 ? void 0 : _a$1.match(npmPackageRegex)) === null || _b$1 === void 0 ? void 0 : _b$1.groups) !== null && _c !== void 0 ? _c : {});
49
49
 
50
- var _a;
51
- const logLevel = _.parseInt((_a = process.env.LOG_LEVEL) !== null && _a !== void 0 ? _a : '');
50
+ var _a, _b;
51
+ // These are the presefined tslog log levels. You can specify
52
+ // LOG_LEVEL by any of the keys or values defined below.
53
+ const logLevels = {
54
+ silly: 0,
55
+ trace: 1,
56
+ debug: 2,
57
+ info: 3,
58
+ warn: 4,
59
+ error: 5,
60
+ fatal: 6,
61
+ };
62
+ const integerLogLevel = parseInt((_a = process.env.LOG_LEVEL) !== null && _a !== void 0 ? _a : '');
63
+ const resolvedLogLevel = Number.isNaN(integerLogLevel)
64
+ ? logLevels[((_b = process.env.LOG_LEVEL) !== null && _b !== void 0 ? _b : '').toLowerCase()]
65
+ : integerLogLevel;
66
+ // Set your tslog instance options here! By default, logs are suppressed if LOG_LEVEL is invalid or undefined.
67
+ // See https://tslog.js.org for more info.
52
68
  const logger = new tslog.Logger({
53
69
  hideLogPositionForProduction: true,
54
- minLevel: _.isNaN(logLevel) ? undefined : logLevel,
70
+ minLevel: resolvedLogLevel,
55
71
  name: packageName,
56
- type: _.isNaN(logLevel) ? 'hidden' : 'pretty',
72
+ type: resolvedLogLevel === undefined ? 'hidden' : 'pretty',
57
73
  });
58
74
 
59
75
  var _JsonMap_instances, _JsonMap_transform, _JsonMap_resolvePath;
package/dist/index.d.cts CHANGED
@@ -9,48 +9,36 @@ declare const JsonMapDynamic: z.ZodObject<{
9
9
  params: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  method: string;
12
- params: (string | string[]) & (string | string[] | undefined);
12
+ params: string | string[];
13
13
  }, {
14
14
  method: string;
15
- params: (string | string[]) & (string | string[] | undefined);
15
+ params: string | string[];
16
16
  }>, z.ZodArray<z.ZodObject<{
17
17
  method: z.ZodString;
18
18
  params: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
19
19
  }, "strip", z.ZodTypeAny, {
20
20
  method: string;
21
- params: (string | string[]) & (string | string[] | undefined);
21
+ params: string | string[];
22
22
  }, {
23
23
  method: string;
24
- params: (string | string[]) & (string | string[] | undefined);
24
+ params: string | string[];
25
25
  }>, "many">]>;
26
26
  }, "strip", z.ZodTypeAny, {
27
- $: ({
27
+ $: {
28
28
  method: string;
29
- params: (string | string[]) & (string | string[] | undefined);
29
+ params: string | string[];
30
30
  } | {
31
31
  method: string;
32
- params: (string | string[]) & (string | string[] | undefined);
33
- }[]) & ({
34
- method: string;
35
- params: (string | string[]) & (string | string[] | undefined);
36
- } | {
37
- method: string;
38
- params: (string | string[]) & (string | string[] | undefined);
39
- }[] | undefined);
32
+ params: string | string[];
33
+ }[];
40
34
  }, {
41
- $: ({
42
- method: string;
43
- params: (string | string[]) & (string | string[] | undefined);
44
- } | {
45
- method: string;
46
- params: (string | string[]) & (string | string[] | undefined);
47
- }[]) & ({
35
+ $: {
48
36
  method: string;
49
- params: (string | string[]) & (string | string[] | undefined);
37
+ params: string | string[];
50
38
  } | {
51
39
  method: string;
52
- params: (string | string[]) & (string | string[] | undefined);
53
- }[] | undefined);
40
+ params: string | string[];
41
+ }[];
54
42
  }>;
55
43
  type JsonMapDynamic = z.infer<typeof JsonMapDynamic>;
56
44
  declare const literalSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
package/dist/index.d.mts CHANGED
@@ -9,48 +9,36 @@ declare const JsonMapDynamic: z.ZodObject<{
9
9
  params: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  method: string;
12
- params: (string | string[]) & (string | string[] | undefined);
12
+ params: string | string[];
13
13
  }, {
14
14
  method: string;
15
- params: (string | string[]) & (string | string[] | undefined);
15
+ params: string | string[];
16
16
  }>, z.ZodArray<z.ZodObject<{
17
17
  method: z.ZodString;
18
18
  params: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
19
19
  }, "strip", z.ZodTypeAny, {
20
20
  method: string;
21
- params: (string | string[]) & (string | string[] | undefined);
21
+ params: string | string[];
22
22
  }, {
23
23
  method: string;
24
- params: (string | string[]) & (string | string[] | undefined);
24
+ params: string | string[];
25
25
  }>, "many">]>;
26
26
  }, "strip", z.ZodTypeAny, {
27
- $: ({
27
+ $: {
28
28
  method: string;
29
- params: (string | string[]) & (string | string[] | undefined);
29
+ params: string | string[];
30
30
  } | {
31
31
  method: string;
32
- params: (string | string[]) & (string | string[] | undefined);
33
- }[]) & ({
34
- method: string;
35
- params: (string | string[]) & (string | string[] | undefined);
36
- } | {
37
- method: string;
38
- params: (string | string[]) & (string | string[] | undefined);
39
- }[] | undefined);
32
+ params: string | string[];
33
+ }[];
40
34
  }, {
41
- $: ({
42
- method: string;
43
- params: (string | string[]) & (string | string[] | undefined);
44
- } | {
45
- method: string;
46
- params: (string | string[]) & (string | string[] | undefined);
47
- }[]) & ({
35
+ $: {
48
36
  method: string;
49
- params: (string | string[]) & (string | string[] | undefined);
37
+ params: string | string[];
50
38
  } | {
51
39
  method: string;
52
- params: (string | string[]) & (string | string[] | undefined);
53
- }[] | undefined);
40
+ params: string | string[];
41
+ }[];
54
42
  }>;
55
43
  type JsonMapDynamic = z.infer<typeof JsonMapDynamic>;
56
44
  declare const literalSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
package/dist/index.d.ts CHANGED
@@ -9,48 +9,36 @@ declare const JsonMapDynamic: z.ZodObject<{
9
9
  params: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  method: string;
12
- params: (string | string[]) & (string | string[] | undefined);
12
+ params: string | string[];
13
13
  }, {
14
14
  method: string;
15
- params: (string | string[]) & (string | string[] | undefined);
15
+ params: string | string[];
16
16
  }>, z.ZodArray<z.ZodObject<{
17
17
  method: z.ZodString;
18
18
  params: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
19
19
  }, "strip", z.ZodTypeAny, {
20
20
  method: string;
21
- params: (string | string[]) & (string | string[] | undefined);
21
+ params: string | string[];
22
22
  }, {
23
23
  method: string;
24
- params: (string | string[]) & (string | string[] | undefined);
24
+ params: string | string[];
25
25
  }>, "many">]>;
26
26
  }, "strip", z.ZodTypeAny, {
27
- $: ({
27
+ $: {
28
28
  method: string;
29
- params: (string | string[]) & (string | string[] | undefined);
29
+ params: string | string[];
30
30
  } | {
31
31
  method: string;
32
- params: (string | string[]) & (string | string[] | undefined);
33
- }[]) & ({
34
- method: string;
35
- params: (string | string[]) & (string | string[] | undefined);
36
- } | {
37
- method: string;
38
- params: (string | string[]) & (string | string[] | undefined);
39
- }[] | undefined);
32
+ params: string | string[];
33
+ }[];
40
34
  }, {
41
- $: ({
42
- method: string;
43
- params: (string | string[]) & (string | string[] | undefined);
44
- } | {
45
- method: string;
46
- params: (string | string[]) & (string | string[] | undefined);
47
- }[]) & ({
35
+ $: {
48
36
  method: string;
49
- params: (string | string[]) & (string | string[] | undefined);
37
+ params: string | string[];
50
38
  } | {
51
39
  method: string;
52
- params: (string | string[]) & (string | string[] | undefined);
53
- }[] | undefined);
40
+ params: string | string[];
41
+ }[];
54
42
  }>;
55
43
  type JsonMapDynamic = z.infer<typeof JsonMapDynamic>;
56
44
  declare const literalSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
@@ -40,17 +40,33 @@
40
40
  };
41
41
 
42
42
  // Get package scope & name from package.json.
43
- var _a$1, _b, _c;
43
+ var _a$1, _b$1, _c;
44
44
  const npmPackageRegex = /^(?:(?<packageScope>@[a-z0-9-~][a-z0-9-._~]*)\/)?(?<packageName>[a-z0-9-~][a-z0-9-._~]*)$/;
45
- const { packageScope, packageName } = ((_c = (_b = (_a$1 = process.env.npm_package_name) === null || _a$1 === void 0 ? void 0 : _a$1.match(npmPackageRegex)) === null || _b === void 0 ? void 0 : _b.groups) !== null && _c !== void 0 ? _c : {});
45
+ const { packageScope, packageName } = ((_c = (_b$1 = (_a$1 = process.env.npm_package_name) === null || _a$1 === void 0 ? void 0 : _a$1.match(npmPackageRegex)) === null || _b$1 === void 0 ? void 0 : _b$1.groups) !== null && _c !== void 0 ? _c : {});
46
46
 
47
- var _a;
48
- const logLevel = _.parseInt((_a = process.env.LOG_LEVEL) !== null && _a !== void 0 ? _a : '');
47
+ var _a, _b;
48
+ // These are the presefined tslog log levels. You can specify
49
+ // LOG_LEVEL by any of the keys or values defined below.
50
+ const logLevels = {
51
+ silly: 0,
52
+ trace: 1,
53
+ debug: 2,
54
+ info: 3,
55
+ warn: 4,
56
+ error: 5,
57
+ fatal: 6,
58
+ };
59
+ const integerLogLevel = parseInt((_a = process.env.LOG_LEVEL) !== null && _a !== void 0 ? _a : '');
60
+ const resolvedLogLevel = Number.isNaN(integerLogLevel)
61
+ ? logLevels[((_b = process.env.LOG_LEVEL) !== null && _b !== void 0 ? _b : '').toLowerCase()]
62
+ : integerLogLevel;
63
+ // Set your tslog instance options here! By default, logs are suppressed if LOG_LEVEL is invalid or undefined.
64
+ // See https://tslog.js.org for more info.
49
65
  const logger = new tslog.Logger({
50
66
  hideLogPositionForProduction: true,
51
- minLevel: _.isNaN(logLevel) ? undefined : logLevel,
67
+ minLevel: resolvedLogLevel,
52
68
  name: packageName,
53
- type: _.isNaN(logLevel) ? 'hidden' : 'pretty',
69
+ type: resolvedLogLevel === undefined ? 'hidden' : 'pretty',
54
70
  });
55
71
 
56
72
  var _JsonMap_instances, _JsonMap_transform, _JsonMap_resolvePath;
@@ -1 +1 @@
1
- !function(t,e,n,r){"use strict";function o(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))}function i(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}var s,a,c;"function"==typeof SuppressedError&&SuppressedError;const{packageScope:u,packageName:p}=null!==(c=null===(a=null===(s=process.env.npm_package_name)||void 0===s?void 0:s.match(/^(?:(?<packageScope>@[a-z0-9-~][a-z0-9-._~]*)\/)?(?<packageName>[a-z0-9-~][a-z0-9-._~]*)$/))||void 0===a?void 0:a.groups)&&void 0!==c?c:{};var h;const d=e.parseInt(null!==(h=process.env.LOG_LEVEL)&&void 0!==h?h:""),f=new r.Logger({hideLogPositionForProduction:!0,minLevel:e.isNaN(d)?void 0:d,name:p,type:e.isNaN(d)?"hidden":"pretty"});var l,m,g;l=new WeakSet,m=function t(n,r,s){return o(this,arguments,void 0,(function*(n,r,o,s=""){if(f.debug("#transform params:\n",{node:n,input:r,output:o,path:s}),n instanceof Object&&1===e.size(n)&&"$"in n){const t=e.castArray(n.$);f.debug("transformations:\n",t);const r=[];for(const n of t){f.debug("processing transformation:\n",n);const{obj:t,path:o}=i(this,l,"m",g).call(this,n.method,r),s=e.castArray(n.params).map((t=>{const{obj:n,path:o}=i(this,l,"m",g).call(this,t,r);return n?o?e.get(n,o):n:o}));f.debug("resolved transformation params:\n",s);const a=yield e.invoke(t,o,...s);f.debug("transformation result:\n",a),r.unshift(a)}return e.set(o,s,r[0]),f.debug("updated output:\n",o),r[0]}if(e.isObject(n)){const a=Array.isArray(n)?[]:{};for(const[c,u]of e.sortBy(Object.entries(n),(([t])=>t))){const e=s?`${s}.${c}`:c;a[c]=yield i(this,l,"m",t).call(this,u,r,o,e)}return e.set(o,s,a),a}return e.set(o,s,n),n}))},g=function(t,n){if(!e.isString(t))return{path:t};const r={"^\\$\\.(?<obj>lib|input|output)\\.?(?<path>.*)":({obj:t,path:e})=>({obj:this[t],path:e}),"^\\$(?<path>\\[\\d+\\].*)":({path:t})=>({obj:n,path:t})};for(const[e,n]of Object.entries(r)){const r=t.match(e);if(null==r?void 0:r.groups)return n(r.groups)}return{path:t}},t.JsonMap=class{constructor(t={},n={},{ignore:r=/^\$/}={}){l.add(this),this.map=t,this.lib=n,this.ignore=e.isString(r)?new RegExp(r):r}transform(t){return o(this,void 0,void 0,(function*(){this.input=t,this.output={};const{replacer:r,reviver:o}=(()=>{const t=new WeakSet,r=n.nanoid();return{replacer:(n,o)=>{if("object"==typeof o&&null!==o){if(t.has(o))return"CIRCULAR REFERENCE";if(t.add(o),!e.isArrayLikeObject(o))return Object.getOwnPropertyNames(o).reduce(((t,e)=>Object.assign(Object.assign({},t),{[e]:o[e]})),{})}return e.isUndefined(o)?r:o},reviver:(t,e)=>e===r?void 0:e}})(),s=JSON.parse(JSON.stringify(yield i(this,l,"m",m).call(this,this.map,this.input,this.output),r),o),a=t=>t instanceof Object&&!e.isArray(t)?e.mapValues(e.pickBy(t,((t,e)=>!this.ignore.test(e))),(t=>e.cloneDeepWith(t,a))):void 0;return e.cloneDeepWith(s,a)}))}}}(this.jsonmap=this.jsonmap||{},_,nanoid,tslog);
1
+ !function(t,e,n,r){"use strict";function o(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))}function i(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}var s,a,c;"function"==typeof SuppressedError&&SuppressedError;const{packageScope:u,packageName:p}=null!==(c=null===(a=null===(s=process.env.npm_package_name)||void 0===s?void 0:s.match(/^(?:(?<packageScope>@[a-z0-9-~][a-z0-9-._~]*)\/)?(?<packageName>[a-z0-9-~][a-z0-9-._~]*)$/))||void 0===a?void 0:a.groups)&&void 0!==c?c:{};var d,h;const f=parseInt(null!==(d=process.env.LOG_LEVEL)&&void 0!==d?d:""),l=Number.isNaN(f)?{silly:0,trace:1,debug:2,info:3,warn:4,error:5,fatal:6}[(null!==(h=process.env.LOG_LEVEL)&&void 0!==h?h:"").toLowerCase()]:f,m=new r.Logger({hideLogPositionForProduction:!0,minLevel:l,name:p,type:void 0===l?"hidden":"pretty"});var g,v,b;g=new WeakSet,v=function t(n,r,s){return o(this,arguments,void 0,(function*(n,r,o,s=""){if(m.debug("#transform params:\n",{node:n,input:r,output:o,path:s}),n instanceof Object&&1===e.size(n)&&"$"in n){const t=e.castArray(n.$);m.debug("transformations:\n",t);const r=[];for(const n of t){m.debug("processing transformation:\n",n);const{obj:t,path:o}=i(this,g,"m",b).call(this,n.method,r),s=e.castArray(n.params).map((t=>{const{obj:n,path:o}=i(this,g,"m",b).call(this,t,r);return n?o?e.get(n,o):n:o}));m.debug("resolved transformation params:\n",s);const a=yield e.invoke(t,o,...s);m.debug("transformation result:\n",a),r.unshift(a)}return e.set(o,s,r[0]),m.debug("updated output:\n",o),r[0]}if(e.isObject(n)){const a=Array.isArray(n)?[]:{};for(const[c,u]of e.sortBy(Object.entries(n),(([t])=>t))){const e=s?`${s}.${c}`:c;a[c]=yield i(this,g,"m",t).call(this,u,r,o,e)}return e.set(o,s,a),a}return e.set(o,s,n),n}))},b=function(t,n){if(!e.isString(t))return{path:t};const r={"^\\$\\.(?<obj>lib|input|output)\\.?(?<path>.*)":({obj:t,path:e})=>({obj:this[t],path:e}),"^\\$(?<path>\\[\\d+\\].*)":({path:t})=>({obj:n,path:t})};for(const[e,n]of Object.entries(r)){const r=t.match(e);if(null==r?void 0:r.groups)return n(r.groups)}return{path:t}},t.JsonMap=class{constructor(t={},n={},{ignore:r=/^\$/}={}){g.add(this),this.map=t,this.lib=n,this.ignore=e.isString(r)?new RegExp(r):r}transform(t){return o(this,void 0,void 0,(function*(){this.input=t,this.output={};const{replacer:r,reviver:o}=(()=>{const t=new WeakSet,r=n.nanoid();return{replacer:(n,o)=>{if("object"==typeof o&&null!==o){if(t.has(o))return"CIRCULAR REFERENCE";if(t.add(o),!e.isArrayLikeObject(o))return Object.getOwnPropertyNames(o).reduce(((t,e)=>Object.assign(Object.assign({},t),{[e]:o[e]})),{})}return e.isUndefined(o)?r:o},reviver:(t,e)=>e===r?void 0:e}})(),s=JSON.parse(JSON.stringify(yield i(this,g,"m",v).call(this,this.map,this.input,this.output),r),o),a=t=>t instanceof Object&&!e.isArray(t)?e.mapValues(e.pickBy(t,((t,e)=>!this.ignore.test(e))),(t=>e.cloneDeepWith(t,a))):void 0;return e.cloneDeepWith(s,a)}))}}}(this.jsonmap=this.jsonmap||{},_,nanoid,tslog);
package/dist/index.mjs CHANGED
@@ -41,17 +41,33 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
41
41
  };
42
42
 
43
43
  // Get package scope & name from package.json.
44
- var _a$1, _b, _c;
44
+ var _a$1, _b$1, _c;
45
45
  const npmPackageRegex = /^(?:(?<packageScope>@[a-z0-9-~][a-z0-9-._~]*)\/)?(?<packageName>[a-z0-9-~][a-z0-9-._~]*)$/;
46
- const { packageScope, packageName } = ((_c = (_b = (_a$1 = process.env.npm_package_name) === null || _a$1 === void 0 ? void 0 : _a$1.match(npmPackageRegex)) === null || _b === void 0 ? void 0 : _b.groups) !== null && _c !== void 0 ? _c : {});
46
+ const { packageScope, packageName } = ((_c = (_b$1 = (_a$1 = process.env.npm_package_name) === null || _a$1 === void 0 ? void 0 : _a$1.match(npmPackageRegex)) === null || _b$1 === void 0 ? void 0 : _b$1.groups) !== null && _c !== void 0 ? _c : {});
47
47
 
48
- var _a;
49
- const logLevel = _.parseInt((_a = process.env.LOG_LEVEL) !== null && _a !== void 0 ? _a : '');
48
+ var _a, _b;
49
+ // These are the presefined tslog log levels. You can specify
50
+ // LOG_LEVEL by any of the keys or values defined below.
51
+ const logLevels = {
52
+ silly: 0,
53
+ trace: 1,
54
+ debug: 2,
55
+ info: 3,
56
+ warn: 4,
57
+ error: 5,
58
+ fatal: 6,
59
+ };
60
+ const integerLogLevel = parseInt((_a = process.env.LOG_LEVEL) !== null && _a !== void 0 ? _a : '');
61
+ const resolvedLogLevel = Number.isNaN(integerLogLevel)
62
+ ? logLevels[((_b = process.env.LOG_LEVEL) !== null && _b !== void 0 ? _b : '').toLowerCase()]
63
+ : integerLogLevel;
64
+ // Set your tslog instance options here! By default, logs are suppressed if LOG_LEVEL is invalid or undefined.
65
+ // See https://tslog.js.org for more info.
50
66
  const logger = new Logger({
51
67
  hideLogPositionForProduction: true,
52
- minLevel: _.isNaN(logLevel) ? undefined : logLevel,
68
+ minLevel: resolvedLogLevel,
53
69
  name: packageName,
54
- type: _.isNaN(logLevel) ? 'hidden' : 'pretty',
70
+ type: resolvedLogLevel === undefined ? 'hidden' : 'pretty',
55
71
  });
56
72
 
57
73
  var _JsonMap_instances, _JsonMap_transform, _JsonMap_resolvePath;
package/package.json CHANGED
@@ -5,45 +5,45 @@
5
5
  },
6
6
  "dependencies": {
7
7
  "lodash": "^4.17.21",
8
- "nanoid": "^5.0.6",
8
+ "nanoid": "^5.0.7",
9
9
  "tslog": "^4.9.2",
10
- "zod": "^3.22.4"
10
+ "zod": "^3.23.8"
11
11
  },
12
12
  "description": "A hyper-generic JSON mapping library.",
13
13
  "devDependencies": {
14
- "@eslint/js": "^9.0.0",
14
+ "@eslint/js": "^9.4.0",
15
15
  "@rollup/plugin-terser": "^0.4.4",
16
16
  "@rollup/plugin-typescript": "^11.1.6",
17
- "@types/chai": "^4.3.14",
17
+ "@types/chai": "^4.3.16",
18
18
  "@types/debug": "^4.1.12",
19
19
  "@types/eslint__js": "^8.42.3",
20
20
  "@types/eslint-config-prettier": "^6.11.3",
21
21
  "@types/eslint-plugin-mocha": "^10.4.0",
22
- "@types/lodash": "^4.17.0",
22
+ "@types/lodash": "^4.17.4",
23
23
  "@types/mocha": "^10.0.6",
24
24
  "@types/numeral": "^2.0.5",
25
25
  "auto-changelog": "^2.4.0",
26
- "chai": "^5.1.0",
26
+ "chai": "^5.1.1",
27
27
  "cross-env": "^7.0.3",
28
28
  "eslint": "^8.57.0",
29
29
  "eslint-config-prettier": "^9.1.0",
30
- "eslint-plugin-mocha": "^10.4.2",
31
- "eslint-plugin-simple-import-sort": "^12.0.0",
30
+ "eslint-plugin-mocha": "^10.4.3",
31
+ "eslint-plugin-simple-import-sort": "^12.1.0",
32
32
  "jsdom-global": "^3.0.2",
33
- "lefthook": "^1.6.10",
33
+ "lefthook": "^1.6.15",
34
34
  "mocha": "^10.4.0",
35
35
  "numeral": "^2.0.6",
36
36
  "nyc": "^15.1.0",
37
- "prettier": "^3.2.5",
38
- "release-it": "^17.2.0",
39
- "rimraf": "^5.0.5",
40
- "rollup": "^4.14.2",
41
- "rollup-plugin-dts": "^6.1.0",
37
+ "prettier": "^3.3.1",
38
+ "release-it": "^17.3.0",
39
+ "rimraf": "^5.0.7",
40
+ "rollup": "^4.18.0",
41
+ "rollup-plugin-dts": "^6.1.1",
42
42
  "source-map-support": "^0.5.21",
43
43
  "ts-node": "^10.9.2",
44
- "tslib": "^2.6.2",
44
+ "tslib": "^2.6.3",
45
45
  "typescript": "^5.4.5",
46
- "typescript-eslint": "^7.6.0"
46
+ "typescript-eslint": "^7.12.0"
47
47
  },
48
48
  "exports": {
49
49
  ".": {
@@ -111,5 +111,5 @@
111
111
  },
112
112
  "type": "module",
113
113
  "types": "dist/index.d.ts",
114
- "version": "2.0.0"
114
+ "version": "2.0.2"
115
115
  }