@bemedev/decompose 0.3.0 → 0.3.1
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/package.json +6 -2
- package/.eslintignore +0 -7
- package/.eslintrc.yml +0 -19
- package/.github/workflows/ci.yml +0 -54
- package/.github/workflows/publish-NPM.yml +0 -63
- package/.gitpod-config/cleanYaml.sh +0 -2
- package/.gitpod-config/dependencies.sh +0 -1
- package/.gitpod-config/exec-gitpod.sh +0 -2
- package/.gitpod-config/exec-upgrade.sh +0 -2
- package/.gitpod-config/exec.sh +0 -3
- package/.gitpod-config/globalDependencies.sh +0 -1
- package/.gitpod-config/package.js +0 -17
- package/.gitpod-config/upgrade.sh +0 -1
- package/.gitpod-config/vsix/alexkrechik.cucumberautocomplete-2.15.1.vsix +0 -0
- package/.gitpod-config/vsix/commit-message-editor-0.18.1.vsix +0 -0
- package/.gitpod-config/vsix/formulahendry.auto-rename-tag-0.1.7.vsix +0 -0
- package/.gitpod.yml +0 -25
- package/.husky/pre-commit +0 -1
- package/.prettierignore +0 -4
- package/.prettierrc.yml +0 -18
- package/gitpod.temp.yml +0 -25
- package/package/lib/constants/strings.cjs +0 -8
- package/package/lib/constants/strings.cjs.map +0 -1
- package/package/lib/constants/strings.d.ts +0 -3
- package/package/lib/constants/strings.d.ts.map +0 -1
- package/package/lib/constants/strings.js +0 -5
- package/package/lib/constants/strings.js.map +0 -1
- package/package/lib/decompose.cjs +0 -31
- package/package/lib/decompose.cjs.map +0 -1
- package/package/lib/decompose.d.ts +0 -3
- package/package/lib/decompose.d.ts.map +0 -1
- package/package/lib/decompose.js +0 -29
- package/package/lib/decompose.js.map +0 -1
- package/package/lib/decomposeSV.cjs +0 -28
- package/package/lib/decomposeSV.cjs.map +0 -1
- package/package/lib/decomposeSV.d.ts +0 -3
- package/package/lib/decomposeSV.d.ts.map +0 -1
- package/package/lib/decomposeSV.js +0 -26
- package/package/lib/decomposeSV.js.map +0 -1
- package/package/lib/helpers.cjs +0 -12
- package/package/lib/helpers.cjs.map +0 -1
- package/package/lib/helpers.d.ts +0 -4
- package/package/lib/helpers.d.ts.map +0 -1
- package/package/lib/helpers.js +0 -10
- package/package/lib/helpers.js.map +0 -1
- package/package/lib/index.cjs +0 -15
- package/package/lib/index.cjs.map +0 -1
- package/package/lib/index.d.ts +0 -6
- package/package/lib/index.d.ts.map +0 -1
- package/package/lib/index.js +0 -5
- package/package/lib/index.js.map +0 -1
- package/package/lib/recompose.cjs +0 -34
- package/package/lib/recompose.cjs.map +0 -1
- package/package/lib/recompose.d.ts +0 -4
- package/package/lib/recompose.d.ts.map +0 -1
- package/package/lib/recompose.js +0 -31
- package/package/lib/recompose.js.map +0 -1
- package/package/lib/sortMap.cjs +0 -8
- package/package/lib/sortMap.cjs.map +0 -1
- package/package/lib/sortMap.d.ts +0 -2
- package/package/lib/sortMap.d.ts.map +0 -1
- package/package/lib/sortMap.js +0 -6
- package/package/lib/sortMap.js.map +0 -1
- package/package/lib/types.d.ts +0 -22
- package/package/lib/types.d.ts.map +0 -1
- package/rollup.config.mjs +0 -68
- package/src/constants/strings.ts +0 -2
- package/src/decompose.test.ts +0 -37
- package/src/decompose.ts +0 -32
- package/src/decomposeSV.test.ts +0 -72
- package/src/decomposeSV.ts +0 -31
- package/src/helpers.ts +0 -11
- package/src/index.ts +0 -5
- package/src/recompose.test.ts +0 -163
- package/src/recompose.ts +0 -30
- package/src/sortMap.ts +0 -3
- package/src/types.test-d.ts +0 -45
- package/src/types.test.ts +0 -12
- package/src/types.ts +0 -57
- package/tsconfig.json +0 -26
- package/vitest.config.ts +0 -24
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bemedev/decompose",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Decompose object and so more",
|
|
5
5
|
"author": {
|
|
6
6
|
"email": "bri_lvi@icloud.com",
|
|
@@ -26,13 +26,17 @@
|
|
|
26
26
|
"engines": {
|
|
27
27
|
"node": ">=20"
|
|
28
28
|
},
|
|
29
|
+
"files": [
|
|
30
|
+
"lib",
|
|
31
|
+
"public"
|
|
32
|
+
],
|
|
29
33
|
"scripts": {
|
|
30
34
|
"config": "pnpm install",
|
|
31
35
|
"config:off": "pnpm run config --offline",
|
|
32
36
|
"ci": "pnpm run config:off && pnpm run lint && pnpm run test && pnpm run build",
|
|
33
37
|
"ci:online": "pnpm run config && pnpm run lint && pnpm run test && pnpm run build",
|
|
34
38
|
"ci:admin": "pnpm run rm && pnpm run ci:online",
|
|
35
|
-
"rollup": "
|
|
39
|
+
"rollup": "NODE_OPTIONS=--max-old-space-size=7136 && rollup -c",
|
|
36
40
|
"build": "rm -rf lib && pnpm run rollup",
|
|
37
41
|
"rm": "rm -rf node_modules pnpm-lock.yaml",
|
|
38
42
|
"rinit": "pnpm run rm && pnpm run config",
|
package/.eslintignore
DELETED
package/.eslintrc.yml
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
env:
|
|
2
|
-
node: true
|
|
3
|
-
extends:
|
|
4
|
-
- eslint:recommended
|
|
5
|
-
- plugin:@typescript-eslint/recommended
|
|
6
|
-
|
|
7
|
-
parser: '@typescript-eslint/parser'
|
|
8
|
-
parserOptions:
|
|
9
|
-
ecmaVersion: 12
|
|
10
|
-
sourceType: module
|
|
11
|
-
plugins:
|
|
12
|
-
- '@typescript-eslint'
|
|
13
|
-
|
|
14
|
-
rules:
|
|
15
|
-
indent: 0
|
|
16
|
-
'@typescript-eslint/no-explicit-any': 1
|
|
17
|
-
linebreak-style: 0
|
|
18
|
-
quotes: 0
|
|
19
|
-
semi: 0
|
package/.github/workflows/ci.yml
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches-ignore:
|
|
6
|
-
- master
|
|
7
|
-
- main
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
test:
|
|
11
|
-
name: Test
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
|
|
14
|
-
steps:
|
|
15
|
-
- name: Checkout repo
|
|
16
|
-
uses: actions/checkout@v4
|
|
17
|
-
|
|
18
|
-
- name: 'Install node'
|
|
19
|
-
uses: actions/setup-node@v4
|
|
20
|
-
with:
|
|
21
|
-
node-version: 20
|
|
22
|
-
|
|
23
|
-
- name: Setup pnpm
|
|
24
|
-
uses: pnpm/action-setup@v3
|
|
25
|
-
id: pnpm-install
|
|
26
|
-
with:
|
|
27
|
-
version: 9
|
|
28
|
-
run_install: false
|
|
29
|
-
|
|
30
|
-
- name: Get pnpm store directory
|
|
31
|
-
id: pnpm-cache
|
|
32
|
-
shell: bash
|
|
33
|
-
run: |
|
|
34
|
-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
|
|
35
|
-
- uses: actions/cache@v4
|
|
36
|
-
name: Setup pnpm cache
|
|
37
|
-
with:
|
|
38
|
-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
|
|
39
|
-
key:
|
|
40
|
-
${{ runner.os }}-pnpm-store-${{
|
|
41
|
-
hashFiles('**/pnpm-lock.yaml')}}
|
|
42
|
-
restore-keys: |
|
|
43
|
-
${{ runner.os }}-pnpm-store-
|
|
44
|
-
- name: Install dependencies
|
|
45
|
-
run: pnpm install --frozen-lockfile
|
|
46
|
-
|
|
47
|
-
- name: lint
|
|
48
|
-
run: pnpm run lint
|
|
49
|
-
|
|
50
|
-
- name: Test
|
|
51
|
-
run: pnpm run test
|
|
52
|
-
|
|
53
|
-
- name: Build
|
|
54
|
-
run: pnpm run build
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
name: Publish
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches:
|
|
5
|
-
- master
|
|
6
|
-
- main
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
publish:
|
|
10
|
-
name: Publish
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
|
|
13
|
-
steps:
|
|
14
|
-
- name: Checkout repo
|
|
15
|
-
uses: actions/checkout@v4
|
|
16
|
-
|
|
17
|
-
- name: Setup node for publication
|
|
18
|
-
uses: actions/setup-node@v4
|
|
19
|
-
with:
|
|
20
|
-
node-version: '20'
|
|
21
|
-
always-auth: true
|
|
22
|
-
registry-url: 'https://registry.npmjs.org'
|
|
23
|
-
scope: '@bemedev'
|
|
24
|
-
|
|
25
|
-
- name: Setup pnpm
|
|
26
|
-
uses: pnpm/action-setup@v3
|
|
27
|
-
id: pnpm-install
|
|
28
|
-
with:
|
|
29
|
-
version: 9
|
|
30
|
-
run_install: false
|
|
31
|
-
|
|
32
|
-
- name: Get pnpm store directory
|
|
33
|
-
id: pnpm-cache
|
|
34
|
-
shell: bash
|
|
35
|
-
run: |
|
|
36
|
-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
|
|
37
|
-
- uses: actions/cache@v4
|
|
38
|
-
name: Setup pnpm cache
|
|
39
|
-
with:
|
|
40
|
-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
|
|
41
|
-
key:
|
|
42
|
-
${{ runner.os }}-pnpm-store-${{
|
|
43
|
-
hashFiles('**/pnpm-lock.yaml')}}
|
|
44
|
-
restore-keys: |
|
|
45
|
-
${{ runner.os }}-pnpm-store-
|
|
46
|
-
- name: Install dependencies
|
|
47
|
-
run: pnpm install --no-frozen-lockfile
|
|
48
|
-
|
|
49
|
-
- uses: JS-DevTools/npm-publish@v3
|
|
50
|
-
id: publish
|
|
51
|
-
name: Publish
|
|
52
|
-
with:
|
|
53
|
-
token: ${{ secrets.NPM_TOKEN }}
|
|
54
|
-
access: public
|
|
55
|
-
strategy: upgrade
|
|
56
|
-
|
|
57
|
-
- name: Check - updated
|
|
58
|
-
if: ${{ steps.publish.outputs.type }}
|
|
59
|
-
run: echo "Version changed!"
|
|
60
|
-
|
|
61
|
-
- name: Check - not updated
|
|
62
|
-
if: ${{ ! steps.publish.outputs.type }}
|
|
63
|
-
run: echo "Remain the same!"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
pnpm install
|
package/.gitpod-config/exec.sh
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
npm install -g ts-node typescript pnpm jest
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const edit = require('edit-json-file');
|
|
2
|
-
const shell = require('shelljs');
|
|
3
|
-
const fs = require('fs');
|
|
4
|
-
|
|
5
|
-
const package = edit(`${process.cwd()}/package.json`);
|
|
6
|
-
|
|
7
|
-
const repository = shell
|
|
8
|
-
.exec('git config --get remote.origin.url', { silent: true })
|
|
9
|
-
.replace(/\r?\n|\r/g, '');
|
|
10
|
-
|
|
11
|
-
package.set('repository', repository);
|
|
12
|
-
|
|
13
|
-
package.set('description', repository);
|
|
14
|
-
|
|
15
|
-
package.save();
|
|
16
|
-
|
|
17
|
-
fs.writeFileSync(`${process.cwd()}/README.md`, `# ${repository}`);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
pnpm upgrade --latest
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/.gitpod.yml
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# package.json repo à changer
|
|
2
|
-
|
|
3
|
-
tasks:
|
|
4
|
-
- name: Configuration
|
|
5
|
-
before: bash .gitpod-config/globalDependencies.sh
|
|
6
|
-
init: pnpm install
|
|
7
|
-
command: jest
|
|
8
|
-
|
|
9
|
-
vscode:
|
|
10
|
-
extensions:
|
|
11
|
-
- github.vscode-pull-request-github
|
|
12
|
-
- eamodio.gitlens
|
|
13
|
-
- graphql.vscode-graphql
|
|
14
|
-
- kavod-io.vscode-jest-test-adapter
|
|
15
|
-
- pkief.material-icon-theme
|
|
16
|
-
- esbenp.prettier-vscode
|
|
17
|
-
- yatki.vscode-surround
|
|
18
|
-
- bradlc.vscode-tailwindcss
|
|
19
|
-
- hbenl.vscode-test-explorer
|
|
20
|
-
- fabiospampinato.vscode-todo-plus
|
|
21
|
-
- dbaeumer.vscode-eslint
|
|
22
|
-
- codezombiech.gitignore
|
|
23
|
-
- foxundermoon.shell-format
|
|
24
|
-
- redhat.vscode-xml
|
|
25
|
-
- hbenl.test-adapter-converter
|
package/.husky/pre-commit
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
pnpm run ci
|
package/.prettierignore
DELETED
package/.prettierrc.yml
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
arrowParens: avoid
|
|
2
|
-
bracketSpacing: true
|
|
3
|
-
endOfLine: lf
|
|
4
|
-
htmlWhitespaceSensitivity: css
|
|
5
|
-
bracketSameLine: false
|
|
6
|
-
printWidth: 75
|
|
7
|
-
proseWrap: always
|
|
8
|
-
requirePragma: false
|
|
9
|
-
semi: true
|
|
10
|
-
singleQuote: true
|
|
11
|
-
tabWidth: 2
|
|
12
|
-
trailingComma: all
|
|
13
|
-
useTabs: false
|
|
14
|
-
vueIndentScriptAndStyle: true
|
|
15
|
-
overrides:
|
|
16
|
-
- files: '*.json'
|
|
17
|
-
options:
|
|
18
|
-
proseWrap: never
|
package/gitpod.temp.yml
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# package.json repo à changer
|
|
2
|
-
|
|
3
|
-
tasks:
|
|
4
|
-
- name: Configuration
|
|
5
|
-
before: sh .gitpod-config/globalDependencies.sh
|
|
6
|
-
init: sh .gitpod-config/dependencies.sh
|
|
7
|
-
command: jest
|
|
8
|
-
|
|
9
|
-
vscode:
|
|
10
|
-
extensions:
|
|
11
|
-
- github.vscode-pull-request-github
|
|
12
|
-
- eamodio.gitlens
|
|
13
|
-
- graphql.vscode-graphql
|
|
14
|
-
- kavod-io.vscode-jest-test-adapter
|
|
15
|
-
- pkief.material-icon-theme
|
|
16
|
-
- esbenp.prettier-vscode
|
|
17
|
-
- yatki.vscode-surround
|
|
18
|
-
- bradlc.vscode-tailwindcss
|
|
19
|
-
- hbenl.vscode-test-explorer
|
|
20
|
-
- fabiospampinato.vscode-todo-plus
|
|
21
|
-
- dbaeumer.vscode-eslint
|
|
22
|
-
- codezombiech.gitignore
|
|
23
|
-
- foxundermoon.shell-format
|
|
24
|
-
- redhat.vscode-xml
|
|
25
|
-
- hbenl.test-adapter-converter
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"strings.cjs","sources":["../../src/constants/strings.ts"],"sourcesContent":["export const DELIMITER = '-{/./:}-' as const;\nexport const SEPARETOR = '.' as const;\n"],"names":[],"mappings":";;AAAO,MAAM,SAAS,GAAG,WAAoB;AACtC,MAAM,SAAS,GAAG;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../src/constants/strings.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,YAAsB,CAAC;AAC7C,eAAO,MAAM,SAAS,KAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"strings.js","sources":["../../src/constants/strings.ts"],"sourcesContent":["export const DELIMITER = '-{/./:}-' as const;\nexport const SEPARETOR = '.' as const;\n"],"names":[],"mappings":"AAAO,MAAM,SAAS,GAAG,WAAoB;AACtC,MAAM,SAAS,GAAG;;;;"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var constants_strings = require('./constants/strings.cjs');
|
|
4
|
-
var helpers = require('./helpers.cjs');
|
|
5
|
-
var sortMap = require('./sortMap.cjs');
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8
|
-
function ddecompose(val, prev = '') {
|
|
9
|
-
const _prev = prev ? prev + constants_strings.DELIMITER : '';
|
|
10
|
-
const output = [];
|
|
11
|
-
const entries1 = Object.entries(val);
|
|
12
|
-
entries1.forEach(([key, value]) => {
|
|
13
|
-
output.push(`${_prev}${key}`);
|
|
14
|
-
const isPrimit = helpers.isPrimitive(value);
|
|
15
|
-
if (!isPrimit) {
|
|
16
|
-
const values = ddecompose(value, `${_prev}${key}`);
|
|
17
|
-
output.push(...values);
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
return output;
|
|
21
|
-
}
|
|
22
|
-
function decompose(val, sorter) {
|
|
23
|
-
const output1 = ddecompose(val, '');
|
|
24
|
-
output1.sort(sorter ?? sortMap.sortMap);
|
|
25
|
-
const regex = new RegExp(constants_strings.DELIMITER, 'g');
|
|
26
|
-
const output2 = output1.map(value => value.replace(regex, '.'));
|
|
27
|
-
return Object.freeze(output2);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
exports.decompose = decompose;
|
|
31
|
-
//# sourceMappingURL=decompose.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decompose.cjs","sources":["../src/decompose.ts"],"sourcesContent":["import { DELIMITER } from './constants/strings';\nimport { isPrimitive } from './helpers';\nimport { sortMap } from './sortMap';\nimport { Ru } from './types';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction ddecompose(val: any, prev = '') {\n const _prev = prev ? prev + DELIMITER : '';\n const output: string[] = [];\n const entries1 = Object.entries(val);\n entries1.forEach(([key, value]) => {\n output.push(`${_prev}${key}`);\n const isPrimit = isPrimitive(value);\n if (!isPrimit) {\n const values = ddecompose(value, `${_prev}${key}`);\n output.push(...values);\n }\n });\n return output;\n}\n\nexport function decompose<T extends Ru>(\n val: T,\n sorter?: (a: string, b: string) => number,\n) {\n const output1 = ddecompose(val, '');\n output1.sort(sorter ?? sortMap);\n const regex = new RegExp(DELIMITER, 'g');\n const output2 = output1.map(value => value.replace(regex, '.'));\n\n return Object.freeze(output2);\n}\n"],"names":["DELIMITER","isPrimitive","sortMap"],"mappings":";;;;;;AAKA;AACA,SAAS,UAAU,CAAC,GAAQ,EAAE,IAAI,GAAG,EAAE,EAAA;AACrC,IAAA,MAAM,KAAK,GAAG,IAAI,GAAG,IAAI,GAAGA,2BAAS,GAAG,EAAE,CAAC;IAC3C,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACrC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,KAAI;QAChC,MAAM,CAAC,IAAI,CAAC,CAAA,EAAG,KAAK,CAAG,EAAA,GAAG,CAAE,CAAA,CAAC,CAAC;AAC9B,QAAA,MAAM,QAAQ,GAAGC,mBAAW,CAAC,KAAK,CAAC,CAAC;QACpC,IAAI,CAAC,QAAQ,EAAE;AACb,YAAA,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,EAAE,CAAG,EAAA,KAAK,CAAG,EAAA,GAAG,CAAE,CAAA,CAAC,CAAC;AACnD,YAAA,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,CAAC;SACxB;AACH,KAAC,CAAC,CAAC;AACH,IAAA,OAAO,MAAM,CAAC;AAChB,CAAC;AAEe,SAAA,SAAS,CACvB,GAAM,EACN,MAAyC,EAAA;IAEzC,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;AACpC,IAAA,OAAO,CAAC,IAAI,CAAC,MAAM,IAAIC,eAAO,CAAC,CAAC;IAChC,MAAM,KAAK,GAAG,IAAI,MAAM,CAACF,2BAAS,EAAE,GAAG,CAAC,CAAC;AACzC,IAAA,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;AAEhE,IAAA,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAChC;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decompose.d.ts","sourceRoot":"","sources":["../src/decompose.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAkB7B,wBAAgB,SAAS,CAAC,CAAC,SAAS,EAAE,EACpC,GAAG,EAAE,CAAC,EACN,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,MAAM,qBAQ1C"}
|
package/package/lib/decompose.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { DELIMITER } from './constants/strings.js';
|
|
2
|
-
import { isPrimitive } from './helpers.js';
|
|
3
|
-
import { sortMap } from './sortMap.js';
|
|
4
|
-
|
|
5
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
-
function ddecompose(val, prev = '') {
|
|
7
|
-
const _prev = prev ? prev + DELIMITER : '';
|
|
8
|
-
const output = [];
|
|
9
|
-
const entries1 = Object.entries(val);
|
|
10
|
-
entries1.forEach(([key, value]) => {
|
|
11
|
-
output.push(`${_prev}${key}`);
|
|
12
|
-
const isPrimit = isPrimitive(value);
|
|
13
|
-
if (!isPrimit) {
|
|
14
|
-
const values = ddecompose(value, `${_prev}${key}`);
|
|
15
|
-
output.push(...values);
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
return output;
|
|
19
|
-
}
|
|
20
|
-
function decompose(val, sorter) {
|
|
21
|
-
const output1 = ddecompose(val, '');
|
|
22
|
-
output1.sort(sorter ?? sortMap);
|
|
23
|
-
const regex = new RegExp(DELIMITER, 'g');
|
|
24
|
-
const output2 = output1.map(value => value.replace(regex, '.'));
|
|
25
|
-
return Object.freeze(output2);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export { decompose };
|
|
29
|
-
//# sourceMappingURL=decompose.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decompose.js","sources":["../src/decompose.ts"],"sourcesContent":["import { DELIMITER } from './constants/strings';\nimport { isPrimitive } from './helpers';\nimport { sortMap } from './sortMap';\nimport { Ru } from './types';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction ddecompose(val: any, prev = '') {\n const _prev = prev ? prev + DELIMITER : '';\n const output: string[] = [];\n const entries1 = Object.entries(val);\n entries1.forEach(([key, value]) => {\n output.push(`${_prev}${key}`);\n const isPrimit = isPrimitive(value);\n if (!isPrimit) {\n const values = ddecompose(value, `${_prev}${key}`);\n output.push(...values);\n }\n });\n return output;\n}\n\nexport function decompose<T extends Ru>(\n val: T,\n sorter?: (a: string, b: string) => number,\n) {\n const output1 = ddecompose(val, '');\n output1.sort(sorter ?? sortMap);\n const regex = new RegExp(DELIMITER, 'g');\n const output2 = output1.map(value => value.replace(regex, '.'));\n\n return Object.freeze(output2);\n}\n"],"names":[],"mappings":";;;;AAKA;AACA,SAAS,UAAU,CAAC,GAAQ,EAAE,IAAI,GAAG,EAAE,EAAA;AACrC,IAAA,MAAM,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,EAAE,CAAC;IAC3C,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACrC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,KAAI;QAChC,MAAM,CAAC,IAAI,CAAC,CAAA,EAAG,KAAK,CAAG,EAAA,GAAG,CAAE,CAAA,CAAC,CAAC;AAC9B,QAAA,MAAM,QAAQ,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;QACpC,IAAI,CAAC,QAAQ,EAAE;AACb,YAAA,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,EAAE,CAAG,EAAA,KAAK,CAAG,EAAA,GAAG,CAAE,CAAA,CAAC,CAAC;AACnD,YAAA,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,CAAC;SACxB;AACH,KAAC,CAAC,CAAC;AACH,IAAA,OAAO,MAAM,CAAC;AAChB,CAAC;AAEe,SAAA,SAAS,CACvB,GAAM,EACN,MAAyC,EAAA;IAEzC,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;AACpC,IAAA,OAAO,CAAC,IAAI,CAAC,MAAM,IAAI,OAAO,CAAC,CAAC;IAChC,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;AACzC,IAAA,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;AAEhE,IAAA,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAChC;;;;"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var constants_strings = require('./constants/strings.cjs');
|
|
4
|
-
var sortMap = require('./sortMap.cjs');
|
|
5
|
-
|
|
6
|
-
function ddecompose(val, prev = '') {
|
|
7
|
-
const _prev = prev ? prev + constants_strings.DELIMITER : '';
|
|
8
|
-
const output = [];
|
|
9
|
-
prev !== '' && output.push(prev);
|
|
10
|
-
if (typeof val === 'string') {
|
|
11
|
-
output.push(`${_prev}${val}`);
|
|
12
|
-
}
|
|
13
|
-
else {
|
|
14
|
-
const keys = Object.keys(val);
|
|
15
|
-
output.push(...keys.map(key => ddecompose(val[key], `${_prev}${key}`)).flat());
|
|
16
|
-
}
|
|
17
|
-
return output;
|
|
18
|
-
}
|
|
19
|
-
function decomposeSV(val, sorter) {
|
|
20
|
-
const first = ddecompose(val, '');
|
|
21
|
-
first.sort(sorter ?? sortMap.sortMap);
|
|
22
|
-
const regex = new RegExp(constants_strings.DELIMITER, 'g');
|
|
23
|
-
const output = first.map(value => value.replace(regex, '.'));
|
|
24
|
-
return Object.freeze(output);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
exports.decomposeSV = decomposeSV;
|
|
28
|
-
//# sourceMappingURL=decomposeSV.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decomposeSV.cjs","sources":["../src/decomposeSV.ts"],"sourcesContent":["import { DELIMITER } from './constants/strings';\nimport { sortMap } from './sortMap';\nimport type { StateMatching, StateValue } from './types';\n\nfunction ddecompose(val: StateValue, prev = '') {\n const _prev = prev ? prev + DELIMITER : '';\n const output: string[] = [];\n prev !== '' && output.push(prev);\n if (typeof val === 'string') {\n output.push(`${_prev}${val}`);\n } else {\n const keys = Object.keys(val);\n output.push(\n ...keys.map(key => ddecompose(val[key], `${_prev}${key}`)).flat(),\n );\n }\n\n return output;\n}\n\nexport function decomposeSV<T extends StateValue>(\n val: T,\n sorter?: (a: string, b: string) => number,\n): readonly StateMatching<T>[] {\n const first = ddecompose(val, '');\n first.sort(sorter ?? sortMap);\n const regex = new RegExp(DELIMITER, 'g');\n const output = first.map(value => value.replace(regex, '.'));\n\n return Object.freeze(output) as StateMatching<T>[];\n}\n"],"names":["DELIMITER","sortMap"],"mappings":";;;;;AAIA,SAAS,UAAU,CAAC,GAAe,EAAE,IAAI,GAAG,EAAE,EAAA;AAC5C,IAAA,MAAM,KAAK,GAAG,IAAI,GAAG,IAAI,GAAGA,2BAAS,GAAG,EAAE,CAAC;IAC3C,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,IAAI,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACjC,IAAA,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC3B,MAAM,CAAC,IAAI,CAAC,CAAA,EAAG,KAAK,CAAG,EAAA,GAAG,CAAE,CAAA,CAAC,CAAC;KAC/B;SAAM;QACL,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC9B,QAAA,MAAM,CAAC,IAAI,CACT,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAG,EAAA,KAAK,CAAG,EAAA,GAAG,CAAE,CAAA,CAAC,CAAC,CAAC,IAAI,EAAE,CAClE,CAAC;KACH;AAED,IAAA,OAAO,MAAM,CAAC;AAChB,CAAC;AAEe,SAAA,WAAW,CACzB,GAAM,EACN,MAAyC,EAAA;IAEzC,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;AAClC,IAAA,KAAK,CAAC,IAAI,CAAC,MAAM,IAAIC,eAAO,CAAC,CAAC;IAC9B,MAAM,KAAK,GAAG,IAAI,MAAM,CAACD,2BAAS,EAAE,GAAG,CAAC,CAAC;AACzC,IAAA,MAAM,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;AAE7D,IAAA,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAuB,CAAC;AACrD;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decomposeSV.d.ts","sourceRoot":"","sources":["../src/decomposeSV.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAkBzD,wBAAgB,WAAW,CAAC,CAAC,SAAS,UAAU,EAC9C,GAAG,EAAE,CAAC,EACN,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,MAAM,GACxC,SAAS,aAAa,CAAC,CAAC,CAAC,EAAE,CAO7B"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { DELIMITER } from './constants/strings.js';
|
|
2
|
-
import { sortMap } from './sortMap.js';
|
|
3
|
-
|
|
4
|
-
function ddecompose(val, prev = '') {
|
|
5
|
-
const _prev = prev ? prev + DELIMITER : '';
|
|
6
|
-
const output = [];
|
|
7
|
-
prev !== '' && output.push(prev);
|
|
8
|
-
if (typeof val === 'string') {
|
|
9
|
-
output.push(`${_prev}${val}`);
|
|
10
|
-
}
|
|
11
|
-
else {
|
|
12
|
-
const keys = Object.keys(val);
|
|
13
|
-
output.push(...keys.map(key => ddecompose(val[key], `${_prev}${key}`)).flat());
|
|
14
|
-
}
|
|
15
|
-
return output;
|
|
16
|
-
}
|
|
17
|
-
function decomposeSV(val, sorter) {
|
|
18
|
-
const first = ddecompose(val, '');
|
|
19
|
-
first.sort(sorter ?? sortMap);
|
|
20
|
-
const regex = new RegExp(DELIMITER, 'g');
|
|
21
|
-
const output = first.map(value => value.replace(regex, '.'));
|
|
22
|
-
return Object.freeze(output);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export { decomposeSV };
|
|
26
|
-
//# sourceMappingURL=decomposeSV.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decomposeSV.js","sources":["../src/decomposeSV.ts"],"sourcesContent":["import { DELIMITER } from './constants/strings';\nimport { sortMap } from './sortMap';\nimport type { StateMatching, StateValue } from './types';\n\nfunction ddecompose(val: StateValue, prev = '') {\n const _prev = prev ? prev + DELIMITER : '';\n const output: string[] = [];\n prev !== '' && output.push(prev);\n if (typeof val === 'string') {\n output.push(`${_prev}${val}`);\n } else {\n const keys = Object.keys(val);\n output.push(\n ...keys.map(key => ddecompose(val[key], `${_prev}${key}`)).flat(),\n );\n }\n\n return output;\n}\n\nexport function decomposeSV<T extends StateValue>(\n val: T,\n sorter?: (a: string, b: string) => number,\n): readonly StateMatching<T>[] {\n const first = ddecompose(val, '');\n first.sort(sorter ?? sortMap);\n const regex = new RegExp(DELIMITER, 'g');\n const output = first.map(value => value.replace(regex, '.'));\n\n return Object.freeze(output) as StateMatching<T>[];\n}\n"],"names":[],"mappings":";;;AAIA,SAAS,UAAU,CAAC,GAAe,EAAE,IAAI,GAAG,EAAE,EAAA;AAC5C,IAAA,MAAM,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,EAAE,CAAC;IAC3C,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,IAAI,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACjC,IAAA,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC3B,MAAM,CAAC,IAAI,CAAC,CAAA,EAAG,KAAK,CAAG,EAAA,GAAG,CAAE,CAAA,CAAC,CAAC;KAC/B;SAAM;QACL,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC9B,QAAA,MAAM,CAAC,IAAI,CACT,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAG,EAAA,KAAK,CAAG,EAAA,GAAG,CAAE,CAAA,CAAC,CAAC,CAAC,IAAI,EAAE,CAClE,CAAC;KACH;AAED,IAAA,OAAO,MAAM,CAAC;AAChB,CAAC;AAEe,SAAA,WAAW,CACzB,GAAM,EACN,MAAyC,EAAA;IAEzC,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;AAClC,IAAA,KAAK,CAAC,IAAI,CAAC,MAAM,IAAI,OAAO,CAAC,CAAC;IAC9B,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;AACzC,IAAA,MAAM,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;AAE7D,IAAA,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAuB,CAAC;AACrD;;;;"}
|
package/package/lib/helpers.cjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
function isPrimitive(arg) {
|
|
4
|
-
return (typeof arg === 'number' ||
|
|
5
|
-
typeof arg === 'string' ||
|
|
6
|
-
typeof arg === 'boolean' ||
|
|
7
|
-
arg === undefined ||
|
|
8
|
-
arg === null);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
exports.isPrimitive = isPrimitive;
|
|
12
|
-
//# sourceMappingURL=helpers.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.cjs","sources":["../src/helpers.ts"],"sourcesContent":["type Primitive = string | number | boolean | null | undefined;\n\nexport function isPrimitive(arg: unknown): arg is Primitive {\n return (\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'boolean' ||\n arg === undefined ||\n arg === null\n );\n}\n"],"names":[],"mappings":";;AAEM,SAAU,WAAW,CAAC,GAAY,EAAA;AACtC,IAAA,QACE,OAAO,GAAG,KAAK,QAAQ;QACvB,OAAO,GAAG,KAAK,QAAQ;QACvB,OAAO,GAAG,KAAK,SAAS;AACxB,QAAA,GAAG,KAAK,SAAS;QACjB,GAAG,KAAK,IAAI,EACZ;AACJ;;;;"}
|
package/package/lib/helpers.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":"AAAA,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;AAE9D,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,SAAS,CAQ1D"}
|
package/package/lib/helpers.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sources":["../src/helpers.ts"],"sourcesContent":["type Primitive = string | number | boolean | null | undefined;\n\nexport function isPrimitive(arg: unknown): arg is Primitive {\n return (\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'boolean' ||\n arg === undefined ||\n arg === null\n );\n}\n"],"names":[],"mappings":"AAEM,SAAU,WAAW,CAAC,GAAY,EAAA;AACtC,IAAA,QACE,OAAO,GAAG,KAAK,QAAQ;QACvB,OAAO,GAAG,KAAK,QAAQ;QACvB,OAAO,GAAG,KAAK,SAAS;AACxB,QAAA,GAAG,KAAK,SAAS;QACjB,GAAG,KAAK,IAAI,EACZ;AACJ;;;;"}
|
package/package/lib/index.cjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var decompose = require('./decompose.cjs');
|
|
4
|
-
var decomposeSV = require('./decomposeSV.cjs');
|
|
5
|
-
var recompose = require('./recompose.cjs');
|
|
6
|
-
var sortMap = require('./sortMap.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.decompose = decompose.decompose;
|
|
11
|
-
exports.decomposeSV = decomposeSV.decomposeSV;
|
|
12
|
-
exports.recompose = recompose.recompose;
|
|
13
|
-
exports.recomposeObjectUrl = recompose.recomposeObjectUrl;
|
|
14
|
-
exports.sortMap = sortMap.sortMap;
|
|
15
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
package/package/lib/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
|
package/package/lib/index.js
DELETED
package/package/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var tsDeepmerge = require('ts-deepmerge');
|
|
4
|
-
var constants_strings = require('./constants/strings.cjs');
|
|
5
|
-
|
|
6
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
7
|
-
function recomposeObjectUrl(shape, value) {
|
|
8
|
-
const obj = {};
|
|
9
|
-
if (shape.length <= 0)
|
|
10
|
-
return obj;
|
|
11
|
-
const keys = shape.split(constants_strings.SEPARETOR);
|
|
12
|
-
if (keys.length === 1) {
|
|
13
|
-
const key = keys.shift();
|
|
14
|
-
obj[key] = value;
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
const key = keys.shift();
|
|
18
|
-
obj[key] = recomposeObjectUrl(keys.join(constants_strings.SEPARETOR), value);
|
|
19
|
-
}
|
|
20
|
-
return obj;
|
|
21
|
-
}
|
|
22
|
-
function recompose(shape) {
|
|
23
|
-
const entries = Object.entries(shape);
|
|
24
|
-
const arr = [];
|
|
25
|
-
entries.forEach(([key, value]) => {
|
|
26
|
-
arr.push(recomposeObjectUrl(key, value));
|
|
27
|
-
});
|
|
28
|
-
const output = tsDeepmerge.merge(...arr);
|
|
29
|
-
return Object.freeze(output);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
exports.recompose = recompose;
|
|
33
|
-
exports.recomposeObjectUrl = recomposeObjectUrl;
|
|
34
|
-
//# sourceMappingURL=recompose.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recompose.cjs","sources":["../src/recompose.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { merge } from 'ts-deepmerge';\nimport { SEPARETOR } from './constants/strings';\nimport type { Recompose, Ru } from './types';\n\nexport function recomposeObjectUrl<T>(shape: string, value: T) {\n const obj: Ru = {};\n if (shape.length <= 0) return obj;\n\n const keys = shape.split(SEPARETOR);\n if (keys.length === 1) {\n const key = keys.shift();\n obj[key!] = value;\n } else {\n const key = keys.shift();\n obj[key!] = recomposeObjectUrl(keys.join(SEPARETOR), value);\n }\n\n return obj;\n}\n\nexport function recompose<T extends Ru>(shape: T) {\n const entries = Object.entries(shape);\n const arr: any[] = [];\n entries.forEach(([key, value]) => {\n arr.push(recomposeObjectUrl(key, value));\n });\n const output = merge(...arr);\n return Object.freeze(output) as Recompose<T>;\n}\n"],"names":["SEPARETOR","merge"],"mappings":";;;;;AAAA;AAKgB,SAAA,kBAAkB,CAAI,KAAa,EAAE,KAAQ,EAAA;IAC3D,MAAM,GAAG,GAAO,EAAE,CAAC;AACnB,IAAA,IAAI,KAAK,CAAC,MAAM,IAAI,CAAC;AAAE,QAAA,OAAO,GAAG,CAAC;IAElC,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAACA,2BAAS,CAAC,CAAC;AACpC,IAAA,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;AACrB,QAAA,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;AACzB,QAAA,GAAG,CAAC,GAAI,CAAC,GAAG,KAAK,CAAC;KACnB;SAAM;AACL,QAAA,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;AACzB,QAAA,GAAG,CAAC,GAAI,CAAC,GAAG,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAACA,2BAAS,CAAC,EAAE,KAAK,CAAC,CAAC;KAC7D;AAED,IAAA,OAAO,GAAG,CAAC;AACb,CAAC;AAEK,SAAU,SAAS,CAAe,KAAQ,EAAA;IAC9C,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACtC,MAAM,GAAG,GAAU,EAAE,CAAC;IACtB,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,KAAI;QAC/B,GAAG,CAAC,IAAI,CAAC,kBAAkB,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;AAC3C,KAAC,CAAC,CAAC;AACH,IAAA,MAAM,MAAM,GAAGC,iBAAK,CAAC,GAAG,GAAG,CAAC,CAAC;AAC7B,IAAA,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAiB,CAAC;AAC/C;;;;;"}
|