@stryke/helpers 0.10.18 → 0.10.20
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/CHANGELOG.md +16 -0
- package/dist/_virtual/_rolldown/runtime.cjs +19 -0
- package/dist/_virtual/_rolldown/runtime.mjs +18 -0
- package/dist/arg-identity.cjs +9 -1
- package/dist/arg-identity.mjs +4 -1
- package/dist/arg-identity.mjs.map +1 -1
- package/dist/arg-identity.test.cjs +12 -0
- package/dist/arg-identity.test.d.cts +1 -0
- package/dist/arg-identity.test.d.mts +1 -0
- package/dist/arg-identity.test.mjs +14 -0
- package/dist/arg-identity.test.mjs.map +1 -0
- package/dist/deep-clone.cjs +9 -1
- package/dist/deep-clone.mjs +3 -1
- package/dist/deep-clone.mjs.map +1 -1
- package/dist/deep-clone.test.cjs +12 -0
- package/dist/deep-clone.test.d.cts +1 -0
- package/dist/deep-clone.test.d.mts +1 -0
- package/dist/deep-clone.test.mjs +14 -0
- package/dist/deep-clone.test.mjs.map +1 -0
- package/dist/deep-merge.cjs +9 -1
- package/dist/deep-merge.mjs +3 -1
- package/dist/deep-merge.mjs.map +1 -1
- package/dist/deep-merge.test.cjs +12 -0
- package/dist/deep-merge.test.d.cts +1 -0
- package/dist/deep-merge.test.d.mts +1 -0
- package/dist/deep-merge.test.mjs +14 -0
- package/dist/deep-merge.test.mjs.map +1 -0
- package/dist/filter-empty.cjs +9 -1
- package/dist/filter-empty.mjs +3 -1
- package/dist/filter-empty.mjs.map +1 -1
- package/dist/filter-empty.test.cjs +12 -0
- package/dist/filter-empty.test.d.cts +1 -0
- package/dist/filter-empty.test.d.mts +1 -0
- package/dist/filter-empty.test.mjs +14 -0
- package/dist/filter-empty.test.mjs.map +1 -0
- package/dist/flatten-object.cjs +9 -1
- package/dist/flatten-object.mjs +3 -1
- package/dist/flatten-object.mjs.map +1 -1
- package/dist/flatten-object.test.cjs +12 -0
- package/dist/flatten-object.test.d.cts +1 -0
- package/dist/flatten-object.test.d.mts +1 -0
- package/dist/flatten-object.test.mjs +14 -0
- package/dist/flatten-object.test.mjs.map +1 -0
- package/dist/get-field.cjs +9 -1
- package/dist/get-field.mjs +3 -1
- package/dist/get-field.mjs.map +1 -1
- package/dist/get-field.test.cjs +12 -0
- package/dist/get-field.test.d.cts +1 -0
- package/dist/get-field.test.d.mts +1 -0
- package/dist/get-field.test.mjs +14 -0
- package/dist/get-field.test.mjs.map +1 -0
- package/dist/get-ordered-by.cjs +9 -1
- package/dist/get-ordered-by.mjs +4 -1
- package/dist/get-ordered-by.mjs.map +1 -1
- package/dist/get-ordered-by.test.cjs +12 -0
- package/dist/get-ordered-by.test.d.cts +1 -0
- package/dist/get-ordered-by.test.d.mts +1 -0
- package/dist/get-ordered-by.test.mjs +14 -0
- package/dist/get-ordered-by.test.mjs.map +1 -0
- package/dist/get-unique.cjs +12 -1
- package/dist/get-unique.mjs +7 -1
- package/dist/get-unique.mjs.map +1 -1
- package/dist/get-unique.test.cjs +12 -0
- package/dist/get-unique.test.d.cts +1 -0
- package/dist/get-unique.test.d.mts +1 -0
- package/dist/get-unique.test.mjs +14 -0
- package/dist/get-unique.test.mjs.map +1 -0
- package/dist/identity.cjs +9 -1
- package/dist/identity.mjs +4 -1
- package/dist/identity.mjs.map +1 -1
- package/dist/identity.test.cjs +12 -0
- package/dist/identity.test.d.cts +1 -0
- package/dist/identity.test.d.mts +1 -0
- package/dist/identity.test.mjs +14 -0
- package/dist/identity.test.mjs.map +1 -0
- package/dist/index.cjs +41 -0
- package/dist/index.mjs +37 -1
- package/dist/index.mjs.map +1 -0
- package/dist/index.test.cjs +12 -0
- package/dist/index.test.d.cts +1 -0
- package/dist/index.test.d.mts +1 -0
- package/dist/index.test.mjs +14 -0
- package/dist/index.test.mjs.map +1 -0
- package/dist/is-equal.cjs +9 -1
- package/dist/is-equal.mjs +3 -1
- package/dist/is-equal.mjs.map +1 -1
- package/dist/is-equal.test.cjs +12 -0
- package/dist/is-equal.test.d.cts +1 -0
- package/dist/is-equal.test.d.mts +1 -0
- package/dist/is-equal.test.mjs +14 -0
- package/dist/is-equal.test.mjs.map +1 -0
- package/dist/lru-cache.cjs +9 -1
- package/dist/lru-cache.mjs +4 -1
- package/dist/lru-cache.mjs.map +1 -1
- package/dist/lru-cache.test.cjs +12 -0
- package/dist/lru-cache.test.d.cts +1 -0
- package/dist/lru-cache.test.d.mts +1 -0
- package/dist/lru-cache.test.mjs +14 -0
- package/dist/lru-cache.test.mjs.map +1 -0
- package/dist/match-sorter.cjs +12 -0
- package/dist/match-sorter.mjs +7 -1
- package/dist/match-sorter.mjs.map +1 -1
- package/dist/match-sorter.test.cjs +12 -0
- package/dist/match-sorter.test.d.cts +1 -0
- package/dist/match-sorter.test.d.mts +1 -0
- package/dist/match-sorter.test.mjs +14 -0
- package/dist/match-sorter.test.mjs.map +1 -0
- package/dist/memoize.cjs +9 -1
- package/dist/memoize.mjs +4 -1
- package/dist/memoize.mjs.map +1 -1
- package/dist/memoize.test.cjs +12 -0
- package/dist/memoize.test.d.cts +1 -0
- package/dist/memoize.test.d.mts +1 -0
- package/dist/memoize.test.mjs +14 -0
- package/dist/memoize.test.mjs.map +1 -0
- package/dist/noop.cjs +12 -1
- package/dist/noop.mjs +7 -1
- package/dist/noop.mjs.map +1 -1
- package/dist/noop.test.cjs +12 -0
- package/dist/noop.test.d.cts +1 -0
- package/dist/noop.test.d.mts +1 -0
- package/dist/noop.test.mjs +14 -0
- package/dist/noop.test.mjs.map +1 -0
- package/dist/omit.cjs +9 -1
- package/dist/omit.mjs +4 -1
- package/dist/omit.mjs.map +1 -1
- package/dist/omit.test.cjs +12 -0
- package/dist/omit.test.d.cts +1 -0
- package/dist/omit.test.d.mts +1 -0
- package/dist/omit.test.mjs +14 -0
- package/dist/omit.test.mjs.map +1 -0
- package/dist/pick.cjs +9 -1
- package/dist/pick.mjs +4 -1
- package/dist/pick.mjs.map +1 -1
- package/dist/pick.test.cjs +12 -0
- package/dist/pick.test.d.cts +1 -0
- package/dist/pick.test.d.mts +1 -0
- package/dist/pick.test.mjs +14 -0
- package/dist/pick.test.mjs.map +1 -0
- package/dist/remove-accents.cjs +12 -1
- package/dist/remove-accents.mjs +7 -1
- package/dist/remove-accents.mjs.map +1 -1
- package/dist/remove-accents.test.cjs +12 -0
- package/dist/remove-accents.test.d.cts +1 -0
- package/dist/remove-accents.test.d.mts +1 -0
- package/dist/remove-accents.test.mjs +14 -0
- package/dist/remove-accents.test.mjs.map +1 -0
- package/dist/remove-empty-items.cjs +9 -1
- package/dist/remove-empty-items.mjs +4 -1
- package/dist/remove-empty-items.mjs.map +1 -1
- package/dist/remove-empty-items.test.cjs +12 -0
- package/dist/remove-empty-items.test.d.cts +1 -0
- package/dist/remove-empty-items.test.d.mts +1 -0
- package/dist/remove-empty-items.test.mjs +14 -0
- package/dist/remove-empty-items.test.mjs.map +1 -0
- package/dist/set-field.cjs +9 -1
- package/dist/set-field.mjs +3 -1
- package/dist/set-field.mjs.map +1 -1
- package/dist/set-field.test.cjs +12 -0
- package/dist/set-field.test.d.cts +1 -0
- package/dist/set-field.test.d.mts +1 -0
- package/dist/set-field.test.mjs +14 -0
- package/dist/set-field.test.mjs.map +1 -0
- package/dist/to-deep-key.cjs +12 -1
- package/dist/to-deep-key.mjs +6 -1
- package/dist/to-deep-key.mjs.map +1 -1
- package/dist/to-deep-key.test.cjs +12 -0
- package/dist/to-deep-key.test.d.cts +1 -0
- package/dist/to-deep-key.test.d.mts +1 -0
- package/dist/to-deep-key.test.mjs +14 -0
- package/dist/to-deep-key.test.mjs.map +1 -0
- package/dist/to-path.cjs +9 -1
- package/dist/to-path.mjs +4 -1
- package/dist/to-path.mjs.map +1 -1
- package/dist/to-path.test.cjs +12 -0
- package/dist/to-path.test.d.cts +1 -0
- package/dist/to-path.test.d.mts +1 -0
- package/dist/to-path.test.mjs +14 -0
- package/dist/to-path.test.mjs.map +1 -0
- package/dist/unflatten-object.cjs +9 -1
- package/dist/unflatten-object.mjs +3 -1
- package/dist/unflatten-object.mjs.map +1 -1
- package/dist/unflatten-object.test.cjs +12 -0
- package/dist/unflatten-object.test.d.cts +1 -0
- package/dist/unflatten-object.test.d.mts +1 -0
- package/dist/unflatten-object.test.mjs +14 -0
- package/dist/unflatten-object.test.mjs.map +1 -0
- package/dist/union.cjs +9 -1
- package/dist/union.mjs +3 -1
- package/dist/union.mjs.map +1 -1
- package/dist/union.test.cjs +12 -0
- package/dist/union.test.d.cts +1 -0
- package/dist/union.test.d.mts +1 -0
- package/dist/union.test.mjs +14 -0
- package/dist/union.test.mjs.map +1 -0
- package/package.json +101 -5
package/dist/to-path.mjs
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { __exportAll } from "./_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
|
|
1
3
|
//#region src/to-path.ts
|
|
4
|
+
var to_path_exports = /* @__PURE__ */ __exportAll({ toPath: () => toPath });
|
|
2
5
|
const DOTS_KEY = /^[\w.]+$/g;
|
|
3
6
|
const ESCAPE_REGEXP = /\\(?<temp1>\\)?/g;
|
|
4
7
|
const PROPERTY_REGEXP = new RegExp(`${String.raw`[^.[\]]+`}|${String.raw`\[(?:`}([^"'][^[]*)|${String.raw`(["'])((?:(?!\2)[^\\]|\\.)*?)\2`}${String.raw`)\]`}|${String.raw`(?=(?:\.|\[\])(?:\.|\[\]|$))`}`, "g");
|
|
@@ -39,5 +42,5 @@ function toPath(deepKey) {
|
|
|
39
42
|
}
|
|
40
43
|
|
|
41
44
|
//#endregion
|
|
42
|
-
export { toPath };
|
|
45
|
+
export { toPath, to_path_exports };
|
|
43
46
|
//# sourceMappingURL=to-path.mjs.map
|
package/dist/to-path.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-path.mjs","names":[],"sources":["../src/to-path.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nconst DOTS_KEY = /^[\\w.]+$/g;\n\nconst ESCAPE_REGEXP = /\\\\(?<temp1>\\\\)?/g;\nconst PROPERTY_REGEXP = new RegExp(\n // Match anything that isn't a dot or bracket.\n `${String.raw`[^.[\\]]+`}|${\n // Or match property names within brackets.\n String.raw`\\[(?:`\n // Match a non-string expression.\n }([^\"'][^[]*)` +\n `|${\n // Or match strings (supports escaping characters).\n String.raw`([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2`\n }${String.raw`)\\]`}|${\n // Or match \"\" as the space between consecutive dots or empty brackets.\n String.raw`(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`\n }`,\n \"g\"\n);\n\n/**\n * Converts a deep key string into an array of path segments.\n *\n * @remarks\n * This function takes a string representing a deep key (e.g., 'a.b.c' or 'a[b][c]') and breaks it down into an array of strings, each representing a segment of the path.\n *\n * @example\n * ```ts\n * toPath('a.b.c') // Returns ['a', 'b', 'c']\n * toPath('a[b][c]') // Returns ['a', 'b', 'c']\n * toPath('.a.b.c') // Returns ['', 'a', 'b', 'c']\n * toPath('a[\"b.c\"].d') // Returns ['a', 'b.c', 'd']\n * toPath('') // Returns []\n * toPath('.a[b].c.d[e][\"f.g\"].h') // Returns ['', 'a', 'b', 'c', 'd', 'e', 'f.g', 'h']\n * ```\n *\n * @param deepKey - The deep key string to convert.\n * @returns An array of strings, each representing a segment of the path.\n */\nexport function toPath(deepKey: string): string[] {\n if (DOTS_KEY.test(deepKey)) {\n return deepKey.split(\".\");\n }\n\n const result: string[] = [];\n\n if (deepKey[0] === \".\") {\n result.push(\"\");\n }\n\n const matches = deepKey.matchAll(PROPERTY_REGEXP);\n\n for (const match of matches) {\n let key = match[0];\n const expr = match[1];\n const quote = match[2];\n const substr = match[3];\n\n if (quote && substr) {\n key = substr.replace(ESCAPE_REGEXP, \"$1\");\n } else if (expr) {\n key = expr;\n }\n\n result.push(key);\n }\n\n return result;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"to-path.mjs","names":[],"sources":["../src/to-path.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nconst DOTS_KEY = /^[\\w.]+$/g;\n\nconst ESCAPE_REGEXP = /\\\\(?<temp1>\\\\)?/g;\nconst PROPERTY_REGEXP = new RegExp(\n // Match anything that isn't a dot or bracket.\n `${String.raw`[^.[\\]]+`}|${\n // Or match property names within brackets.\n String.raw`\\[(?:`\n // Match a non-string expression.\n }([^\"'][^[]*)` +\n `|${\n // Or match strings (supports escaping characters).\n String.raw`([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2`\n }${String.raw`)\\]`}|${\n // Or match \"\" as the space between consecutive dots or empty brackets.\n String.raw`(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`\n }`,\n \"g\"\n);\n\n/**\n * Converts a deep key string into an array of path segments.\n *\n * @remarks\n * This function takes a string representing a deep key (e.g., 'a.b.c' or 'a[b][c]') and breaks it down into an array of strings, each representing a segment of the path.\n *\n * @example\n * ```ts\n * toPath('a.b.c') // Returns ['a', 'b', 'c']\n * toPath('a[b][c]') // Returns ['a', 'b', 'c']\n * toPath('.a.b.c') // Returns ['', 'a', 'b', 'c']\n * toPath('a[\"b.c\"].d') // Returns ['a', 'b.c', 'd']\n * toPath('') // Returns []\n * toPath('.a[b].c.d[e][\"f.g\"].h') // Returns ['', 'a', 'b', 'c', 'd', 'e', 'f.g', 'h']\n * ```\n *\n * @param deepKey - The deep key string to convert.\n * @returns An array of strings, each representing a segment of the path.\n */\nexport function toPath(deepKey: string): string[] {\n if (DOTS_KEY.test(deepKey)) {\n return deepKey.split(\".\");\n }\n\n const result: string[] = [];\n\n if (deepKey[0] === \".\") {\n result.push(\"\");\n }\n\n const matches = deepKey.matchAll(PROPERTY_REGEXP);\n\n for (const match of matches) {\n let key = match[0];\n const expr = match[1];\n const quote = match[2];\n const substr = match[3];\n\n if (quote && substr) {\n key = substr.replace(ESCAPE_REGEXP, \"$1\");\n } else if (expr) {\n key = expr;\n }\n\n result.push(key);\n }\n\n return result;\n}\n"],"mappings":";;;;AAkBA,MAAM,WAAW;AAEjB,MAAM,gBAAgB;AACtB,MAAM,kBAAkB,IAAI,OAE1B,GAAG,OAAO,GAAG,WAAW,GAEtB,OAAO,GAAG,QAEX,eAGG,OAAO,GAAG,oCACT,OAAO,GAAG,MAAM,GAEjB,OAAO,GAAG,kCAEd,IACD;;;;;;;;;;;;;;;;;;;;AAqBD,SAAgB,OAAO,SAA2B;AAChD,KAAI,SAAS,KAAK,QAAQ,CACxB,QAAO,QAAQ,MAAM,IAAI;CAG3B,MAAM,SAAmB,EAAE;AAE3B,KAAI,QAAQ,OAAO,IACjB,QAAO,KAAK,GAAG;CAGjB,MAAM,UAAU,QAAQ,SAAS,gBAAgB;AAEjD,MAAK,MAAM,SAAS,SAAS;EAC3B,IAAI,MAAM,MAAM;EAChB,MAAM,OAAO,MAAM;EACnB,MAAM,QAAQ,MAAM;EACpB,MAAM,SAAS,MAAM;AAErB,MAAI,SAAS,OACX,OAAM,OAAO,QAAQ,eAAe,KAAK;WAChC,KACT,OAAM;AAGR,SAAO,KAAK,IAAI;;AAGlB,QAAO"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const require_to_path = require('./to-path.cjs');
|
|
2
|
+
let vitest = require("vitest");
|
|
3
|
+
|
|
4
|
+
//#region src/to-path.test.ts
|
|
5
|
+
(0, vitest.describe)("to-path.ts exports", () => {
|
|
6
|
+
(0, vitest.it)("loads module exports", () => {
|
|
7
|
+
(0, vitest.expect)(require_to_path.to_path_exports).toBeDefined();
|
|
8
|
+
(0, vitest.expect)(typeof require_to_path.to_path_exports).toBe("object");
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { to_path_exports } from "./to-path.mjs";
|
|
2
|
+
import { describe, expect, it } from "vitest";
|
|
3
|
+
|
|
4
|
+
//#region src/to-path.test.ts
|
|
5
|
+
describe("to-path.ts exports", () => {
|
|
6
|
+
it("loads module exports", () => {
|
|
7
|
+
expect(to_path_exports).toBeDefined();
|
|
8
|
+
expect(typeof to_path_exports).toBe("object");
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { };
|
|
14
|
+
//# sourceMappingURL=to-path.test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-path.test.mjs","names":["moduleExports"],"sources":["../src/to-path.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./to-path.ts\";\n\ndescribe(\"to-path.ts exports\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n});\n"],"mappings":";;;;AAGA,SAAS,4BAA4B;AACnC,IAAG,8BAA8B;AAC/B,SAAOA,gBAAc,CAAC,aAAa;AACnC,SAAO,OAAOA,gBAAc,CAAC,KAAK,SAAS;GAC3C;EACF"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
2
3
|
const require_set_field = require('./set-field.cjs');
|
|
3
4
|
|
|
4
5
|
//#region src/unflatten-object.ts
|
|
6
|
+
var unflatten_object_exports = /* @__PURE__ */ require_runtime.__exportAll({ unflattenObject: () => unflattenObject });
|
|
5
7
|
/**
|
|
6
8
|
* Flattens a nested object into a single level object with dot-separated keys.
|
|
7
9
|
*
|
|
@@ -36,4 +38,10 @@ function unflattenObject(deepKeyObject) {
|
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
//#endregion
|
|
39
|
-
exports.unflattenObject = unflattenObject;
|
|
41
|
+
exports.unflattenObject = unflattenObject;
|
|
42
|
+
Object.defineProperty(exports, 'unflatten_object_exports', {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return unflatten_object_exports;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { __exportAll } from "./_virtual/_rolldown/runtime.mjs";
|
|
1
2
|
import { setField } from "./set-field.mjs";
|
|
2
3
|
|
|
3
4
|
//#region src/unflatten-object.ts
|
|
5
|
+
var unflatten_object_exports = /* @__PURE__ */ __exportAll({ unflattenObject: () => unflattenObject });
|
|
4
6
|
/**
|
|
5
7
|
* Flattens a nested object into a single level object with dot-separated keys.
|
|
6
8
|
*
|
|
@@ -35,5 +37,5 @@ function unflattenObject(deepKeyObject) {
|
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
//#endregion
|
|
38
|
-
export { unflattenObject };
|
|
40
|
+
export { unflattenObject, unflatten_object_exports };
|
|
39
41
|
//# sourceMappingURL=unflatten-object.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unflatten-object.mjs","names":[],"sources":["../src/unflatten-object.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { DeepKey, DeepValue } from \"@stryke/types\";\nimport { setField } from \"./set-field\";\n\n/**\n * Flattens a nested object into a single level object with dot-separated keys.\n *\n * @example\n * ```typescript\n * const nestedObject = {\n * a: {\n * b: {\n * c: 1\n * }\n * },\n * d: [2, 3]\n * };\n *\n * const flattened = flattenObject(nestedObject);\n * console.log(flattened);\n * // Output:\n * // {\n * // 'a.b.c': 1,\n * // 'd.0': 2,\n * // 'd.1': 3\n * // }\n * ```\n *\n * @param deepKeyObject - The object to flatten.\n * @returns - The flattened object.\n */\nexport function unflattenObject<\n TObject extends Record<string, any> = Record<string, any>,\n TDeepKeyObject extends {\n [TKey in DeepKey<TObject>]: DeepValue<TObject, TKey>;\n } = { [TKey in DeepKey<TObject>]: DeepValue<TObject, TKey> }\n>(deepKeyObject: TDeepKeyObject): TObject {\n return Object.entries(deepKeyObject).reduce(\n (ret: TObject, [key, value]: [string, any]) => {\n return setField<TObject>(ret, key as DeepKey<TObject>, value);\n },\n {} as TObject\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"unflatten-object.mjs","names":[],"sources":["../src/unflatten-object.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { DeepKey, DeepValue } from \"@stryke/types\";\nimport { setField } from \"./set-field\";\n\n/**\n * Flattens a nested object into a single level object with dot-separated keys.\n *\n * @example\n * ```typescript\n * const nestedObject = {\n * a: {\n * b: {\n * c: 1\n * }\n * },\n * d: [2, 3]\n * };\n *\n * const flattened = flattenObject(nestedObject);\n * console.log(flattened);\n * // Output:\n * // {\n * // 'a.b.c': 1,\n * // 'd.0': 2,\n * // 'd.1': 3\n * // }\n * ```\n *\n * @param deepKeyObject - The object to flatten.\n * @returns - The flattened object.\n */\nexport function unflattenObject<\n TObject extends Record<string, any> = Record<string, any>,\n TDeepKeyObject extends {\n [TKey in DeepKey<TObject>]: DeepValue<TObject, TKey>;\n } = { [TKey in DeepKey<TObject>]: DeepValue<TObject, TKey> }\n>(deepKeyObject: TDeepKeyObject): TObject {\n return Object.entries(deepKeyObject).reduce(\n (ret: TObject, [key, value]: [string, any]) => {\n return setField<TObject>(ret, key as DeepKey<TObject>, value);\n },\n {} as TObject\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDA,SAAgB,gBAKd,eAAwC;AACxC,QAAO,OAAO,QAAQ,cAAc,CAAC,QAClC,KAAc,CAAC,KAAK,WAA0B;AAC7C,SAAO,SAAkB,KAAK,KAAyB,MAAM;IAE/D,EAAE,CACH"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const require_unflatten_object = require('./unflatten-object.cjs');
|
|
2
|
+
let vitest = require("vitest");
|
|
3
|
+
|
|
4
|
+
//#region src/unflatten-object.test.ts
|
|
5
|
+
(0, vitest.describe)("unflatten-object.ts exports", () => {
|
|
6
|
+
(0, vitest.it)("loads module exports", () => {
|
|
7
|
+
(0, vitest.expect)(require_unflatten_object.unflatten_object_exports).toBeDefined();
|
|
8
|
+
(0, vitest.expect)(typeof require_unflatten_object.unflatten_object_exports).toBe("object");
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { unflatten_object_exports } from "./unflatten-object.mjs";
|
|
2
|
+
import { describe, expect, it } from "vitest";
|
|
3
|
+
|
|
4
|
+
//#region src/unflatten-object.test.ts
|
|
5
|
+
describe("unflatten-object.ts exports", () => {
|
|
6
|
+
it("loads module exports", () => {
|
|
7
|
+
expect(unflatten_object_exports).toBeDefined();
|
|
8
|
+
expect(typeof unflatten_object_exports).toBe("object");
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { };
|
|
14
|
+
//# sourceMappingURL=unflatten-object.test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unflatten-object.test.mjs","names":["moduleExports"],"sources":["../src/unflatten-object.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./unflatten-object.ts\";\n\ndescribe(\"unflatten-object.ts exports\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n});\n"],"mappings":";;;;AAGA,SAAS,qCAAqC;AAC5C,IAAG,8BAA8B;AAC/B,SAAOA,yBAAc,CAAC,aAAa;AACnC,SAAO,OAAOA,yBAAc,CAAC,KAAK,SAAS;GAC3C;EACF"}
|
package/dist/union.cjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
2
3
|
const require_get_unique = require('./get-unique.cjs');
|
|
3
4
|
|
|
4
5
|
//#region src/union.ts
|
|
6
|
+
var union_exports = /* @__PURE__ */ require_runtime.__exportAll({ union: () => union });
|
|
5
7
|
/**
|
|
6
8
|
* Creates an array of unique values from all given arrays.
|
|
7
9
|
*
|
|
@@ -26,4 +28,10 @@ function union(arr1, arr2) {
|
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
//#endregion
|
|
29
|
-
exports.union = union;
|
|
31
|
+
exports.union = union;
|
|
32
|
+
Object.defineProperty(exports, 'union_exports', {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return union_exports;
|
|
36
|
+
}
|
|
37
|
+
});
|
package/dist/union.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { __exportAll } from "./_virtual/_rolldown/runtime.mjs";
|
|
1
2
|
import { getUnique } from "./get-unique.mjs";
|
|
2
3
|
|
|
3
4
|
//#region src/union.ts
|
|
5
|
+
var union_exports = /* @__PURE__ */ __exportAll({ union: () => union });
|
|
4
6
|
/**
|
|
5
7
|
* Creates an array of unique values from all given arrays.
|
|
6
8
|
*
|
|
@@ -25,5 +27,5 @@ function union(arr1, arr2) {
|
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
//#endregion
|
|
28
|
-
export { union };
|
|
30
|
+
export { union, union_exports };
|
|
29
31
|
//# sourceMappingURL=union.mjs.map
|
package/dist/union.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"union.mjs","names":[],"sources":["../src/union.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { getUnique } from \"./get-unique\";\n\n/**\n * Creates an array of unique values from all given arrays.\n *\n * @remarks\n * This function takes two arrays, merges them into a single array, and returns a new array\n * containing only the unique values from the merged array.\n *\n * @example\n * ```ts\n * const array1 = [1, 2, 3];\n * const array2 = [3, 4, 5];\n * const result = union(array1, array2);\n * // result will be [1, 2, 3, 4, 5]\n * ```\n *\n * @param arr1 - The first array to merge and filter for unique values.\n * @param arr2 - The second array to merge and filter for unique values.\n * @returns A new array of unique values.\n */\nexport function union<T>(arr1: readonly T[], arr2: readonly T[]): T[] {\n return getUnique([...arr1, ...arr2]);\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"union.mjs","names":[],"sources":["../src/union.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { getUnique } from \"./get-unique\";\n\n/**\n * Creates an array of unique values from all given arrays.\n *\n * @remarks\n * This function takes two arrays, merges them into a single array, and returns a new array\n * containing only the unique values from the merged array.\n *\n * @example\n * ```ts\n * const array1 = [1, 2, 3];\n * const array2 = [3, 4, 5];\n * const result = union(array1, array2);\n * // result will be [1, 2, 3, 4, 5]\n * ```\n *\n * @param arr1 - The first array to merge and filter for unique values.\n * @param arr2 - The second array to merge and filter for unique values.\n * @returns A new array of unique values.\n */\nexport function union<T>(arr1: readonly T[], arr2: readonly T[]): T[] {\n return getUnique([...arr1, ...arr2]);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAuCA,SAAgB,MAAS,MAAoB,MAAyB;AACpE,QAAO,UAAU,CAAC,GAAG,MAAM,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const require_union = require('./union.cjs');
|
|
2
|
+
let vitest = require("vitest");
|
|
3
|
+
|
|
4
|
+
//#region src/union.test.ts
|
|
5
|
+
(0, vitest.describe)("union.ts exports", () => {
|
|
6
|
+
(0, vitest.it)("loads module exports", () => {
|
|
7
|
+
(0, vitest.expect)(require_union.union_exports).toBeDefined();
|
|
8
|
+
(0, vitest.expect)(typeof require_union.union_exports).toBe("object");
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { union_exports } from "./union.mjs";
|
|
2
|
+
import { describe, expect, it } from "vitest";
|
|
3
|
+
|
|
4
|
+
//#region src/union.test.ts
|
|
5
|
+
describe("union.ts exports", () => {
|
|
6
|
+
it("loads module exports", () => {
|
|
7
|
+
expect(union_exports).toBeDefined();
|
|
8
|
+
expect(typeof union_exports).toBe("object");
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { };
|
|
14
|
+
//# sourceMappingURL=union.test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"union.test.mjs","names":["moduleExports"],"sources":["../src/union.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./union.ts\";\n\ndescribe(\"union.ts exports\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n});\n"],"mappings":";;;;AAGA,SAAS,0BAA0B;AACjC,IAAG,8BAA8B;AAC/B,SAAOA,cAAc,CAAC,aAAa;AACnC,SAAO,OAAOA,cAAc,CAAC,KAAK,SAAS;GAC3C;EACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/helpers",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.20",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing miscellaneous helper functions that are used across many different Storm Software projects.",
|
|
6
6
|
"repository": {
|
|
@@ -15,93 +15,189 @@
|
|
|
15
15
|
"import": "./dist/arg-identity.mjs",
|
|
16
16
|
"require": "./dist/arg-identity.cjs"
|
|
17
17
|
},
|
|
18
|
+
"./arg-identity.test": {
|
|
19
|
+
"import": "./dist/arg-identity.test.mjs",
|
|
20
|
+
"require": "./dist/arg-identity.test.cjs"
|
|
21
|
+
},
|
|
18
22
|
"./deep-clone": {
|
|
19
23
|
"import": "./dist/deep-clone.mjs",
|
|
20
24
|
"require": "./dist/deep-clone.cjs"
|
|
21
25
|
},
|
|
26
|
+
"./deep-clone.test": {
|
|
27
|
+
"import": "./dist/deep-clone.test.mjs",
|
|
28
|
+
"require": "./dist/deep-clone.test.cjs"
|
|
29
|
+
},
|
|
22
30
|
"./deep-merge": {
|
|
23
31
|
"import": "./dist/deep-merge.mjs",
|
|
24
32
|
"require": "./dist/deep-merge.cjs"
|
|
25
33
|
},
|
|
34
|
+
"./deep-merge.test": {
|
|
35
|
+
"import": "./dist/deep-merge.test.mjs",
|
|
36
|
+
"require": "./dist/deep-merge.test.cjs"
|
|
37
|
+
},
|
|
26
38
|
"./filter-empty": {
|
|
27
39
|
"import": "./dist/filter-empty.mjs",
|
|
28
40
|
"require": "./dist/filter-empty.cjs"
|
|
29
41
|
},
|
|
42
|
+
"./filter-empty.test": {
|
|
43
|
+
"import": "./dist/filter-empty.test.mjs",
|
|
44
|
+
"require": "./dist/filter-empty.test.cjs"
|
|
45
|
+
},
|
|
30
46
|
"./flatten-object": {
|
|
31
47
|
"import": "./dist/flatten-object.mjs",
|
|
32
48
|
"require": "./dist/flatten-object.cjs"
|
|
33
49
|
},
|
|
50
|
+
"./flatten-object.test": {
|
|
51
|
+
"import": "./dist/flatten-object.test.mjs",
|
|
52
|
+
"require": "./dist/flatten-object.test.cjs"
|
|
53
|
+
},
|
|
34
54
|
"./get-field": {
|
|
35
55
|
"import": "./dist/get-field.mjs",
|
|
36
56
|
"require": "./dist/get-field.cjs"
|
|
37
57
|
},
|
|
58
|
+
"./get-field.test": {
|
|
59
|
+
"import": "./dist/get-field.test.mjs",
|
|
60
|
+
"require": "./dist/get-field.test.cjs"
|
|
61
|
+
},
|
|
38
62
|
"./get-ordered-by": {
|
|
39
63
|
"import": "./dist/get-ordered-by.mjs",
|
|
40
64
|
"require": "./dist/get-ordered-by.cjs"
|
|
41
65
|
},
|
|
66
|
+
"./get-ordered-by.test": {
|
|
67
|
+
"import": "./dist/get-ordered-by.test.mjs",
|
|
68
|
+
"require": "./dist/get-ordered-by.test.cjs"
|
|
69
|
+
},
|
|
42
70
|
"./get-unique": {
|
|
43
71
|
"import": "./dist/get-unique.mjs",
|
|
44
72
|
"require": "./dist/get-unique.cjs"
|
|
45
73
|
},
|
|
74
|
+
"./get-unique.test": {
|
|
75
|
+
"import": "./dist/get-unique.test.mjs",
|
|
76
|
+
"require": "./dist/get-unique.test.cjs"
|
|
77
|
+
},
|
|
46
78
|
"./identity": {
|
|
47
79
|
"import": "./dist/identity.mjs",
|
|
48
80
|
"require": "./dist/identity.cjs"
|
|
49
81
|
},
|
|
82
|
+
"./identity.test": {
|
|
83
|
+
"import": "./dist/identity.test.mjs",
|
|
84
|
+
"require": "./dist/identity.test.cjs"
|
|
85
|
+
},
|
|
86
|
+
"./index.test": {
|
|
87
|
+
"import": "./dist/index.test.mjs",
|
|
88
|
+
"require": "./dist/index.test.cjs"
|
|
89
|
+
},
|
|
50
90
|
"./is-equal": {
|
|
51
91
|
"import": "./dist/is-equal.mjs",
|
|
52
92
|
"require": "./dist/is-equal.cjs"
|
|
53
93
|
},
|
|
94
|
+
"./is-equal.test": {
|
|
95
|
+
"import": "./dist/is-equal.test.mjs",
|
|
96
|
+
"require": "./dist/is-equal.test.cjs"
|
|
97
|
+
},
|
|
54
98
|
"./lru-cache": {
|
|
55
99
|
"import": "./dist/lru-cache.mjs",
|
|
56
100
|
"require": "./dist/lru-cache.cjs"
|
|
57
101
|
},
|
|
102
|
+
"./lru-cache.test": {
|
|
103
|
+
"import": "./dist/lru-cache.test.mjs",
|
|
104
|
+
"require": "./dist/lru-cache.test.cjs"
|
|
105
|
+
},
|
|
58
106
|
"./match-sorter": {
|
|
59
107
|
"import": "./dist/match-sorter.mjs",
|
|
60
108
|
"require": "./dist/match-sorter.cjs"
|
|
61
109
|
},
|
|
110
|
+
"./match-sorter.test": {
|
|
111
|
+
"import": "./dist/match-sorter.test.mjs",
|
|
112
|
+
"require": "./dist/match-sorter.test.cjs"
|
|
113
|
+
},
|
|
62
114
|
"./memoize": {
|
|
63
115
|
"import": "./dist/memoize.mjs",
|
|
64
116
|
"require": "./dist/memoize.cjs"
|
|
65
117
|
},
|
|
118
|
+
"./memoize.test": {
|
|
119
|
+
"import": "./dist/memoize.test.mjs",
|
|
120
|
+
"require": "./dist/memoize.test.cjs"
|
|
121
|
+
},
|
|
66
122
|
"./noop": { "import": "./dist/noop.mjs", "require": "./dist/noop.cjs" },
|
|
123
|
+
"./noop.test": {
|
|
124
|
+
"import": "./dist/noop.test.mjs",
|
|
125
|
+
"require": "./dist/noop.test.cjs"
|
|
126
|
+
},
|
|
67
127
|
"./omit": { "import": "./dist/omit.mjs", "require": "./dist/omit.cjs" },
|
|
128
|
+
"./omit.test": {
|
|
129
|
+
"import": "./dist/omit.test.mjs",
|
|
130
|
+
"require": "./dist/omit.test.cjs"
|
|
131
|
+
},
|
|
68
132
|
"./pick": { "import": "./dist/pick.mjs", "require": "./dist/pick.cjs" },
|
|
133
|
+
"./pick.test": {
|
|
134
|
+
"import": "./dist/pick.test.mjs",
|
|
135
|
+
"require": "./dist/pick.test.cjs"
|
|
136
|
+
},
|
|
69
137
|
"./remove-accents": {
|
|
70
138
|
"import": "./dist/remove-accents.mjs",
|
|
71
139
|
"require": "./dist/remove-accents.cjs"
|
|
72
140
|
},
|
|
141
|
+
"./remove-accents.test": {
|
|
142
|
+
"import": "./dist/remove-accents.test.mjs",
|
|
143
|
+
"require": "./dist/remove-accents.test.cjs"
|
|
144
|
+
},
|
|
73
145
|
"./remove-empty-items": {
|
|
74
146
|
"import": "./dist/remove-empty-items.mjs",
|
|
75
147
|
"require": "./dist/remove-empty-items.cjs"
|
|
76
148
|
},
|
|
149
|
+
"./remove-empty-items.test": {
|
|
150
|
+
"import": "./dist/remove-empty-items.test.mjs",
|
|
151
|
+
"require": "./dist/remove-empty-items.test.cjs"
|
|
152
|
+
},
|
|
77
153
|
"./set-field": {
|
|
78
154
|
"import": "./dist/set-field.mjs",
|
|
79
155
|
"require": "./dist/set-field.cjs"
|
|
80
156
|
},
|
|
157
|
+
"./set-field.test": {
|
|
158
|
+
"import": "./dist/set-field.test.mjs",
|
|
159
|
+
"require": "./dist/set-field.test.cjs"
|
|
160
|
+
},
|
|
81
161
|
"./to-deep-key": {
|
|
82
162
|
"import": "./dist/to-deep-key.mjs",
|
|
83
163
|
"require": "./dist/to-deep-key.cjs"
|
|
84
164
|
},
|
|
165
|
+
"./to-deep-key.test": {
|
|
166
|
+
"import": "./dist/to-deep-key.test.mjs",
|
|
167
|
+
"require": "./dist/to-deep-key.test.cjs"
|
|
168
|
+
},
|
|
85
169
|
"./to-path": {
|
|
86
170
|
"import": "./dist/to-path.mjs",
|
|
87
171
|
"require": "./dist/to-path.cjs"
|
|
88
172
|
},
|
|
173
|
+
"./to-path.test": {
|
|
174
|
+
"import": "./dist/to-path.test.mjs",
|
|
175
|
+
"require": "./dist/to-path.test.cjs"
|
|
176
|
+
},
|
|
89
177
|
"./unflatten-object": {
|
|
90
178
|
"import": "./dist/unflatten-object.mjs",
|
|
91
179
|
"require": "./dist/unflatten-object.cjs"
|
|
92
180
|
},
|
|
181
|
+
"./unflatten-object.test": {
|
|
182
|
+
"import": "./dist/unflatten-object.test.mjs",
|
|
183
|
+
"require": "./dist/unflatten-object.test.cjs"
|
|
184
|
+
},
|
|
93
185
|
"./union": { "import": "./dist/union.mjs", "require": "./dist/union.cjs" },
|
|
186
|
+
"./union.test": {
|
|
187
|
+
"import": "./dist/union.test.mjs",
|
|
188
|
+
"require": "./dist/union.test.cjs"
|
|
189
|
+
},
|
|
94
190
|
"./*": "./*"
|
|
95
191
|
},
|
|
96
192
|
"main": "./dist/index.cjs",
|
|
97
193
|
"module": "./dist/index.mjs",
|
|
98
194
|
"types": "./dist/index.d.cts",
|
|
99
195
|
"dependencies": {
|
|
100
|
-
"@stryke/convert": "^0.7.
|
|
101
|
-
"@stryke/type-checks": "^0.6.
|
|
102
|
-
"@stryke/types": "^0.12.
|
|
196
|
+
"@stryke/convert": "^0.7.11",
|
|
197
|
+
"@stryke/type-checks": "^0.6.13",
|
|
198
|
+
"@stryke/types": "^0.12.8"
|
|
103
199
|
},
|
|
104
200
|
"devDependencies": { "tsdown": "^0.21.10" },
|
|
105
201
|
"publishConfig": { "access": "public" },
|
|
106
|
-
"gitHead": "
|
|
202
|
+
"gitHead": "004d35078864920425b41d1d90b45ef504f5a092"
|
|
107
203
|
}
|