diff --git a/.github/actions/cfdi/action.yml b/.github/actions/cfdi/action.yml index 38ed73e2..add8f244 100644 --- a/.github/actions/cfdi/action.yml +++ b/.github/actions/cfdi/action.yml @@ -24,14 +24,16 @@ runs: - name: Rush CLI shell: bash - run: npm install -g @microsoft/rush@5.138.0 + run: | + npm install -g @microsoft/rush@5.140.1 + rush update - name: Rush Update shell: bash run: | git config user.name MisaelMa git config user.email amisael.amir.misael@gmail.com - rush update + ls -la #- name: execa # shell: bash diff --git a/.github/workflows/semantic.yml b/.github/workflows/semantic.yml index 4cb3eabe..bcfda152 100644 --- a/.github/workflows/semantic.yml +++ b/.github/workflows/semantic.yml @@ -17,7 +17,7 @@ jobs: - name: Platform label uses: agilepathway/label-checker@v1.0.104 with: - any_of: config,core,catalogs,csd,csf,curp,pdf,rfc,utils,xml,xsd,complementos,openssl,saxon,schema,transform,types,elements + any_of: config,core,catalogs,csd,csf,curp,pdf,rfc,utils,xml,xsd,complementos,openssl,saxon,schema,transform,types,elements,2json,expresiones,publish repo_token: ${{ secrets.GITHUB_TOKEN }} check-title: @@ -52,4 +52,4 @@ jobs: types elements expresiones - xml2json + 2json diff --git a/commitlint.config.js b/commitlint.config.js index 84fc003e..11c94109 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -32,7 +32,7 @@ module.exports = { 'types', 'elements', 'expresiones', - 'xml2json' + '2json' ] ], 'type-enum': [ diff --git a/common/config/rush/browser-approved-packages.json b/common/config/rush/browser-approved-packages.json index 2515554d..ec78b037 100644 --- a/common/config/rush/browser-approved-packages.json +++ b/common/config/rush/browser-approved-packages.json @@ -26,6 +26,10 @@ "name": "@babel/preset-env", "allowedCategories": [ "libraries" ] }, + { + "name": "@cfdi/2json", + "allowedCategories": [ "libraries" ] + }, { "name": "@cfdi/catalogos", "allowedCategories": [ "libraries" ] @@ -46,6 +50,10 @@ "name": "@cfdi/curp", "allowedCategories": [ "libraries" ] }, + { + "name": "@cfdi/elements", + "allowedCategories": [ "libraries" ] + }, { "name": "@cfdi/openssl", "allowedCategories": [ "libraries" ] @@ -58,6 +66,10 @@ "name": "@cfdi/schema", "allowedCategories": [ "libraries" ] }, + { + "name": "@cfdi/types", + "allowedCategories": [ "libraries" ] + }, { "name": "@cfdi/utils", "allowedCategories": [ "libraries" ] @@ -74,10 +86,6 @@ "name": "@clir/openssl", "allowedCategories": [ "libraries" ] }, - { - "name": "@saxon-he/cli", - "allowedCategories": [ "libraries" ] - }, { "name": "@emotion/cache", "allowedCategories": [ "libraries" ] @@ -214,6 +222,10 @@ "name": "@recreando/typescript-settings", "allowedCategories": [ "libraries", "private", "production" ] }, + { + "name": "@recreando/vite", + "allowedCategories": [ "libraries", "private" ] + }, { "name": "@reduxjs/toolkit", "allowedCategories": [ "libraries" ] @@ -230,6 +242,10 @@ "name": "@rushstack/heft-jest-plugin", "allowedCategories": [ "libraries", "production" ] }, + { + "name": "@saxon-he/cli", + "allowedCategories": [ "libraries" ] + }, { "name": "@size-limit/preset-small-lib", "allowedCategories": [ "libraries", "private" ] diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 1cf67ec9..f902601d 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -21,6 +21,9 @@ importers: '@recreando/typescript-settings': specifier: workspace:* version: link:../../../rigs/typescript + '@recreando/vite': + specifier: workspace:* + version: link:../../../rigs/vite '@rushstack/eslint-config': specifier: ^4.0.2 version: 4.0.2(eslint@8.57.1)(typescript@5.6.3) @@ -103,6 +106,9 @@ importers: '@recreando/typescript-settings': specifier: workspace:* version: link:../../../rigs/typescript + '@recreando/vite': + specifier: workspace:* + version: link:../../../rigs/vite '@rushstack/eslint-config': specifier: ^4.0.2 version: 4.0.2(eslint@8.57.1)(typescript@5.6.3) @@ -152,8 +158,8 @@ importers: specifier: ^28.1.2 version: 28.1.3(@types/node@18.19.57) rimraf: - specifier: ^5.0.0 - version: 5.0.10 + specifier: ^6.0.1 + version: 6.0.1 size-limit: specifier: ^7.0.8 version: 7.0.8 @@ -200,6 +206,9 @@ importers: '@recreando/typescript-settings': specifier: workspace:* version: link:../../../rigs/typescript + '@recreando/vite': + specifier: workspace:* + version: link:../../../rigs/vite '@rushstack/eslint-config': specifier: ^4.0.2 version: 4.0.2(eslint@8.57.1)(typescript@5.6.3) @@ -252,8 +261,8 @@ importers: specifier: ^28.1.2 version: 28.1.3(@types/node@18.19.57) rimraf: - specifier: ^5.0.0 - version: 5.0.10 + specifier: ^6.0.1 + version: 6.0.1 size-limit: specifier: ^7.0.8 version: 7.0.8 @@ -288,6 +297,9 @@ importers: '@recreando/typescript-settings': specifier: workspace:* version: link:../../../rigs/typescript + '@recreando/vite': + specifier: workspace:* + version: link:../../../rigs/vite '@rushstack/eslint-config': specifier: ^4.0.2 version: 4.0.2(eslint@8.57.1)(typescript@5.6.3) @@ -313,8 +325,8 @@ importers: specifier: ^8.57.0 version: 8.57.1 rimraf: - specifier: ^5.0.0 - version: 5.0.10 + specifier: ^6.0.1 + version: 6.0.1 size-limit: specifier: ^7.0.8 version: 7.0.8 @@ -352,6 +364,9 @@ importers: '@recreando/typescript-settings': specifier: workspace:* version: link:../../../rigs/typescript + '@recreando/vite': + specifier: workspace:* + version: link:../../../rigs/vite '@rushstack/eslint-config': specifier: ^4.0.2 version: 4.0.2(eslint@8.57.1)(typescript@5.6.3) @@ -446,6 +461,9 @@ importers: '@recreando/typescript-settings': specifier: workspace:* version: link:../../../rigs/typescript + '@recreando/vite': + specifier: workspace:* + version: link:../../../rigs/vite '@rushstack/eslint-config': specifier: ^4.0.2 version: 4.0.2(eslint@8.57.1)(typescript@5.6.3) @@ -468,8 +486,8 @@ importers: specifier: ^8.57.0 version: 8.57.1 rimraf: - specifier: ^5.0.0 - version: 5.0.10 + specifier: ^6.0.1 + version: 6.0.1 size-limit: specifier: ^7.0.8 version: 7.0.8 @@ -504,6 +522,9 @@ importers: '@recreando/typescript-settings': specifier: workspace:* version: link:../../../rigs/typescript + '@recreando/vite': + specifier: workspace:* + version: link:../../../rigs/vite '@rushstack/eslint-config': specifier: ^4.0.2 version: 4.0.2(eslint@8.57.1)(typescript@5.6.3) @@ -553,8 +574,8 @@ importers: specifier: ^28.1.2 version: 28.1.3(@types/node@18.19.57) rimraf: - specifier: ^5.0.0 - version: 5.0.10 + specifier: ^6.0.1 + version: 6.0.1 size-limit: specifier: ^7.0.8 version: 7.0.8 @@ -576,6 +597,9 @@ importers: ../../packages/cfdi/pdf: dependencies: + '@cfdi/2json': + specifier: workspace:* + version: link:../xml2json '@cfdi/catalogos': specifier: workspace:* version: link:../catalogos @@ -619,6 +643,9 @@ importers: '@recreando/typescript-settings': specifier: workspace:* version: link:../../../rigs/typescript + '@recreando/vite': + specifier: workspace:* + version: link:../../../rigs/vite '@rushstack/eslint-config': specifier: ^4.0.2 version: 4.0.2(eslint@8.57.1)(typescript@5.6.3) @@ -700,6 +727,9 @@ importers: '@recreando/typescript-settings': specifier: workspace:* version: link:../../../rigs/typescript + '@recreando/vite': + specifier: workspace:* + version: link:../../../rigs/vite '@rushstack/eslint-config': specifier: ^4.0.2 version: 4.0.2(eslint@8.57.1)(typescript@5.6.3) @@ -794,12 +824,15 @@ importers: '@recreando/typescript-settings': specifier: workspace:* version: link:../../../rigs/typescript + '@recreando/vite': + specifier: workspace:* + version: link:../../../rigs/vite '@rushstack/eslint-config': - specifier: ^2.6.0 - version: 2.6.2(eslint@8.57.1)(typescript@4.9.5) + specifier: ^4.0.2 + version: 4.0.2(eslint@8.57.1)(typescript@5.6.3) '@rushstack/heft': - specifier: ^0.45.1 - version: 0.45.14 + specifier: ^0.68.6 + version: 0.68.6(@types/node@18.19.57) '@size-limit/preset-small-lib': specifier: ^7.0.8 version: 7.0.8(size-limit@7.0.8) @@ -821,6 +854,12 @@ importers: '@types/testing-library__jest-dom': specifier: ^5.9.1 version: 5.14.9 + '@vitest/coverage-v8': + specifier: 2.1.3 + version: 2.1.3(vitest@2.1.3(@types/node@18.19.57)(@vitest/ui@2.1.3)(jsdom@19.0.0)(sugarss@2.0.0)(terser@5.36.0)) + '@vitest/ui': + specifier: 2.1.3 + version: 2.1.3(vitest@2.1.3) chalk: specifier: ^4.0.0 version: 4.1.2 @@ -828,7 +867,7 @@ importers: specifier: ^3.5.2 version: 3.6.0 eslint: - specifier: ^8.26.0 + specifier: ^8.57.0 version: 8.57.1 husky: specifier: ^8.0.1 @@ -846,17 +885,20 @@ importers: specifier: ^2.4.0 version: 2.8.0 typescript: - specifier: ^4.8.4 - version: 4.9.5 + specifier: ^5.6.3 + version: 5.6.3 vite-tsconfig-paths: specifier: ~4.2.1 - version: 4.2.3(typescript@4.9.5)(vite@5.4.9(@types/node@18.19.57)(sugarss@2.0.0)(terser@5.36.0)) + version: 4.2.3(typescript@5.6.3)(vite@5.4.9(@types/node@18.19.57)(sugarss@2.0.0)(terser@5.36.0)) vitest: - specifier: ~0.34.6 - version: 0.34.6(@vitest/ui@2.1.3)(jsdom@19.0.0)(sugarss@2.0.0)(terser@5.36.0) + specifier: 2.1.3 + version: 2.1.3(@types/node@18.19.57)(@vitest/ui@2.1.3)(jsdom@19.0.0)(sugarss@2.0.0)(terser@5.36.0) ../../packages/cfdi/transform: dependencies: + '@cfdi/2json': + specifier: workspace:* + version: link:../xml2json xml-js: specifier: ^1.6.11 version: 1.6.11 @@ -870,12 +912,18 @@ importers: '@recreando/typescript-settings': specifier: workspace:* version: link:../../../rigs/typescript + '@recreando/vite': + specifier: workspace:* + version: link:../../../rigs/vite '@rushstack/eslint-config': specifier: ^4.0.2 version: 4.0.2(eslint@8.57.1)(typescript@5.6.3) '@rushstack/heft': specifier: ^0.68.6 version: 0.68.6(@types/node@18.19.57) + '@saxon-he/cli': + specifier: workspace:* + version: link:../../clir/saxon-he '@size-limit/preset-small-lib': specifier: ^7.0.8 version: 7.0.8(size-limit@7.0.8) @@ -919,8 +967,8 @@ importers: specifier: ^28.1.2 version: 28.1.3(@types/node@18.19.57) rimraf: - specifier: ^5.0.0 - version: 5.0.10 + specifier: ^6.0.1 + version: 6.0.1 size-limit: specifier: ^7.0.8 version: 7.0.8 @@ -967,6 +1015,9 @@ importers: '@recreando/typescript-settings': specifier: workspace:* version: link:../../../rigs/typescript + '@recreando/vite': + specifier: workspace:* + version: link:../../../rigs/vite '@rushstack/eslint-config': specifier: ^4.0.2 version: 4.0.2(eslint@8.57.1)(typescript@5.6.3) @@ -989,8 +1040,8 @@ importers: specifier: ^8.57.0 version: 8.57.1 rimraf: - specifier: ^5.0.0 - version: 5.0.10 + specifier: ^6.0.1 + version: 6.0.1 size-limit: specifier: ^7.0.8 version: 7.0.8 @@ -1012,9 +1063,6 @@ importers: ../../packages/cfdi/utils: dependencies: - '@cfdi/xml': - specifier: workspace:* - version: link:../xml xml-js: specifier: ^1.6.11 version: 1.6.11 @@ -1028,6 +1076,9 @@ importers: '@recreando/typescript-settings': specifier: workspace:* version: link:../../../rigs/typescript + '@recreando/vite': + specifier: workspace:* + version: link:../../../rigs/vite '@rushstack/eslint-config': specifier: ^4.0.2 version: 4.0.2(eslint@8.57.1)(typescript@5.6.3) @@ -1076,6 +1127,9 @@ importers: jest: specifier: ^28.1.2 version: 28.1.3(@types/node@18.19.57) + rimraf: + specifier: ^6.0.1 + version: 6.0.1 size-limit: specifier: ^7.0.8 version: 7.0.8 @@ -1122,6 +1176,9 @@ importers: '@recreando/typescript-settings': specifier: workspace:* version: link:../../../rigs/typescript + '@recreando/vite': + specifier: workspace:* + version: link:../../../rigs/vite '@rushstack/eslint-config': specifier: ^4.0.2 version: 4.0.2(eslint@8.57.1)(typescript@5.6.3) @@ -1144,8 +1201,8 @@ importers: specifier: ^8.57.0 version: 8.57.1 rimraf: - specifier: ^5.0.0 - version: 5.0.10 + specifier: ^6.0.1 + version: 6.0.1 size-limit: specifier: ^7.0.8 version: 7.0.8 @@ -1167,6 +1224,15 @@ importers: ../../packages/cfdi/xml2json: dependencies: + '@cfdi/elements': + specifier: workspace:* + version: link:../elements + '@cfdi/types': + specifier: workspace:* + version: link:../types + '@cfdi/utils': + specifier: workspace:* + version: link:../utils xml-js: specifier: ^1.6.11 version: 1.6.11 @@ -1180,6 +1246,9 @@ importers: '@recreando/typescript-settings': specifier: workspace:* version: link:../../../rigs/typescript + '@recreando/vite': + specifier: workspace:* + version: link:../../../rigs/vite '@rushstack/eslint-config': specifier: ^4.0.2 version: 4.0.2(eslint@8.57.1)(typescript@5.6.3) @@ -1229,8 +1298,8 @@ importers: specifier: ^28.1.2 version: 28.1.3(@types/node@18.19.57) rimraf: - specifier: ^5.0.0 - version: 5.0.10 + specifier: ^6.0.1 + version: 6.0.1 size-limit: specifier: ^7.0.8 version: 7.0.8 @@ -1274,6 +1343,9 @@ importers: '@recreando/typescript-settings': specifier: workspace:* version: link:../../../rigs/typescript + '@recreando/vite': + specifier: workspace:* + version: link:../../../rigs/vite '@rushstack/eslint-config': specifier: ^4.0.2 version: 4.0.2(eslint@8.57.1)(typescript@5.6.3) @@ -1323,8 +1395,8 @@ importers: specifier: ^28.1.2 version: 28.1.3(@types/node@18.19.57) rimraf: - specifier: ^5.0.0 - version: 5.0.10 + specifier: ^6.0.1 + version: 6.0.1 size-limit: specifier: ^7.0.8 version: 7.0.8 @@ -2824,15 +2896,9 @@ packages: peerDependencies: jsep: ^0.4.0||^1.0.0 - '@microsoft/tsdoc-config@0.16.2': - resolution: {integrity: sha512-OGiIzzoBLgWWR0UdRJX98oYO+XKGf7tiK4Zk6tQ/E4IJqGCe7dvkTvgDZV5cFJUzLGDOjeAXrnZoA6QkVySuxw==} - '@microsoft/tsdoc-config@0.17.0': resolution: {integrity: sha512-v/EYRXnCAIHxOHW+Plb6OWuUoMotxTN0GLatnpOb1xq0KuTNw/WI3pamJx/UbsoJP5k9MCw1QxvvhPcF9pH3Zg==} - '@microsoft/tsdoc@0.14.2': - resolution: {integrity: sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==} - '@microsoft/tsdoc@0.15.0': resolution: {integrity: sha512-HZpPoABogPvjeJOdzCOSJsXeL/SMCBgBZMVC3X3d7YYp2gf31MfxhUoYUNwf1ERPJOnQc0wkFn9trqI6ZEdZuA==} @@ -2977,39 +3043,20 @@ packages: '@rtsao/scc@1.1.0': resolution: {integrity: sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==} - '@rushstack/eslint-config@2.6.2': - resolution: {integrity: sha512-EcZENq5HlXe5XN9oFZ90K8y946zBXRgliNhy+378H0oK00v3FYADj8aSisEHS5OWz4HO0hYWe6IU57CNg+syYQ==} - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - typescript: '>=3.0.0' - '@rushstack/eslint-config@4.0.2': resolution: {integrity: sha512-RFLynEk5hiGjgzFKephENrBWZZfoQe+3e76Q78KXjeGsndbaZXDHy0OxLfZethlEutDQEDiE3vpkbJ1mfcMeGg==} peerDependencies: eslint: ^8.57.0 typescript: '>=4.7.0' - '@rushstack/eslint-patch@1.1.4': - resolution: {integrity: sha512-LwzQKA4vzIct1zNZzBmRKI9QuNpLgTQMEjsQLf3BXuGYb3QPTP4Yjf6mkdX+X1mYttZ808QpOwAzZjv28kq7DA==} - '@rushstack/eslint-patch@1.10.4': resolution: {integrity: sha512-WJgX9nzTqknM393q1QJDJmoW28kUfEnybeTfVNcNAPnIx210RXm2DiXiHzfNPJNIUUb1tJnz/l4QGtJ30PgWmA==} - '@rushstack/eslint-plugin-packlets@0.4.1': - resolution: {integrity: sha512-A+mb+45fAUV6SRRlRy5EXrZAHNTnvOO3ONxw0hmRDcvyPAJwoX0ClkKQriz56QQE5SL4sPxhYoqbkoKbBmsxcA==} - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - '@rushstack/eslint-plugin-packlets@0.9.2': resolution: {integrity: sha512-rZofSLJpwyP7Xo6e4eKYkI7N4JM5PycvPuoX5IEK08PgxPDm/k5pdltH9DkIKnmWvLrxIMU+85VrB5xnjbK0RQ==} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - '@rushstack/eslint-plugin-security@0.3.1': - resolution: {integrity: sha512-LOBJj7SLPkeonBq2CD9cKqujwgc84YXJP18UXmGYl8xE3OM+Fwgnav7GzsakyvkeWJwq7EtpZjjSW8DTpwfA4w==} - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - '@rushstack/eslint-plugin-security@0.8.3': resolution: {integrity: sha512-2l6bSIyTgaejiRPiFCsons/HA8sS7bKhmL/RHdAZo54jm/W/Xqb4zaFn4+OuMCNLASQhqXMc8FeYPF0V7t1Aow==} peerDependencies: @@ -3020,19 +3067,10 @@ packages: peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - '@rushstack/eslint-plugin@0.9.1': - resolution: {integrity: sha512-iMfRyk9FE1xdhuenIYwDEjJ67u7ygeFw/XBGJC2j4GHclznHWRfSGiwTeYZ66H74h7NkVTuTp8RYw/x2iDblOA==} - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - '@rushstack/heft-config-file@0.15.8': resolution: {integrity: sha512-qIhNBEwAZ+Ceh/axEbW4UoUP5F/hzzmjkYFZZuKQd91LWcWKKVriiy0izcx5uYMIJEtm5F0JhS/OUykO0xEpLg==} engines: {node: '>=10.13.0'} - '@rushstack/heft-config-file@0.8.9': - resolution: {integrity: sha512-Gb+a7KFXv9mUuogrCfNAvSsnbn25DfAqoqOWXk2s9HpKOpqNK1Gbpd8d5e8JeaBIV3LqFOyav8lj/PXn1Fe1CQ==} - engines: {node: '>=10.13.0'} - '@rushstack/heft-jest-plugin@0.12.18': resolution: {integrity: sha512-aHtHIdQiW7uxihUvc2SicfCfKEGGkxm9+qjMvktCn3m/f0GBP7aAGByuJR1+aJM4oO9HnUeRpI4hqD0QXBcVyg==} peerDependencies: @@ -3045,19 +3083,11 @@ packages: jest-environment-node: optional: true - '@rushstack/heft@0.45.14': - resolution: {integrity: sha512-1tR91ICXj74DBnCuAJlG2ZmHXCMCryYc3r0MzD1iX3DTkFrP+etliyOttuBQY2h9cb+l/CKWt/oUFZH0IohdMg==} - engines: {node: '>=10.13.0'} - hasBin: true - '@rushstack/heft@0.68.6': resolution: {integrity: sha512-effhdx7MzVQqVms1Fwh7Ey9qsBJ2y47+PTv3qM2fh+M/mprKDL6iex6Mnb6KwkN3C8f744dTXHxNKdF3+6fOnQ==} engines: {node: '>=10.13.0'} hasBin: true - '@rushstack/node-core-library@3.48.0': - resolution: {integrity: sha512-vgkG5gfYGiomnv3Lx4fxFhw0ytTBiAgMAT/6gkiYYracyv6g/Id7BYN+NtTFsHwSA8hSHvK42MOqQXqx04jYoA==} - '@rushstack/node-core-library@5.9.0': resolution: {integrity: sha512-MMsshEWkTbXqxqFxD4gcIUWQOCeBChlGczdZbHfqmNZQFLHB3yWxDFSMHFUdu2/OB9NUk7Awn5qRL+rws4HQNg==} peerDependencies: @@ -3074,9 +3104,6 @@ packages: '@types/node': optional: true - '@rushstack/rig-package@0.3.13': - resolution: {integrity: sha512-4/2+yyA/uDl7LQvtYtFs1AkhSWuaIGEKhP9/KK2nNARqOVc5eCXmu1vyOqr5mPvNq7sHoIR+sG84vFbaKYGaDA==} - '@rushstack/rig-package@0.5.3': resolution: {integrity: sha512-olzSSjYrvCNxUFZowevC3uz8gvKr3WTpHQ7BkpjtRpA3wK+T0ybep/SRUMfr195gBzJm5gaXw0ZMgjIyHqJUow==} @@ -3088,15 +3115,9 @@ packages: '@types/node': optional: true - '@rushstack/tree-pattern@0.2.4': - resolution: {integrity: sha512-H8i0OinWsdKM1TKEKPeRRTw85e+/7AIFpxm7q1blceZJhuxRBjCGAUZvQXZK4CMLx75xPqh/h1t5WHwFmElAPA==} - '@rushstack/tree-pattern@0.3.4': resolution: {integrity: sha512-9uROnkiHWsQqxW6HirXABfTRlgzhYp6tevbYIGkwKQ09VaayUBkvFvt/urDKMwlo+tGU0iQQLuVige6c48wTgw==} - '@rushstack/ts-command-line@4.12.1': - resolution: {integrity: sha512-S1Nev6h/kNnamhHeGdp30WgxZTA+B76SJ/P721ctP7DrnC+rrjAc6h/R80I4V0cA2QuEEcMdVOQCtK2BTjsOiQ==} - '@rushstack/ts-command-line@4.23.0': resolution: {integrity: sha512-jYREBtsxduPV6ptNq8jOKp9+yx0ld1Tb/Tkdnlj8gTjazl1sF3DwX2VbluyYrNd0meWIL0bNeer7WDf5tKFjaQ==} @@ -3182,12 +3203,6 @@ packages: '@types/babel__traverse@7.20.6': resolution: {integrity: sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==} - '@types/chai-subset@1.3.5': - resolution: {integrity: sha512-c2mPnw+xHtXDoHmdtcCXGwyLMiauiAyxWMzhGpqHC4nqI/Y5G2XhTampslK2rb59kpcuHon03UH8W6iYUzw88A==} - - '@types/chai@4.3.20': - resolution: {integrity: sha512-/pC9HAB5I/xMlc5FP77qjCnI16ChlJfW0tGa0IUcFn38VJrTV6DeZ60NU5KZBtaOZqjdpwTWohz5HU1RrhiYxQ==} - '@types/deep-freeze@0.1.5': resolution: {integrity: sha512-KZtR+jtmgkCpgE0f+We/QEI2Fi0towBV/tTkvHVhMzx+qhUVGXMx7pWvAtDp6vEWIjdKLTKpqbI/sORRCo8TKg==} @@ -3239,9 +3254,6 @@ packages: '@types/node-forge@1.3.11': resolution: {integrity: sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==} - '@types/node@12.20.24': - resolution: {integrity: sha512-yxDeaQIAJlMav7fH5AQqPH1u8YIuhYJXYBzxaQ4PifsU0GDO38MSdmEDeRlIxrKbC6NbEaaEHDanWb+y30U8SQ==} - '@types/node@18.19.57': resolution: {integrity: sha512-I2ioBd/IPrYDMv9UNR5NlPElOZ68QB7yY5V2EsLtSrTO0LM0PnCEFF9biLWHf5k+sIy4ohueCV9t4gk1AEdlVA==} @@ -3313,17 +3325,6 @@ packages: typescript: optional: true - '@typescript-eslint/eslint-plugin@5.20.0': - resolution: {integrity: sha512-fapGzoxilCn3sBtC6NtXZX6+P/Hef7VDbyfGqTTpzYydwhlkevB+0vE0EnmHPVTVSy68GUncyJ/2PcrFBeCo5Q==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - '@typescript-eslint/parser': ^5.0.0 - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - '@typescript-eslint/eslint-plugin@8.1.0': resolution: {integrity: sha512-LlNBaHFCEBPHyD4pZXb35mzjGkuGKXU5eeCA1SxvHfiRES0E82dOounfVpL4DCqYvJEKab0bZIA0gCRpdLKkCw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -3352,12 +3353,6 @@ packages: peerDependencies: eslint: '*' - '@typescript-eslint/experimental-utils@5.20.0': - resolution: {integrity: sha512-w5qtx2Wr9x13Dp/3ic9iGOGmVXK5gMwyc8rwVgZU46K9WTjPZSyPvdER9Ycy+B5lNHvoz+z2muWhUvlTpQeu+g==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - '@typescript-eslint/parser@2.34.0': resolution: {integrity: sha512-03ilO0ucSD0EPTw2X4PntSIRFtDPWjrVq7C3/Z3VQHRC7+13YB55rcJI3Jt+YgeHbjUdJPcPa7b23rXCBokuyA==} engines: {node: ^8.10.0 || ^10.13.0 || >=11.10.1} @@ -3368,16 +3363,6 @@ packages: typescript: optional: true - '@typescript-eslint/parser@5.20.0': - resolution: {integrity: sha512-UWKibrCZQCYvobmu3/N8TWbEeo/EPQbS41Ux1F9XqPzGuV7pfg6n50ZrFo6hryynD8qOTTfLHtHjjdQtxJ0h/w==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - '@typescript-eslint/parser@8.1.0': resolution: {integrity: sha512-U7iTAtGgJk6DPX9wIWPPOlt1gO57097G06gIcl0N0EEnNw8RGD62c+2/DiP/zL7KrkqnnqF7gtFGR7YgzPllTA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -3398,10 +3383,6 @@ packages: typescript: optional: true - '@typescript-eslint/scope-manager@5.20.0': - resolution: {integrity: sha512-h9KtuPZ4D/JuX7rpp1iKg3zOH0WNEa+ZIXwpW/KWmEFDxlA/HSfCMhiyF1HS/drTICjIbpA6OqkAhrP/zkCStg==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - '@typescript-eslint/scope-manager@6.19.1': resolution: {integrity: sha512-4CdXYjKf6/6aKNMSly/BP4iCSOpvMmqtDzRtqFyyAae3z5kkqEjKndR5vDHL8rSuMIIWP8u4Mw4VxLyxZW6D5w==} engines: {node: ^16.0.0 || >=18.0.0} @@ -3414,16 +3395,6 @@ packages: resolution: {integrity: sha512-XsGWww0odcUT0gJoBZ1DeulY1+jkaHUciUq4jKNv4cpInbvvrtDoyBH9rE/n2V29wQJPk8iCH1wipra9BhmiMA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/type-utils@5.20.0': - resolution: {integrity: sha512-WxNrCwYB3N/m8ceyoGCgbLmuZwupvzN0rE8NBuwnl7APgjv24ZJIjkNzoFBXPRCGzLNkoU/WfanW0exvp/+3Iw==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: '*' - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - '@typescript-eslint/type-utils@8.1.0': resolution: {integrity: sha512-oLYvTxljVvsMnldfl6jIKxTaU7ok7km0KDrwOt1RHYu6nxlhN3TIx8k5Q52L6wR33nOwDgM7VwW1fT1qMNfFIA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -3442,10 +3413,6 @@ packages: typescript: optional: true - '@typescript-eslint/types@5.20.0': - resolution: {integrity: sha512-+d8wprF9GyvPwtoB4CxBAR/s0rpP25XKgnOvMf/gMXYDvlUC3rPFHupdTQ/ow9vn7UDe5rX02ovGYQbv/IUCbg==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - '@typescript-eslint/types@6.19.1': resolution: {integrity: sha512-6+bk6FEtBhvfYvpHsDgAL3uo4BfvnTnoge5LrrCj2eJN8g3IJdLTD4B/jK3Q6vo4Ql/Hoip9I8aB6fF+6RfDqg==} engines: {node: ^16.0.0 || >=18.0.0} @@ -3467,15 +3434,6 @@ packages: typescript: optional: true - '@typescript-eslint/typescript-estree@5.20.0': - resolution: {integrity: sha512-36xLjP/+bXusLMrT9fMMYy1KJAGgHhlER2TqpUVDYUQg4w0q/NW/sg4UGAgVwAqb8V4zYg43KMUpM8vV2lve6w==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - '@typescript-eslint/typescript-estree@6.19.1': resolution: {integrity: sha512-aFdAxuhzBFRWhy+H20nYu19+Km+gFfwNO4TEqyszkMcgBDYQjmPJ61erHxuT2ESJXhlhrO7I5EFIlZ+qGR8oVA==} engines: {node: ^16.0.0 || >=18.0.0} @@ -3503,12 +3461,6 @@ packages: typescript: optional: true - '@typescript-eslint/utils@5.20.0': - resolution: {integrity: sha512-lHONGJL1LIO12Ujyx8L8xKbwWSkoUKFSO+0wDAqGXiudWB2EO7WEUT+YZLtVbmOmSllAjLb9tpoIPwpRe5Tn6w==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - '@typescript-eslint/utils@6.19.1': resolution: {integrity: sha512-JvjfEZuP5WoMqwh9SPAPDSHSg9FBHHGhjPugSRxu5jMfjvBpq5/sGTD+9M9aQ5sh6iJ8AY/Kk/oUYVEMAPwi7w==} engines: {node: ^16.0.0 || >=18.0.0} @@ -3527,10 +3479,6 @@ packages: peerDependencies: eslint: ^8.57.0 || ^9.0.0 - '@typescript-eslint/visitor-keys@5.20.0': - resolution: {integrity: sha512-1flRpNF+0CAQkMNlTJ6L/Z5jiODG/e5+7mk6XwtPOUS3UrTz3UOiAg9jG2VtKsWI6rZQfy4C6a232QNRZTRGlg==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - '@typescript-eslint/visitor-keys@6.19.1': resolution: {integrity: sha512-gkdtIO+xSO/SmI0W68DBg4u1KElmIUo3vXzgHyGPs6cxgB0sa3TlptRAAE0hUY1hM6FcDKEv7aIwiTGm76cXfQ==} engines: {node: ^16.0.0 || >=18.0.0} @@ -3555,9 +3503,6 @@ packages: '@vitest/browser': optional: true - '@vitest/expect@0.34.6': - resolution: {integrity: sha512-QUzKpUQRc1qC7qdGo7rMK3AkETI7w18gTCUrsNnyjjJKYiuUB9+TQK3QnR1unhCnWRC0AbKv2omLGQDF/mIjOw==} - '@vitest/expect@2.1.3': resolution: {integrity: sha512-SNBoPubeCJhZ48agjXruCI57DvxcsivVDdWz+SSsmjTT4QN/DfHk3zB/xKsJqMs26bLZ/pNRLnCf0j679i0uWQ==} @@ -3575,21 +3520,12 @@ packages: '@vitest/pretty-format@2.1.3': resolution: {integrity: sha512-XH1XdtoLZCpqV59KRbPrIhFCOO0hErxrQCMcvnQete3Vibb9UeIOX02uFPfVn3Z9ZXsq78etlfyhnkmIZSzIwQ==} - '@vitest/runner@0.34.6': - resolution: {integrity: sha512-1CUQgtJSLF47NnhN+F9X2ycxUP0kLHQ/JWvNHbeBfwW8CzEGgeskzNnHDyv1ieKTltuR6sdIHV+nmR6kPxQqzQ==} - '@vitest/runner@2.1.3': resolution: {integrity: sha512-JGzpWqmFJ4fq5ZKHtVO3Xuy1iF2rHGV4d/pdzgkYHm1+gOzNZtqjvyiaDGJytRyMU54qkxpNzCx+PErzJ1/JqQ==} - '@vitest/snapshot@0.34.6': - resolution: {integrity: sha512-B3OZqYn6k4VaN011D+ve+AA4whM4QkcwcrwaKwAbyyvS/NB1hCWjFIBQxAQQSQir9/RtyAAGuq+4RJmbn2dH4w==} - '@vitest/snapshot@2.1.3': resolution: {integrity: sha512-qWC2mWc7VAXmjAkEKxrScWHWFyCQx/cmiZtuGqMi+WwqQJ2iURsVY4ZfAK6dVo6K2smKRU6l3BPwqEBvhnpQGg==} - '@vitest/spy@0.34.6': - resolution: {integrity: sha512-xaCvneSaeBw/cz8ySmF7ZwGvL0lBjfvqc1LpQ/vcdHEvpLn3Ff1vAvjw+CoGn0802l++5L/pxb7whwcWAw+DUQ==} - '@vitest/spy@2.1.3': resolution: {integrity: sha512-Nb2UzbcUswzeSP7JksMDaqsI43Sj5+Kry6ry6jQJT4b5gAK+NS9NED6mDb8FlMRCX8m5guaHCDZmqYMMWRy5nQ==} @@ -3598,9 +3534,6 @@ packages: peerDependencies: vitest: 2.1.3 - '@vitest/utils@0.34.6': - resolution: {integrity: sha512-IG5aDD8S6zlvloDsnzHw0Ut5xczlF+kv2BOTo+iXfPr54Yhi5qbVOgGB1hZaVq4iJ4C/MZ2J0y15IlsV/ZcI0A==} - '@vitest/utils@2.1.3': resolution: {integrity: sha512-xpiVfDSg1RrYT0tX6czgerkpcKFmFOF/gCr30+Mve5V2kewCy4Prn1/NDMSRwaSmT7PRaOF83wu+bEtsY1wrvA==} @@ -3683,10 +3616,6 @@ packages: resolution: {integrity: sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==} engines: {node: '>=0.4.0'} - acorn-walk@8.3.4: - resolution: {integrity: sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==} - engines: {node: '>=0.4.0'} - acorn@6.4.2: resolution: {integrity: sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ==} engines: {node: '>=0.4.0'} @@ -3869,9 +3798,6 @@ packages: resolution: {integrity: sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==} engines: {node: '>=0.8'} - assertion-error@1.1.0: - resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==} - assertion-error@2.0.1: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} engines: {node: '>=12'} @@ -4155,10 +4081,6 @@ packages: caseless@0.12.0: resolution: {integrity: sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==} - chai@4.5.0: - resolution: {integrity: sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==} - engines: {node: '>=4'} - chai@5.1.1: resolution: {integrity: sha512-pT1ZgP8rPNqUgieVaEY+ryQr6Q4HXNg8Ei9UnLUrjN4IA7dvQC5JB+/kxVcPNDHyBcc/26CXPkbNzq3qwrOEKA==} engines: {node: '>=12'} @@ -4195,17 +4117,10 @@ packages: chardet@0.7.0: resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==} - check-error@1.0.3: - resolution: {integrity: sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==} - check-error@2.1.1: resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==} engines: {node: '>= 16'} - chokidar@3.4.3: - resolution: {integrity: sha512-DtM3g7juCXQxFVSNPNByEC2+NImtBuxQQvWlHunpJIS5Ocr0lG306cC7FCi7cEA0fzmybPUIl4txBIobk1gGOQ==} - engines: {node: '>= 8.10.0'} - chokidar@3.6.0: resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} engines: {node: '>= 8.10.0'} @@ -4294,10 +4209,6 @@ packages: color-name@1.1.4: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - colors@1.2.5: - resolution: {integrity: sha512-erNRLao/Y3Fv54qUa0LBB+//Uf3YwMUmdJinN20yMXm9zdKKqH9wt7R9IIVZ+K7ShzfpLV/Zg8+VyrBJYB4lpg==} - engines: {node: '>=0.1.90'} - combined-stream@1.0.8: resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} engines: {node: '>= 0.8'} @@ -4305,10 +4216,6 @@ packages: commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} - commander@9.5.0: - resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==} - engines: {node: ^12.20.0 || >=14} - comment-parser@1.3.1: resolution: {integrity: sha512-B52sN2VNghyq5ofvUsqZjmk6YkihBX5vMSChmSK9v4ShjKf3Vk5Xcmgpw4o+iIgtrnM/u5FiMpz9VKb8lpBveA==} engines: {node: '>= 12.0.0'} @@ -4322,9 +4229,6 @@ packages: concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} - confbox@0.1.8: - resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==} - confusing-browser-globals@1.0.11: resolution: {integrity: sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==} @@ -4926,12 +4830,6 @@ packages: eslint-config-prettier: optional: true - eslint-plugin-promise@6.0.1: - resolution: {integrity: sha512-uM4Tgo5u3UWQiroOyDEsYcVMOo7re3zmno0IZmB5auxoaQNIceAbXEkSt8RNrKtaYehARHG06pYK6K1JhtP0Zw==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: ^7.0.0 || ^8.0.0 - eslint-plugin-promise@6.1.1: resolution: {integrity: sha512-tjqWDwVZQo7UIPMeDReOpUgHCmCiH+ePnVT+5zVapL0uuHnegBUs2smM13CzOs2Xb5+MHMRFTs9v24yjba4Oig==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -4944,12 +4842,6 @@ packages: peerDependencies: eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 - eslint-plugin-react@7.27.1: - resolution: {integrity: sha512-meyunDjMMYeWr/4EBLTV1op3iSG3mjT/pz5gti38UzfM4OPpNc2m0t2xvKCOMU5D6FSdd34BIMFOvQbW+i8GAA==} - engines: {node: '>=4'} - peerDependencies: - eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 - eslint-plugin-react@7.33.2: resolution: {integrity: sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw==} engines: {node: '>=4'} @@ -4968,9 +4860,6 @@ packages: peerDependencies: eslint: 3 - 9 - eslint-plugin-tsdoc@0.2.17: - resolution: {integrity: sha512-xRmVi7Zx44lOBuYqG8vzTXuL6IdGOeF9nHX17bjJ8+VE6fsxpdGem0/SBTmAwgYMKYB1WBkqRJVQ+n8GK041pA==} - eslint-plugin-tsdoc@0.3.0: resolution: {integrity: sha512-0MuFdBrrJVBjT/gyhkP2BqpD0np1NxNLfQ38xXDlSs/KVVpKI2A6vN7jx2Rve/CyUsvOsMGwp9KKrinv7q9g3A==} @@ -4990,20 +4879,10 @@ packages: resolution: {integrity: sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==} engines: {node: '>=6'} - eslint-utils@3.0.0: - resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==} - engines: {node: ^10.0.0 || ^12.0.0 || >= 14.0.0} - peerDependencies: - eslint: '>=5' - eslint-visitor-keys@1.3.0: resolution: {integrity: sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==} engines: {node: '>=4'} - eslint-visitor-keys@2.1.0: - resolution: {integrity: sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==} - engines: {node: '>=10'} - eslint-visitor-keys@3.4.3: resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -5141,10 +5020,6 @@ packages: fast-diff@1.3.0: resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==} - fast-glob@3.2.12: - resolution: {integrity: sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==} - engines: {node: '>=8.6.0'} - fast-glob@3.3.2: resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} engines: {node: '>=8.6.0'} @@ -5308,11 +5183,6 @@ packages: fs.realpath@1.0.0: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} - fsevents@2.1.3: - resolution: {integrity: sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==} - engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} - os: [darwin] - fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} @@ -5343,9 +5213,6 @@ packages: resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} engines: {node: 6.* || 8.* || >= 10.*} - get-func-name@2.0.2: - resolution: {integrity: sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==} - get-intrinsic@1.2.4: resolution: {integrity: sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==} engines: {node: '>= 0.4'} @@ -5392,10 +5259,6 @@ packages: resolution: {integrity: sha512-8aCohiDo4jwjOwma4FmYFd3i97urZulL8XL24nIPxuE+GZnfsAyy/g2Shqx6OjUiFKUXZM+Yy+KHnOmmA3FVcg==} engines: {node: '>= 4.0'} - glob-escape@0.0.2: - resolution: {integrity: sha512-L/cXYz8x7qer1HAyUQ+mbjcUsJVdpRxpAf7CwqHoNBs9vTpABlGfNN4tzkDxt+u3Z7ZncVyKlCNPtzb0R/7WbA==} - engines: {node: '>= 0.10'} - glob-parent@5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} engines: {node: '>= 6'} @@ -5411,9 +5274,10 @@ packages: resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} hasBin: true - glob@7.0.6: - resolution: {integrity: sha512-f8c0rE8JiCxpa52kWPAOa3ZaYEnzofDzCQLCn3Vdk0Z5OVLq3BsRFJI4S4ykpeVW6QMGBUkMeUpoEgWnMTnw5Q==} - deprecated: Glob versions prior to v9 are no longer supported + glob@11.0.0: + resolution: {integrity: sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==} + engines: {node: 20 || >=22} + hasBin: true glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} @@ -5975,6 +5839,10 @@ packages: jackspeak@3.4.3: resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} + jackspeak@4.0.2: + resolution: {integrity: sha512-bZsjR/iRjl1Nk1UkjGpAzLNfQtzuijhn2g+pbZb98HQ1Gk8vM9hfbxeMBP+M2/UUdwj0RqGG3mlvk2MsAqwvEw==} + engines: {node: 20 || >=22} + jest-changed-files@25.5.0: resolution: {integrity: sha512-EOw9QEqapsDT7mKF162m8HFzRPbmP8qJQny6ldVOdOVBz3ACgPm/1nAn5fPQ/NDaYhX/AHkrGwwkCncpAVSXcw==} engines: {node: '>= 8.3'} @@ -6457,10 +6325,6 @@ packages: engines: {node: '>=18.0.0'} hasBin: true - jsonpath-plus@4.0.0: - resolution: {integrity: sha512-e0Jtg4KAzDJKKwzbLaUtinCn0RZseWBVRTRGihSpvFlM3wTR7ExSp+PTdeTsDrLNJUe7L7JYJe8mblHX5SCT6A==} - engines: {node: '>=10.0'} - jsprim@1.4.2: resolution: {integrity: sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==} engines: {node: '>=0.6.0'} @@ -6524,10 +6388,6 @@ packages: resolution: {integrity: sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==} engines: {node: '>=6.11.5'} - local-pkg@0.4.3: - resolution: {integrity: sha512-SFppqq5p42fe2qcZQqqEOiVRXl+WCP1MdT6k7BDEW1j++sp5fIY+/fdRQitvKgB5BrBcmrs5m/L0v2FrU5MY1g==} - engines: {node: '>=14'} - locate-path@5.0.0: resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} engines: {node: '>=8'} @@ -6539,9 +6399,6 @@ packages: lodash.debounce@4.0.8: resolution: {integrity: sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==} - lodash.get@4.4.2: - resolution: {integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==} - lodash.isequal@4.5.0: resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==} @@ -6582,9 +6439,6 @@ packages: resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} hasBin: true - loupe@2.3.7: - resolution: {integrity: sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==} - loupe@3.1.2: resolution: {integrity: sha512-23I4pFZHmAemUnz8WZXbYRSKYj801VDaNv9ETuMh7IrMc7VuVVSo+Z9iLE3ni30+U48iDWfi30d3twAXBYmnCg==} @@ -6594,6 +6448,10 @@ packages: lru-cache@10.4.3: resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} + lru-cache@11.0.2: + resolution: {integrity: sha512-123qHRfJBmo2jXDbo/a5YOQrJoHF/GNQTLzQ5+IdK5pWpceK17yRc6ozlWd25FxvGKQbIUs91fDFkXmDHTKcyA==} + engines: {node: 20 || >=22} + lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} @@ -6698,6 +6556,10 @@ packages: resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} engines: {node: '>=4'} + minimatch@10.0.1: + resolution: {integrity: sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==} + engines: {node: 20 || >=22} + minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} @@ -6733,9 +6595,6 @@ packages: engines: {node: '>=10'} hasBin: true - mlly@1.7.2: - resolution: {integrity: sha512-tN3dvVHYVz4DhSXinXIk7u9syPYaJvio118uomkovAtWBT+RdbP6Lfh/5Lvo519YMmwBafwlh20IPTXIStscpA==} - moment-timezone@0.5.46: resolution: {integrity: sha512-ZXm9b36esbe7OmdABqIWJuBBiLLwAjrN7CE+7sYdCCx82Nabt1wHDj8TVseS59QIlfFPbOoiBPm6ca9BioG4hw==} @@ -6960,10 +6819,6 @@ packages: resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} engines: {node: '>=10'} - p-limit@4.0.0: - resolution: {integrity: sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - p-locate@4.1.0: resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==} engines: {node: '>=8'} @@ -7032,6 +6887,10 @@ packages: resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} engines: {node: '>=16 || 14 >=14.18'} + path-scurry@2.0.0: + resolution: {integrity: sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==} + engines: {node: 20 || >=22} + path-to-regexp@2.4.0: resolution: {integrity: sha512-G6zHoVqC6GGTQkZwF4lkuEyMbVOjoBKAEybQUypI1WTkqinCOrq2x6U2+phkJ1XsEMTy4LjtwPI7HW+NVrRR2w==} @@ -7042,9 +6901,6 @@ packages: pathe@1.1.2: resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==} - pathval@1.1.1: - resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} - pathval@2.0.0: resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==} engines: {node: '>= 14.16'} @@ -7088,9 +6944,6 @@ packages: resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==} engines: {node: '>=8'} - pkg-types@1.2.1: - resolution: {integrity: sha512-sQoqa8alT3nHjGuTjuKgOnvjo4cljkufdtLMnO2LBP/wRwuDlo1tkaEdMxCRhyGRPacv/ztlZgDPm2b7FAmEvw==} - pn@1.1.0: resolution: {integrity: sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==} @@ -7177,11 +7030,6 @@ packages: engines: {node: '>=4'} hasBin: true - prettier@2.3.2: - resolution: {integrity: sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ==} - engines: {node: '>=10.13.0'} - hasBin: true - prettier@2.8.8: resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==} engines: {node: '>=10.13.0'} @@ -7287,10 +7135,6 @@ packages: resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==} engines: {node: '>= 6'} - readdirp@3.5.0: - resolution: {integrity: sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ==} - engines: {node: '>=8.10.0'} - readdirp@3.6.0: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} engines: {node: '>=8.10.0'} @@ -7436,9 +7280,6 @@ packages: resolve@1.17.0: resolution: {integrity: sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==} - resolve@1.19.0: - resolution: {integrity: sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==} - resolve@1.22.8: resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} hasBin: true @@ -7476,8 +7317,9 @@ packages: deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true - rimraf@5.0.10: - resolution: {integrity: sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==} + rimraf@6.0.1: + resolution: {integrity: sha512-9dkvaxAsk/xNXSJzMgFqqMCuFgt2+KsOFek3TMLfo8NCPfWpBmqwyNn5Y+NX56QUYfCtsyhF3ayiboEoUmJk/A==} + engines: {node: 20 || >=22} hasBin: true rollup-plugin-sourcemaps@0.6.3: @@ -7906,9 +7748,6 @@ packages: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} engines: {node: '>=8'} - strip-literal@1.3.0: - resolution: {integrity: sha512-PugKzOsyXpArk0yWmUwqOZecSO0GH0bPoctLcqNDH9J04pVW3lflYE0ujElBGTloevcxF5MofAOZ7C5l2b+wLg==} - style-search@0.1.0: resolution: {integrity: sha512-Dj1Okke1C3uKKwQcetra4jSuk0DqbzbYtXipzFlFMZtowbF1x7BKJwB9AayVMyFARvU8EDrZdcax4At/452cAg==} @@ -8030,9 +7869,6 @@ packages: through@2.3.8: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} - timsort@0.3.0: - resolution: {integrity: sha512-qsdtZH+vMoCARQtyod4imc2nIJwg9Cc7lPRrw9CzF8ZKR0khdr8+2nX80PBhET3tcyTtJDxAffGh2rXH4tyU8A==} - tiny-glob@0.2.9: resolution: {integrity: sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==} @@ -8049,10 +7885,6 @@ packages: resolution: {integrity: sha512-8or1+BGEdk1Zkkw2ii16qSS7uVrQJPre5A9o/XkWPATkk23FZh/15BKFxPnlTy6vkljZxLqYCzzBMj30ZrSvjw==} engines: {node: '>=12.0.0'} - tinypool@0.7.0: - resolution: {integrity: sha512-zSYNUlYSMhJ6Zdou4cJwo/p7w5nmAH17GRfU/ui3ctvjXFErXXkruT4MWW6poDeXgCaIBlGLrfU6TbTXxyGMww==} - engines: {node: '>=14.0.0'} - tinypool@1.0.1: resolution: {integrity: sha512-URZYihUbRPcGv95En+sz6MfghfIc2OJ1sv/RmhWZLouPY0/8Vo80viwPvg3dlaS9fuq7fQMEfgRRK7BBZThBEA==} engines: {node: ^18.0.0 || >=20.0.0} @@ -8061,10 +7893,6 @@ packages: resolution: {integrity: sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==} engines: {node: '>=14.0.0'} - tinyspy@2.2.1: - resolution: {integrity: sha512-KYad6Vy5VDWV4GH3fjpseMQ/XU2BhIYP7Vzd0LG44qRWm/Yt2WCOTicFdvmgo6gWaqooMQCawTtILVQJupKu7A==} - engines: {node: '>=14.0.0'} - tinyspy@3.0.2: resolution: {integrity: sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==} engines: {node: '>=14.0.0'} @@ -8132,9 +7960,6 @@ packages: trough@1.0.5: resolution: {integrity: sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA==} - true-case-path@2.2.1: - resolution: {integrity: sha512-0z3j8R7MCjy10kc/g+qg7Ln3alJTodw9aDuVWZa3uiWqfuBMKeAeP2ocWcxoyM3D73yz3Jt/Pu4qPr4wHSdB/Q==} - ts-api-utils@1.4.0: resolution: {integrity: sha512-032cPxaEKwM+GT3vA5JXNzIaizx388rhsSW79vGRNGXfRRAdEAn2mvk36PvK5HnOchyWZ7afLEXqYCvPCrzuzQ==} engines: {node: '>=16'} @@ -8283,19 +8108,11 @@ packages: engines: {node: '>=4.2.0'} hasBin: true - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} - hasBin: true - typescript@5.6.3: resolution: {integrity: sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==} engines: {node: '>=14.17'} hasBin: true - ufo@1.5.4: - resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==} - unbox-primitive@1.0.2: resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} @@ -8404,10 +8221,6 @@ packages: validate-rfc@2.0.3: resolution: {integrity: sha512-WS7CyAz/sfzx6DryOPZvprqz7uxHcQh1yhzDunNX1vidSmprfN7Og66VRpCyU21U82Vzkof5/bOIOKan3dEXLA==} - validator@13.12.0: - resolution: {integrity: sha512-c1Q0mCiPlgdTVVVIJIrBuxNicYE+t/7oKeI9MWLj3fh/uq2Pxh/3eeWbVZ4OcGW1TUf53At0njHw5SMdA3tmMg==} - engines: {node: '>= 0.10'} - validator@9.4.1: resolution: {integrity: sha512-YV5KjzvRmSyJ1ee/Dm5UED0G+1L4GZnLN3w6/T+zZm8scVua4sOhYKWTUrKa0H/tMiJyO9QLHMPN+9mB/aMunA==} engines: {node: '>= 0.10'} @@ -8422,11 +8235,6 @@ packages: vfile@4.2.1: resolution: {integrity: sha512-O6AE4OskCG5S1emQ/4gl8zK586RqA3srz3nfK/Viy0UPToBc5Trp9BVFb1u0CjsKrAWwnpr4ifM/KBXPWwJbCA==} - vite-node@0.34.6: - resolution: {integrity: sha512-nlBMJ9x6n7/Amaz6F3zJ97EBwR2FkzhBRxF5e+jE6LA3yi6Wtc2lyTij1OnDMIr34v5g/tVQtsVAzhT0jc5ygA==} - engines: {node: '>=v14.18.0'} - hasBin: true - vite-node@2.1.3: resolution: {integrity: sha512-I1JadzO+xYX887S39Do+paRePCKoiDrWRRjp9kkG5he0t7RXNvPAJPCQSJqbGN4uCrFFeS3Kj3sLqY8NMYBEdA==} engines: {node: ^18.0.0 || >=20.0.0} @@ -8499,37 +8307,6 @@ packages: terser: optional: true - vitest@0.34.6: - resolution: {integrity: sha512-+5CALsOvbNKnS+ZHMXtuUC7nL8/7F1F2DnHGjSsszX8zCjWSSviphCb/NuS9Nzf4Q03KyyDRBAXhF/8lffME4Q==} - engines: {node: '>=v14.18.0'} - hasBin: true - peerDependencies: - '@edge-runtime/vm': '*' - '@vitest/browser': '*' - '@vitest/ui': '*' - happy-dom: '*' - jsdom: '*' - playwright: '*' - safaridriver: '*' - webdriverio: '*' - peerDependenciesMeta: - '@edge-runtime/vm': - optional: true - '@vitest/browser': - optional: true - '@vitest/ui': - optional: true - happy-dom: - optional: true - jsdom: - optional: true - playwright: - optional: true - safaridriver: - optional: true - webdriverio: - optional: true - vitest@2.1.3: resolution: {integrity: sha512-Zrxbg/WiIvUP2uEzelDNTXmEMJXuzJ1kCpbDvaKByFA9MNeO95V+7r/3ti0qzJzrxdyuUw5VduN7k+D3VmVOSA==} engines: {node: ^18.0.0 || >=20.0.0} @@ -8814,15 +8591,6 @@ packages: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} - yocto-queue@1.1.1: - resolution: {integrity: sha512-b4JR1PFR10y1mKjhHY9LaGo6tmrgjit7hxVIeAmyMw3jegXR4dhYqLaQF5zMXZxY7tLpMyJeLjr1C4rLmkVe8g==} - engines: {node: '>=12.20'} - - z-schema@5.0.5: - resolution: {integrity: sha512-D7eujBWkLa3p2sIpJA0d1pr7es+a7m0vFAnZLlCEKq/Ij2k0MLi9Br2UPxoxdYystm5K1yeBGzub0FlYUEWj2Q==} - engines: {node: '>=8.0.0'} - hasBin: true - zwitch@1.0.5: resolution: {integrity: sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw==} @@ -10360,13 +10128,6 @@ snapshots: dependencies: jsep: 1.4.0 - '@microsoft/tsdoc-config@0.16.2': - dependencies: - '@microsoft/tsdoc': 0.14.2 - ajv: 6.12.6 - jju: 1.4.0 - resolve: 1.19.0 - '@microsoft/tsdoc-config@0.17.0': dependencies: '@microsoft/tsdoc': 0.15.0 @@ -10374,8 +10135,6 @@ snapshots: jju: 1.4.0 resolve: 1.22.8 - '@microsoft/tsdoc@0.14.2': {} - '@microsoft/tsdoc@0.15.0': {} '@nodelib/fs.scandir@2.1.5': @@ -10495,24 +10254,6 @@ snapshots: '@rtsao/scc@1.1.0': {} - '@rushstack/eslint-config@2.6.2(eslint@8.57.1)(typescript@4.9.5)': - dependencies: - '@rushstack/eslint-patch': 1.1.4 - '@rushstack/eslint-plugin': 0.9.1(eslint@8.57.1)(typescript@4.9.5) - '@rushstack/eslint-plugin-packlets': 0.4.1(eslint@8.57.1)(typescript@4.9.5) - '@rushstack/eslint-plugin-security': 0.3.1(eslint@8.57.1)(typescript@4.9.5) - '@typescript-eslint/eslint-plugin': 5.20.0(@typescript-eslint/parser@5.20.0(eslint@8.57.1)(typescript@4.9.5))(eslint@8.57.1)(typescript@4.9.5) - '@typescript-eslint/experimental-utils': 5.20.0(eslint@8.57.1)(typescript@4.9.5) - '@typescript-eslint/parser': 5.20.0(eslint@8.57.1)(typescript@4.9.5) - '@typescript-eslint/typescript-estree': 5.20.0(typescript@4.9.5) - eslint: 8.57.1 - eslint-plugin-promise: 6.0.1(eslint@8.57.1) - eslint-plugin-react: 7.27.1(eslint@8.57.1) - eslint-plugin-tsdoc: 0.2.17 - typescript: 4.9.5 - transitivePeerDependencies: - - supports-color - '@rushstack/eslint-config@4.0.2(eslint@8.57.1)(typescript@5.6.3)': dependencies: '@rushstack/eslint-patch': 1.10.4 @@ -10531,19 +10272,8 @@ snapshots: transitivePeerDependencies: - supports-color - '@rushstack/eslint-patch@1.1.4': {} - '@rushstack/eslint-patch@1.10.4': {} - '@rushstack/eslint-plugin-packlets@0.4.1(eslint@8.57.1)(typescript@4.9.5)': - dependencies: - '@rushstack/tree-pattern': 0.2.4 - '@typescript-eslint/experimental-utils': 5.20.0(eslint@8.57.1)(typescript@4.9.5) - eslint: 8.57.1 - transitivePeerDependencies: - - supports-color - - typescript - '@rushstack/eslint-plugin-packlets@0.9.2(eslint@8.57.1)(typescript@5.6.3)': dependencies: '@rushstack/tree-pattern': 0.3.4 @@ -10553,15 +10283,6 @@ snapshots: - supports-color - typescript - '@rushstack/eslint-plugin-security@0.3.1(eslint@8.57.1)(typescript@4.9.5)': - dependencies: - '@rushstack/tree-pattern': 0.2.4 - '@typescript-eslint/experimental-utils': 5.20.0(eslint@8.57.1)(typescript@4.9.5) - eslint: 8.57.1 - transitivePeerDependencies: - - supports-color - - typescript - '@rushstack/eslint-plugin-security@0.8.3(eslint@8.57.1)(typescript@5.6.3)': dependencies: '@rushstack/tree-pattern': 0.3.4 @@ -10580,15 +10301,6 @@ snapshots: - supports-color - typescript - '@rushstack/eslint-plugin@0.9.1(eslint@8.57.1)(typescript@4.9.5)': - dependencies: - '@rushstack/tree-pattern': 0.2.4 - '@typescript-eslint/experimental-utils': 5.20.0(eslint@8.57.1)(typescript@4.9.5) - eslint: 8.57.1 - transitivePeerDependencies: - - supports-color - - typescript - '@rushstack/heft-config-file@0.15.8(@types/node@18.19.57)': dependencies: '@rushstack/node-core-library': 5.9.0(@types/node@18.19.57) @@ -10598,12 +10310,6 @@ snapshots: transitivePeerDependencies: - '@types/node' - '@rushstack/heft-config-file@0.8.9': - dependencies: - '@rushstack/node-core-library': 3.48.0 - '@rushstack/rig-package': 0.3.13 - jsonpath-plus: 4.0.0 - '@rushstack/heft-jest-plugin@0.12.18(@rushstack/heft@0.68.6(@types/node@18.19.57))(@types/node@18.19.57)(jest-environment-node@29.7.0)': dependencies: '@jest/core': 29.5.0 @@ -10626,23 +10332,6 @@ snapshots: - supports-color - ts-node - '@rushstack/heft@0.45.14': - dependencies: - '@rushstack/heft-config-file': 0.8.9 - '@rushstack/node-core-library': 3.48.0 - '@rushstack/rig-package': 0.3.13 - '@rushstack/ts-command-line': 4.12.1 - '@types/tapable': 1.0.6 - argparse: 1.0.10 - chokidar: 3.4.3 - fast-glob: 3.2.12 - glob: 7.0.6 - glob-escape: 0.0.2 - prettier: 2.3.2 - semver: 7.3.5 - tapable: 1.1.3 - true-case-path: 2.2.1 - '@rushstack/heft@0.68.6(@types/node@18.19.57)': dependencies: '@rushstack/heft-config-file': 0.15.8(@types/node@18.19.57) @@ -10660,18 +10349,6 @@ snapshots: transitivePeerDependencies: - '@types/node' - '@rushstack/node-core-library@3.48.0': - dependencies: - '@types/node': 12.20.24 - colors: 1.2.5 - fs-extra: 7.0.1 - import-lazy: 4.0.0 - jju: 1.4.0 - resolve: 1.17.0 - semver: 7.3.5 - timsort: 0.3.0 - z-schema: 5.0.5 - '@rushstack/node-core-library@5.9.0(@types/node@18.19.57)': dependencies: ajv: 8.13.0 @@ -10692,11 +10369,6 @@ snapshots: optionalDependencies: '@types/node': 18.19.57 - '@rushstack/rig-package@0.3.13': - dependencies: - resolve: 1.17.0 - strip-json-comments: 3.1.1 - '@rushstack/rig-package@0.5.3': dependencies: resolve: 1.22.8 @@ -10709,17 +10381,8 @@ snapshots: optionalDependencies: '@types/node': 18.19.57 - '@rushstack/tree-pattern@0.2.4': {} - '@rushstack/tree-pattern@0.3.4': {} - '@rushstack/ts-command-line@4.12.1': - dependencies: - '@types/argparse': 1.0.38 - argparse: 1.0.10 - colors: 1.2.5 - string-argv: 0.3.2 - '@rushstack/ts-command-line@4.23.0(@types/node@18.19.57)': dependencies: '@rushstack/terminal': 0.14.2(@types/node@18.19.57) @@ -10837,12 +10500,6 @@ snapshots: dependencies: '@babel/types': 7.25.8 - '@types/chai-subset@1.3.5': - dependencies: - '@types/chai': 4.3.20 - - '@types/chai@4.3.20': {} - '@types/deep-freeze@0.1.5': {} '@types/eslint-visitor-keys@1.0.0': {} @@ -10900,8 +10557,6 @@ snapshots: dependencies: '@types/node': 18.19.57 - '@types/node@12.20.24': {} - '@types/node@18.19.57': dependencies: undici-types: 5.26.5 @@ -10970,24 +10625,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/eslint-plugin@5.20.0(@typescript-eslint/parser@5.20.0(eslint@8.57.1)(typescript@4.9.5))(eslint@8.57.1)(typescript@4.9.5)': - dependencies: - '@typescript-eslint/parser': 5.20.0(eslint@8.57.1)(typescript@4.9.5) - '@typescript-eslint/scope-manager': 5.20.0 - '@typescript-eslint/type-utils': 5.20.0(eslint@8.57.1)(typescript@4.9.5) - '@typescript-eslint/utils': 5.20.0(eslint@8.57.1)(typescript@4.9.5) - debug: 4.3.7(supports-color@9.4.0) - eslint: 8.57.1 - functional-red-black-tree: 1.0.1 - ignore: 5.3.2 - regexpp: 3.2.0 - semver: 7.6.3 - tsutils: 3.21.0(typescript@4.9.5) - optionalDependencies: - typescript: 4.9.5 - transitivePeerDependencies: - - supports-color - '@typescript-eslint/eslint-plugin@8.1.0(@typescript-eslint/parser@8.1.0(eslint@8.57.1)(typescript@5.6.3))(eslint@8.57.1)(typescript@5.6.3)': dependencies: '@eslint-community/regexpp': 4.12.1 @@ -11035,14 +10672,6 @@ snapshots: - supports-color - typescript - '@typescript-eslint/experimental-utils@5.20.0(eslint@8.57.1)(typescript@4.9.5)': - dependencies: - '@typescript-eslint/utils': 5.20.0(eslint@8.57.1)(typescript@4.9.5) - eslint: 8.57.1 - transitivePeerDependencies: - - supports-color - - typescript - '@typescript-eslint/parser@2.34.0(eslint@6.8.0)(typescript@3.9.10)': dependencies: '@types/eslint-visitor-keys': 1.0.0 @@ -11055,18 +10684,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@5.20.0(eslint@8.57.1)(typescript@4.9.5)': - dependencies: - '@typescript-eslint/scope-manager': 5.20.0 - '@typescript-eslint/types': 5.20.0 - '@typescript-eslint/typescript-estree': 5.20.0(typescript@4.9.5) - debug: 4.3.7(supports-color@9.4.0) - eslint: 8.57.1 - optionalDependencies: - typescript: 4.9.5 - transitivePeerDependencies: - - supports-color - '@typescript-eslint/parser@8.1.0(eslint@8.57.1)(typescript@5.6.3)': dependencies: '@typescript-eslint/scope-manager': 8.1.0 @@ -11093,11 +10710,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/scope-manager@5.20.0': - dependencies: - '@typescript-eslint/types': 5.20.0 - '@typescript-eslint/visitor-keys': 5.20.0 - '@typescript-eslint/scope-manager@6.19.1': dependencies: '@typescript-eslint/types': 6.19.1 @@ -11113,17 +10725,6 @@ snapshots: '@typescript-eslint/types': 8.13.0 '@typescript-eslint/visitor-keys': 8.13.0 - '@typescript-eslint/type-utils@5.20.0(eslint@8.57.1)(typescript@4.9.5)': - dependencies: - '@typescript-eslint/utils': 5.20.0(eslint@8.57.1)(typescript@4.9.5) - debug: 4.3.7(supports-color@9.4.0) - eslint: 8.57.1 - tsutils: 3.21.0(typescript@4.9.5) - optionalDependencies: - typescript: 4.9.5 - transitivePeerDependencies: - - supports-color - '@typescript-eslint/type-utils@8.1.0(eslint@8.57.1)(typescript@5.6.3)': dependencies: '@typescript-eslint/typescript-estree': 8.1.0(typescript@5.6.3) @@ -11148,8 +10749,6 @@ snapshots: - eslint - supports-color - '@typescript-eslint/types@5.20.0': {} - '@typescript-eslint/types@6.19.1': {} '@typescript-eslint/types@8.1.0': {} @@ -11170,20 +10769,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/typescript-estree@5.20.0(typescript@4.9.5)': - dependencies: - '@typescript-eslint/types': 5.20.0 - '@typescript-eslint/visitor-keys': 5.20.0 - debug: 4.3.7(supports-color@9.4.0) - globby: 11.1.0 - is-glob: 4.0.3 - semver: 7.6.3 - tsutils: 3.21.0(typescript@4.9.5) - optionalDependencies: - typescript: 4.9.5 - transitivePeerDependencies: - - supports-color - '@typescript-eslint/typescript-estree@6.19.1(typescript@5.6.3)': dependencies: '@typescript-eslint/types': 6.19.1 @@ -11229,19 +10814,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@5.20.0(eslint@8.57.1)(typescript@4.9.5)': - dependencies: - '@types/json-schema': 7.0.15 - '@typescript-eslint/scope-manager': 5.20.0 - '@typescript-eslint/types': 5.20.0 - '@typescript-eslint/typescript-estree': 5.20.0(typescript@4.9.5) - eslint: 8.57.1 - eslint-scope: 5.1.1 - eslint-utils: 3.0.0(eslint@8.57.1) - transitivePeerDependencies: - - supports-color - - typescript - '@typescript-eslint/utils@6.19.1(eslint@8.57.1)(typescript@5.6.3)': dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.1) @@ -11278,11 +10850,6 @@ snapshots: - supports-color - typescript - '@typescript-eslint/visitor-keys@5.20.0': - dependencies: - '@typescript-eslint/types': 5.20.0 - eslint-visitor-keys: 3.4.3 - '@typescript-eslint/visitor-keys@6.19.1': dependencies: '@typescript-eslint/types': 6.19.1 @@ -11318,12 +10885,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@vitest/expect@0.34.6': - dependencies: - '@vitest/spy': 0.34.6 - '@vitest/utils': 0.34.6 - chai: 4.5.0 - '@vitest/expect@2.1.3': dependencies: '@vitest/spy': 2.1.3 @@ -11343,49 +10904,21 @@ snapshots: dependencies: tinyrainbow: 1.2.0 - '@vitest/runner@0.34.6': - dependencies: - '@vitest/utils': 0.34.6 - p-limit: 4.0.0 - pathe: 1.1.2 - '@vitest/runner@2.1.3': dependencies: '@vitest/utils': 2.1.3 pathe: 1.1.2 - '@vitest/snapshot@0.34.6': - dependencies: - magic-string: 0.30.12 - pathe: 1.1.2 - pretty-format: 29.7.0 - '@vitest/snapshot@2.1.3': dependencies: '@vitest/pretty-format': 2.1.3 magic-string: 0.30.12 pathe: 1.1.2 - '@vitest/spy@0.34.6': - dependencies: - tinyspy: 2.2.1 - '@vitest/spy@2.1.3': dependencies: tinyspy: 3.0.2 - '@vitest/ui@2.1.3(vitest@0.34.6)': - dependencies: - '@vitest/utils': 2.1.3 - fflate: 0.8.2 - flatted: 3.3.1 - pathe: 1.1.2 - sirv: 2.0.4 - tinyglobby: 0.2.9 - tinyrainbow: 1.2.0 - vitest: 0.34.6(@vitest/ui@2.1.3)(jsdom@19.0.0)(sugarss@2.0.0)(terser@5.36.0) - optional: true - '@vitest/ui@2.1.3(vitest@2.1.3)': dependencies: '@vitest/utils': 2.1.3 @@ -11397,12 +10930,6 @@ snapshots: tinyrainbow: 1.2.0 vitest: 2.1.3(@types/node@18.19.57)(@vitest/ui@2.1.3)(jsdom@19.0.0)(sugarss@2.0.0)(terser@5.36.0) - '@vitest/utils@0.34.6': - dependencies: - diff-sequences: 29.6.3 - loupe: 2.3.7 - pretty-format: 29.7.0 - '@vitest/utils@2.1.3': dependencies: '@vitest/pretty-format': 2.1.3 @@ -11517,10 +11044,6 @@ snapshots: acorn-walk@7.2.0: {} - acorn-walk@8.3.4: - dependencies: - acorn: 8.14.0 - acorn@6.4.2: {} acorn@7.4.1: {} @@ -11710,8 +11233,6 @@ snapshots: assert-plus@1.0.0: {} - assertion-error@1.1.0: {} - assertion-error@2.0.1: {} assign-symbols@1.0.0: {} @@ -12073,16 +11594,6 @@ snapshots: caseless@0.12.0: {} - chai@4.5.0: - dependencies: - assertion-error: 1.1.0 - check-error: 1.0.3 - deep-eql: 4.1.4 - get-func-name: 2.0.2 - loupe: 2.3.7 - pathval: 1.1.1 - type-detect: 4.1.0 - chai@5.1.1: dependencies: assertion-error: 2.0.1 @@ -12119,24 +11630,8 @@ snapshots: chardet@0.7.0: {} - check-error@1.0.3: - dependencies: - get-func-name: 2.0.2 - check-error@2.1.1: {} - chokidar@3.4.3: - dependencies: - anymatch: 3.1.3 - braces: 3.0.3 - glob-parent: 5.1.2 - is-binary-path: 2.1.0 - is-glob: 4.0.3 - normalize-path: 3.0.0 - readdirp: 3.5.0 - optionalDependencies: - fsevents: 2.1.3 - chokidar@3.6.0: dependencies: anymatch: 3.1.3 @@ -12221,17 +11716,12 @@ snapshots: color-name@1.1.4: {} - colors@1.2.5: {} - combined-stream@1.0.8: dependencies: delayed-stream: 1.0.0 commander@2.20.3: {} - commander@9.5.0: - optional: true - comment-parser@1.3.1: {} commondir@1.0.1: {} @@ -12240,8 +11730,6 @@ snapshots: concat-map@0.0.1: {} - confbox@0.1.8: {} - confusing-browser-globals@1.0.11: {} convert-source-map@1.9.0: {} @@ -12983,10 +12471,6 @@ snapshots: optionalDependencies: eslint-config-prettier: 8.10.0(eslint@8.57.1) - eslint-plugin-promise@6.0.1(eslint@8.57.1): - dependencies: - eslint: 8.57.1 - eslint-plugin-promise@6.1.1(eslint@8.57.1): dependencies: eslint: 8.57.1 @@ -12995,24 +12479,6 @@ snapshots: dependencies: eslint: 6.8.0 - eslint-plugin-react@7.27.1(eslint@8.57.1): - dependencies: - array-includes: 3.1.8 - array.prototype.flatmap: 1.3.2 - doctrine: 2.1.0 - eslint: 8.57.1 - estraverse: 5.3.0 - jsx-ast-utils: 3.3.5 - minimatch: 3.1.2 - object.entries: 1.1.8 - object.fromentries: 2.0.8 - object.hasown: 1.1.4 - object.values: 1.2.0 - prop-types: 15.8.1 - resolve: 2.0.0-next.5 - semver: 6.3.1 - string.prototype.matchall: 4.0.11 - eslint-plugin-react@7.33.2(eslint@8.57.1): dependencies: array-includes: 3.1.8 @@ -13060,11 +12526,6 @@ snapshots: eslint: 8.57.1 natural-compare-lite: 1.4.0 - eslint-plugin-tsdoc@0.2.17: - dependencies: - '@microsoft/tsdoc': 0.14.2 - '@microsoft/tsdoc-config': 0.16.2 - eslint-plugin-tsdoc@0.3.0: dependencies: '@microsoft/tsdoc': 0.15.0 @@ -13088,15 +12549,8 @@ snapshots: dependencies: eslint-visitor-keys: 1.3.0 - eslint-utils@3.0.0(eslint@8.57.1): - dependencies: - eslint: 8.57.1 - eslint-visitor-keys: 2.1.0 - eslint-visitor-keys@1.3.0: {} - eslint-visitor-keys@2.1.0: {} - eslint-visitor-keys@3.4.3: {} eslint@6.8.0: @@ -13348,14 +12802,6 @@ snapshots: fast-diff@1.3.0: {} - fast-glob@3.2.12: - dependencies: - '@nodelib/fs.stat': 2.0.5 - '@nodelib/fs.walk': 1.2.8 - glob-parent: 5.1.2 - merge2: 1.4.1 - micromatch: 4.0.8 - fast-glob@3.3.2: dependencies: '@nodelib/fs.stat': 2.0.5 @@ -13544,9 +12990,6 @@ snapshots: fs.realpath@1.0.0: {} - fsevents@2.1.3: - optional: true - fsevents@2.3.3: optional: true @@ -13572,8 +13015,6 @@ snapshots: get-caller-file@2.0.5: {} - get-func-name@2.0.2: {} - get-intrinsic@1.2.4: dependencies: es-errors: 1.3.0 @@ -13621,8 +13062,6 @@ snapshots: git-repo-info@2.1.1: {} - glob-escape@0.0.2: {} - glob-parent@5.1.2: dependencies: is-glob: 4.0.3 @@ -13642,14 +13081,14 @@ snapshots: package-json-from-dist: 1.0.1 path-scurry: 1.11.1 - glob@7.0.6: + glob@11.0.0: dependencies: - fs.realpath: 1.0.0 - inflight: 1.0.6 - inherits: 2.0.4 - minimatch: 3.1.2 - once: 1.4.0 - path-is-absolute: 1.0.1 + foreground-child: 3.3.0 + jackspeak: 4.0.2 + minimatch: 10.0.1 + minipass: 7.1.2 + package-json-from-dist: 1.0.1 + path-scurry: 2.0.0 glob@7.2.3: dependencies: @@ -14184,6 +13623,10 @@ snapshots: optionalDependencies: '@pkgjs/parseargs': 0.11.0 + jackspeak@4.0.2: + dependencies: + '@isaacs/cliui': 8.0.2 + jest-changed-files@25.5.0: dependencies: '@jest/types': 25.5.0 @@ -15329,8 +14772,6 @@ snapshots: '@jsep-plugin/regex': 1.0.4(jsep@1.4.0) jsep: 1.4.0 - jsonpath-plus@4.0.0: {} - jsprim@1.4.2: dependencies: assert-plus: 1.0.0 @@ -15392,8 +14833,6 @@ snapshots: loader-runner@4.3.0: {} - local-pkg@0.4.3: {} - locate-path@5.0.0: dependencies: p-locate: 4.1.0 @@ -15404,8 +14843,6 @@ snapshots: lodash.debounce@4.0.8: {} - lodash.get@4.4.2: {} - lodash.isequal@4.5.0: {} lodash.memoize@4.1.2: {} @@ -15443,10 +14880,6 @@ snapshots: dependencies: js-tokens: 4.0.0 - loupe@2.3.7: - dependencies: - get-func-name: 2.0.2 - loupe@3.1.2: {} lower-case@2.0.2: @@ -15455,6 +14888,8 @@ snapshots: lru-cache@10.4.3: {} + lru-cache@11.0.2: {} + lru-cache@5.1.1: dependencies: yallist: 3.1.1 @@ -15585,6 +15020,10 @@ snapshots: min-indent@1.0.1: {} + minimatch@10.0.1: + dependencies: + brace-expansion: 2.0.1 + minimatch@3.1.2: dependencies: brace-expansion: 1.1.11 @@ -15618,13 +15057,6 @@ snapshots: mkdirp@1.0.4: {} - mlly@1.7.2: - dependencies: - acorn: 8.14.0 - pathe: 1.1.2 - pkg-types: 1.2.1 - ufo: 1.5.4 - moment-timezone@0.5.46: dependencies: moment: 2.30.1 @@ -15865,10 +15297,6 @@ snapshots: dependencies: yocto-queue: 0.1.0 - p-limit@4.0.0: - dependencies: - yocto-queue: 1.1.1 - p-locate@4.1.0: dependencies: p-limit: 2.3.0 @@ -15931,14 +15359,17 @@ snapshots: lru-cache: 10.4.3 minipass: 7.1.2 + path-scurry@2.0.0: + dependencies: + lru-cache: 11.0.2 + minipass: 7.1.2 + path-to-regexp@2.4.0: {} path-type@4.0.0: {} pathe@1.1.2: {} - pathval@1.1.1: {} - pathval@2.0.0: {} pdf-parse@1.1.1: @@ -15985,12 +15416,6 @@ snapshots: dependencies: find-up: 4.1.0 - pkg-types@1.2.1: - dependencies: - confbox: 0.1.8 - mlly: 1.7.2 - pathe: 1.1.2 - pn@1.1.0: {} png-js@1.0.0: {} @@ -16065,8 +15490,6 @@ snapshots: prettier@1.19.1: {} - prettier@2.3.2: {} - prettier@2.8.8: {} pretty-format@25.5.0: @@ -16190,10 +15613,6 @@ snapshots: string_decoder: 1.3.0 util-deprecate: 1.0.2 - readdirp@3.5.0: - dependencies: - picomatch: 2.3.1 - readdirp@3.6.0: dependencies: picomatch: 2.3.1 @@ -16351,11 +15770,6 @@ snapshots: dependencies: path-parse: 1.0.7 - resolve@1.19.0: - dependencies: - is-core-module: 2.15.1 - path-parse: 1.0.7 - resolve@1.22.8: dependencies: is-core-module: 2.15.1 @@ -16392,9 +15806,10 @@ snapshots: dependencies: glob: 7.2.3 - rimraf@5.0.10: + rimraf@6.0.1: dependencies: - glob: 10.4.5 + glob: 11.0.0 + package-json-from-dist: 1.0.1 rollup-plugin-sourcemaps@0.6.3(@types/node@18.19.57)(rollup@1.32.1): dependencies: @@ -16896,10 +16311,6 @@ snapshots: strip-json-comments@3.1.1: {} - strip-literal@1.3.0: - dependencies: - acorn: 8.14.0 - style-search@0.1.0: {} stylelint-config-recommended@5.0.0(stylelint@13.13.1): @@ -17067,8 +16478,6 @@ snapshots: through@2.3.8: {} - timsort@0.3.0: {} - tiny-glob@0.2.9: dependencies: globalyzer: 0.1.0 @@ -17085,14 +16494,10 @@ snapshots: fdir: 6.4.2(picomatch@4.0.2) picomatch: 4.0.2 - tinypool@0.7.0: {} - tinypool@1.0.1: {} tinyrainbow@1.2.0: {} - tinyspy@2.2.1: {} - tinyspy@3.0.2: {} tmp@0.0.33: @@ -17163,8 +16568,6 @@ snapshots: trough@1.0.5: {} - true-case-path@2.2.1: {} - ts-api-utils@1.4.0(typescript@5.6.3): dependencies: typescript: 5.6.3 @@ -17210,10 +16613,6 @@ snapshots: typescript: 5.6.3 webpack: 5.95.0 - tsconfck@2.1.2(typescript@4.9.5): - optionalDependencies: - typescript: 4.9.5 - tsconfck@2.1.2(typescript@5.6.3): optionalDependencies: typescript: 5.6.3 @@ -17314,11 +16713,6 @@ snapshots: tslib: 1.14.1 typescript: 3.9.10 - tsutils@3.21.0(typescript@4.9.5): - dependencies: - tslib: 1.14.1 - typescript: 4.9.5 - tunnel-agent@0.6.0: dependencies: safe-buffer: 5.2.1 @@ -17385,12 +16779,8 @@ snapshots: typescript@3.9.10: {} - typescript@4.9.5: {} - typescript@5.6.3: {} - ufo@1.5.4: {} - unbox-primitive@1.0.2: dependencies: call-bind: 1.0.7 @@ -17504,8 +16894,6 @@ snapshots: validate-rfc@2.0.3: {} - validator@13.12.0: {} - validator@9.4.1: {} verror@1.10.0: @@ -17526,24 +16914,6 @@ snapshots: unist-util-stringify-position: 2.0.3 vfile-message: 2.0.4 - vite-node@0.34.6(@types/node@18.19.57)(sugarss@2.0.0)(terser@5.36.0): - dependencies: - cac: 6.7.14 - debug: 4.3.7(supports-color@9.4.0) - mlly: 1.7.2 - pathe: 1.1.2 - picocolors: 1.1.1 - vite: 4.5.5(@types/node@18.19.57)(sugarss@2.0.0)(terser@5.36.0) - transitivePeerDependencies: - - '@types/node' - - less - - lightningcss - - sass - - stylus - - sugarss - - supports-color - - terser - vite-node@2.1.3(@types/node@18.19.57)(sugarss@2.0.0)(terser@5.36.0): dependencies: cac: 6.7.14 @@ -17561,17 +16931,6 @@ snapshots: - supports-color - terser - vite-tsconfig-paths@4.2.3(typescript@4.9.5)(vite@5.4.9(@types/node@18.19.57)(sugarss@2.0.0)(terser@5.36.0)): - dependencies: - debug: 4.3.7(supports-color@9.4.0) - globrex: 0.1.2 - tsconfck: 2.1.2(typescript@4.9.5) - optionalDependencies: - vite: 5.4.9(@types/node@18.19.57)(sugarss@2.0.0)(terser@5.36.0) - transitivePeerDependencies: - - supports-color - - typescript - vite-tsconfig-paths@4.2.3(typescript@5.6.3)(vite@4.5.5(@types/node@18.19.57)(sugarss@2.0.0)(terser@5.36.0)): dependencies: debug: 4.3.7(supports-color@9.4.0) @@ -17616,44 +16975,6 @@ snapshots: sugarss: 2.0.0 terser: 5.36.0 - vitest@0.34.6(@vitest/ui@2.1.3)(jsdom@19.0.0)(sugarss@2.0.0)(terser@5.36.0): - dependencies: - '@types/chai': 4.3.20 - '@types/chai-subset': 1.3.5 - '@types/node': 18.19.57 - '@vitest/expect': 0.34.6 - '@vitest/runner': 0.34.6 - '@vitest/snapshot': 0.34.6 - '@vitest/spy': 0.34.6 - '@vitest/utils': 0.34.6 - acorn: 8.14.0 - acorn-walk: 8.3.4 - cac: 6.7.14 - chai: 4.5.0 - debug: 4.3.7(supports-color@9.4.0) - local-pkg: 0.4.3 - magic-string: 0.30.12 - pathe: 1.1.2 - picocolors: 1.1.1 - std-env: 3.7.0 - strip-literal: 1.3.0 - tinybench: 2.9.0 - tinypool: 0.7.0 - vite: 4.5.5(@types/node@18.19.57)(sugarss@2.0.0)(terser@5.36.0) - vite-node: 0.34.6(@types/node@18.19.57)(sugarss@2.0.0)(terser@5.36.0) - why-is-node-running: 2.3.0 - optionalDependencies: - '@vitest/ui': 2.1.3(vitest@0.34.6) - jsdom: 19.0.0 - transitivePeerDependencies: - - less - - lightningcss - - sass - - stylus - - sugarss - - supports-color - - terser - vitest@2.1.3(@types/node@18.19.57)(@vitest/ui@2.1.3)(jsdom@19.0.0)(sugarss@2.0.0)(terser@5.36.0): dependencies: '@vitest/expect': 2.1.3 @@ -17990,14 +17311,4 @@ snapshots: yocto-queue@0.1.0: {} - yocto-queue@1.1.1: {} - - z-schema@5.0.5: - dependencies: - lodash.get: 4.4.2 - lodash.isequal: 4.5.0 - validator: 13.12.0 - optionalDependencies: - commander: 9.5.0 - zwitch@1.0.5: {} diff --git a/common/config/rush/version-policies.json b/common/config/rush/version-policies.json index ea3f988b..0cf695e1 100644 --- a/common/config/rush/version-policies.json +++ b/common/config/rush/version-policies.json @@ -96,7 +96,7 @@ "nextBump": "patch" }, { - "policyName": "xml2json", + "policyName": "2json", "definitionName": "lockStepVersion", "version": "4.0.13", "nextBump": "patch" diff --git a/common/scripts/github-actions.js b/common/scripts/github-actions.js index b7124914..92478361 100644 --- a/common/scripts/github-actions.js +++ b/common/scripts/github-actions.js @@ -90,8 +90,8 @@ function getDependences(scope) { expresiones: { expresiones: true }, - xml2json: { - xml2json: true + '2json': { + '2json': true } }; return dependencies[scope] || {}; diff --git a/packages/cfdi/catalogos/package.json b/packages/cfdi/catalogos/package.json index 2727b84e..df63e4c7 100644 --- a/packages/cfdi/catalogos/package.json +++ b/packages/cfdi/catalogos/package.json @@ -31,7 +31,7 @@ "test:coverage": "vitest --coverage run", "test:ui": "vitest --ui", "lint": "tsdx lint", - "prepare": "tsdx build", + "prepare": "npm run build", "size": "size-limit", "analyze": "size-limit --why" }, @@ -58,6 +58,7 @@ } ], "devDependencies": { + "@recreando/vite": "workspace:*", "@recreando/eslint-settings": "workspace:*", "@recreando/jest": "workspace:*", "@recreando/typescript-settings": "workspace:*", diff --git a/packages/cfdi/catalogos/ vitest.config.ts b/packages/cfdi/catalogos/vitest.config.mts similarity index 100% rename from packages/cfdi/catalogos/ vitest.config.ts rename to packages/cfdi/catalogos/vitest.config.mts diff --git a/packages/cfdi/complementos/package.json b/packages/cfdi/complementos/package.json index 5c475bac..66e0f109 100644 --- a/packages/cfdi/complementos/package.json +++ b/packages/cfdi/complementos/package.json @@ -67,9 +67,10 @@ "xml-js": "^1.6.11" }, "devDependencies": { - "rimraf": "^5.0.0", + "rimraf": "^6.0.1", "@recreando/eslint-settings": "workspace:*", "@recreando/jest": "workspace:*", + "@recreando/vite": "workspace:*", "@recreando/typescript-settings": "workspace:*", "@rushstack/eslint-config": "^4.0.2", "@rushstack/heft": "^0.68.6", diff --git a/packages/cfdi/complementos/ vitest.config.ts b/packages/cfdi/complementos/vitest.config.mts similarity index 100% rename from packages/cfdi/complementos/ vitest.config.ts rename to packages/cfdi/complementos/vitest.config.mts diff --git a/packages/cfdi/csd/package.index.json b/packages/cfdi/csd/package.index.json index dfbd53fd..ec1f2a29 100644 --- a/packages/cfdi/csd/package.index.json +++ b/packages/cfdi/csd/package.index.json @@ -1,3 +1,5 @@ { - "main": "dist/index.js" + "main": "./dist/index.js", + "typings": "./dist/index.d.ts", + "module": "./dist/csd.esm.js" } diff --git a/packages/cfdi/csd/package.json b/packages/cfdi/csd/package.json index 50d85843..ea8db676 100644 --- a/packages/cfdi/csd/package.json +++ b/packages/cfdi/csd/package.json @@ -21,7 +21,7 @@ "test:coverage": "vitest --coverage run", "test:ui": "vitest --ui", "lint": "tsdx lint", - "prepare": "tsdx build", + "prepare": "npm run build", "size": "size-limit", "analyze": "size-limit --why" }, @@ -55,9 +55,10 @@ "validate-rfc": "^2.0.2" }, "devDependencies": { - "rimraf": "^5.0.0", + "rimraf": "^6.0.1", "@recreando/eslint-settings": "workspace:*", "@recreando/jest": "workspace:*", + "@recreando/vite": "workspace:*", "@recreando/typescript-settings": "workspace:*", "@rushstack/eslint-config": "^4.0.2", "@rushstack/heft": "^0.68.6", diff --git a/packages/cfdi/csd/ vitest.config.ts b/packages/cfdi/csd/vitest.config.mts similarity index 100% rename from packages/cfdi/csd/ vitest.config.ts rename to packages/cfdi/csd/vitest.config.mts diff --git a/packages/cfdi/csf/package.json b/packages/cfdi/csf/package.json index 52ce9b71..161252e6 100644 --- a/packages/cfdi/csf/package.json +++ b/packages/cfdi/csf/package.json @@ -7,8 +7,7 @@ "module": "./dist/csf.esm.js", "source": "./src/index.ts", "files": [ - "dist", - "src" + "dist" ], "engines": { "node": ">=10" @@ -21,7 +20,7 @@ "test:coverage": "vitest --coverage run", "test:ui": "vitest --ui", "lint": "tsdx lint", - "prepare": "tsdx build", + "prepare": "npm run build", "size": "size-limit", "analyze": "size-limit --why" }, @@ -64,8 +63,9 @@ "pdf-parse": "^1.1.1" }, "devDependencies": { + "@recreando/vite": "workspace:*", "@types/pdf-parse": "^1.1.4", - "rimraf": "^5.0.0", + "rimraf": "^6.0.1", "@recreando/eslint-settings": "workspace:*", "@recreando/typescript-settings": "workspace:*", "@rushstack/eslint-config": "^4.0.2", diff --git a/packages/cfdi/csf/ vitest.config.ts b/packages/cfdi/csf/vitest.config.mts similarity index 100% rename from packages/cfdi/csf/ vitest.config.ts rename to packages/cfdi/csf/vitest.config.mts diff --git a/packages/cfdi/curp/package.json b/packages/cfdi/curp/package.json index 5d0bf025..74b146f4 100644 --- a/packages/cfdi/curp/package.json +++ b/packages/cfdi/curp/package.json @@ -4,8 +4,7 @@ "license": "MIT", "source": "./src/index.ts", "files": [ - "dist", - "src" + "dist" ], "engines": { "node": ">=10" @@ -18,7 +17,7 @@ "test:coverage": "vitest --coverage run", "test:ui": "vitest --ui", "lint": "tsdx lint", - "prepare": "tsdx build", + "prepare": "npm run build", "size": "size-limit", "analyze": "size-limit --why" }, @@ -51,6 +50,7 @@ "devDependencies": { "@recreando/eslint-settings": "workspace:*", "@recreando/jest": "workspace:*", + "@recreando/vite": "workspace:*", "@recreando/typescript-settings": "workspace:*", "@rushstack/eslint-config": "^4.0.2", "@rushstack/heft": "^0.68.6", diff --git a/packages/cfdi/curp/ vitest.config.ts b/packages/cfdi/curp/vitest.config.mts similarity index 100% rename from packages/cfdi/curp/ vitest.config.ts rename to packages/cfdi/curp/vitest.config.mts diff --git a/packages/cfdi/elements/package.json b/packages/cfdi/elements/package.json index 70496bba..e1528376 100644 --- a/packages/cfdi/elements/package.json +++ b/packages/cfdi/elements/package.json @@ -72,7 +72,8 @@ "xml-js": "^1.6.11" }, "devDependencies": { - "rimraf": "^5.0.0", + "rimraf": "^6.0.1", + "@recreando/vite": "workspace:*", "@recreando/eslint-settings": "workspace:*", "@recreando/typescript-settings": "workspace:*", "@rushstack/eslint-config": "^4.0.2", diff --git a/packages/cfdi/elements/src/Elemento.ts b/packages/cfdi/elements/src/Elemento.ts new file mode 100644 index 00000000..5b4d4c33 --- /dev/null +++ b/packages/cfdi/elements/src/Elemento.ts @@ -0,0 +1,25 @@ + +export class Elemento { + private _cfdi: string; + private _prefix: string; + private _name: string; + + constructor(tag: string){ + const [prefijo, name] = tag.split(':') + this._prefix = prefijo + this._name = name + this._cfdi = `${prefijo}:${name}` + } + + tag(): string { + return this._cfdi; + } + + prefix(): string { + return this._prefix; + } + + name(): string { + return this._name; + } + } \ No newline at end of file diff --git a/packages/cfdi/elements/src/cfdi.ts b/packages/cfdi/elements/src/cfdi.ts index 79d093cc..ed7f9420 100644 --- a/packages/cfdi/elements/src/cfdi.ts +++ b/packages/cfdi/elements/src/cfdi.ts @@ -1 +1,4 @@ -const IS_LOADING3 = false \ No newline at end of file +import { Elemento } from "./Elemento"; +//import { COMPROBANTE } from "./Comprobante"; +export const Concepto = new Elemento('cfdi:Concepto'); +Concepto.tag \ No newline at end of file diff --git a/packages/cfdi/elements/src/complementos.ts b/packages/cfdi/elements/src/complementos.ts deleted file mode 100644 index 55b2bf1e..00000000 --- a/packages/cfdi/elements/src/complementos.ts +++ /dev/null @@ -1 +0,0 @@ -const iedu = '' \ No newline at end of file diff --git a/packages/cfdi/elements/src/complementos/cartaporte31.ts b/packages/cfdi/elements/src/complementos/cartaporte31.ts new file mode 100644 index 00000000..e8d897c8 --- /dev/null +++ b/packages/cfdi/elements/src/complementos/cartaporte31.ts @@ -0,0 +1,6 @@ +export const IMPUESTOSLOCALES = 'implocal:ImpuestosLocales' as const; +export const CARTAPORTE = 'cartaporte31:CartaPorte' as const; +export const UBICACION = 'cartaporte31:Ubicacion' as const; +export const MERCANCIAS = 'cartaporte31:Mercancias' as const; +export const MERCANCIA = 'cartaporte31:Mercancia' as const; +export const AUTOTRANSPORTE = 'cartaporte31:Autotransporte' as const; diff --git a/packages/cfdi/elements/src/complementos/index.ts b/packages/cfdi/elements/src/complementos/index.ts new file mode 100644 index 00000000..692b4b6d --- /dev/null +++ b/packages/cfdi/elements/src/complementos/index.ts @@ -0,0 +1,2 @@ +export * from './cartaporte31' +export * from './vehiculousado' \ No newline at end of file diff --git a/packages/cfdi/elements/src/complementos/vehiculousado.ts b/packages/cfdi/elements/src/complementos/vehiculousado.ts new file mode 100644 index 00000000..054ec019 --- /dev/null +++ b/packages/cfdi/elements/src/complementos/vehiculousado.ts @@ -0,0 +1 @@ +export const VEHICULO_USADO = 'vehiculousado:VehiculoUsado' as const; diff --git a/packages/cfdi/elements/src/comprobante.ts b/packages/cfdi/elements/src/comprobante.ts index b2ca667e..f5996679 100644 --- a/packages/cfdi/elements/src/comprobante.ts +++ b/packages/cfdi/elements/src/comprobante.ts @@ -1 +1,10 @@ -const IS_LOADING = false \ No newline at end of file +export const COMPROBANTE = 'cfdi:Comprobante' as const; +export const EMISOR = 'cfdi:Emisor' as const; +export const RECEPTOR = 'cfdi:Receptor' as const; +export const CONCEPTOS = 'cfdi:Conceptos' as const; +export const CONCEPTO = 'cfdi:Concepto' as const; +export const IMPUESTOS = 'cfdi:Impuestos' as const; +export const TRASLADOS = 'cfdi:Traslados' as const; +export const TRASLADO = 'cfdi:Traslado' as const; +export const COMPLEMENTO = 'cfdi:Complemento' as const; + diff --git a/packages/cfdi/elements/src/index.ts b/packages/cfdi/elements/src/index.ts index f7079263..31e1ad64 100644 --- a/packages/cfdi/elements/src/index.ts +++ b/packages/cfdi/elements/src/index.ts @@ -1 +1,2 @@ -const IS_LOADING1 = false \ No newline at end of file +export * from './complementos' +export * from './comprobante' \ No newline at end of file diff --git a/packages/cfdi/expresiones/package.json b/packages/cfdi/expresiones/package.json index f928cf2d..f85aaae8 100644 --- a/packages/cfdi/expresiones/package.json +++ b/packages/cfdi/expresiones/package.json @@ -11,8 +11,7 @@ ] }, "files": [ - "dist", - "src" + "dist" ], "engines": { "node": ">=10" @@ -68,9 +67,10 @@ "xml-js": "^1.6.11" }, "devDependencies": { - "rimraf": "^5.0.0", + "rimraf": "^6.0.1", "@recreando/eslint-settings": "workspace:*", "@recreando/jest": "workspace:*", + "@recreando/vite": "workspace:*", "@recreando/typescript-settings": "workspace:*", "@rushstack/eslint-config": "^4.0.2", "@rushstack/heft": "^0.68.6", diff --git a/packages/cfdi/expresiones/ vitest.config.ts b/packages/cfdi/expresiones/vitest.config.mts similarity index 100% rename from packages/cfdi/expresiones/ vitest.config.ts rename to packages/cfdi/expresiones/vitest.config.mts diff --git a/packages/cfdi/pdf/package.json b/packages/cfdi/pdf/package.json index 1485a0c6..c0c59825 100644 --- a/packages/cfdi/pdf/package.json +++ b/packages/cfdi/pdf/package.json @@ -20,7 +20,7 @@ "test:coverage": "vitest --coverage run", "test:ui": "vitest --ui", "lint": "tsdx lint", - "prepare": "tsdx build", + "prepare": "npm run build", "size": "size-limit", "analyze": "size-limit --why" }, @@ -49,6 +49,7 @@ "dependencies": { "@cfdi/utils": "workspace:*", "@cfdi/xml": "workspace:*", + "@cfdi/2json": "workspace:*", "@cfdi/complementos": "workspace:*", "@cfdi/catalogos": "workspace:*", "immutable": "^4.0.0-rc.12", @@ -62,6 +63,7 @@ "devDependencies": { "@recreando/eslint-settings": "workspace:*", "@recreando/jest": "workspace:*", + "@recreando/vite": "workspace:*", "@recreando/typescript-settings": "workspace:*", "@rushstack/eslint-config": "^4.0.2", "@rushstack/heft": "^0.68.6", diff --git a/packages/cfdi/pdf/src/abstract-cfdi-pdf.ts b/packages/cfdi/pdf/src/abstract-cfdi-pdf.ts index db8cddda..2b437bed 100644 --- a/packages/cfdi/pdf/src/abstract-cfdi-pdf.ts +++ b/packages/cfdi/pdf/src/abstract-cfdi-pdf.ts @@ -13,7 +13,7 @@ import { TCreatedPdf, createPdf } from 'pdfmake/build/pdfmake'; import { OptionsPdf } from './types'; import { XmlTfd } from '@cfdi/complementos/types/complements/tfd/tfd.com' -import { XmlToJson } from '@cfdi/utils'; +import { XmlToJson } from '@cfdi/2json'; import path from 'path'; // import PdfPrinter from 'pdfmake'; // @ts-ignore diff --git a/packages/cfdi/pdf/src/templates/A111/A111.skelton.ts b/packages/cfdi/pdf/src/templates/A111/A111.skelton.ts index 2b834c96..c35c2c8f 100644 --- a/packages/cfdi/pdf/src/templates/A111/A111.skelton.ts +++ b/packages/cfdi/pdf/src/templates/A111/A111.skelton.ts @@ -1,5 +1,4 @@ import { TDocumentDefinitions } from 'pdfmake/interfaces'; -import { logo } from '@cfdi/utils'; export const A111SKELETON: TDocumentDefinitions | any = { pageSize: 'A4', pageMargins: [20, 25, 20, 25], diff --git a/packages/cfdi/pdf/src/templates/A111/index.ts b/packages/cfdi/pdf/src/templates/A111/index.ts index bc026c65..564473a6 100644 --- a/packages/cfdi/pdf/src/templates/A111/index.ts +++ b/packages/cfdi/pdf/src/templates/A111/index.ts @@ -7,8 +7,6 @@ import { XmlImpuestos, XmlReceptor, } from '@cfdi/xml' -import { XmlToJson } from '@cfdi/utils'; -// import { logo } from '@cfdi/utils'; import { createPdf, TCreatedPdf } from 'pdfmake/build/pdfmake'; import { RPDF } from '../../abstract-cfdi-pdf'; import { A111SKELETON } from './A111.skelton'; diff --git a/packages/cfdi/pdf/src/templates/B112/index.ts b/packages/cfdi/pdf/src/templates/B112/index.ts index bc66eb59..8c38d457 100644 --- a/packages/cfdi/pdf/src/templates/B112/index.ts +++ b/packages/cfdi/pdf/src/templates/B112/index.ts @@ -1,5 +1,5 @@ import { XmlCdfi } from "@cfdi/xml" -import { XmlToJson } from "@cfdi/utils"; +import { XmlToJson } from "@cfdi/2json"; import { logo } from '@cfdi/utils'; import { createPdf, TCreatedPdf } from "pdfmake/build/pdfmake"; import { TDocumentDefinitions } from "pdfmake/interfaces"; diff --git a/packages/cfdi/pdf/src/templates/B123/index.ts b/packages/cfdi/pdf/src/templates/B123/index.ts index feaeac9b..fa21499f 100644 --- a/packages/cfdi/pdf/src/templates/B123/index.ts +++ b/packages/cfdi/pdf/src/templates/B123/index.ts @@ -1,6 +1,6 @@ import { TDocumentDefinitions } from "pdfmake/interfaces"; import { XmlCdfi } from "@cfdi/xml"; -import { XmlToJson } from "@cfdi/utils"; +import { XmlToJson } from "@cfdi/2json"; import { logo } from '@cfdi/utils'; import { createPdf, TCreatedPdf } from "pdfmake/build/pdfmake"; diff --git a/packages/cfdi/pdf/src/templates/B222/index.ts b/packages/cfdi/pdf/src/templates/B222/index.ts index 0635f5d1..2f8ebd71 100644 --- a/packages/cfdi/pdf/src/templates/B222/index.ts +++ b/packages/cfdi/pdf/src/templates/B222/index.ts @@ -1,6 +1,6 @@ import { TDocumentDefinitions } from "pdfmake/interfaces"; import { XmlCdfi } from "@cfdi/xml"; -import { XmlToJson } from "@cfdi/utils"; +import { XmlToJson } from "@cfdi/2json"; import { logo } from '@cfdi/utils'; import { createPdf, TCreatedPdf } from "pdfmake/build/pdfmake"; diff --git a/packages/cfdi/pdf/src/templates/B333/index.ts b/packages/cfdi/pdf/src/templates/B333/index.ts index 10c34aac..c99ce2ba 100644 --- a/packages/cfdi/pdf/src/templates/B333/index.ts +++ b/packages/cfdi/pdf/src/templates/B333/index.ts @@ -1,6 +1,6 @@ import { TDocumentDefinitions } from "pdfmake/interfaces"; import { XmlCdfi } from "@cfdi/xml"; -import { XmlToJson } from "@cfdi/utils"; +import { XmlToJson } from "@cfdi/2json"; import { logo } from '@cfdi/utils'; import { createPdf, TCreatedPdf } from "pdfmake/build/pdfmake"; diff --git a/packages/cfdi/pdf/vitest.config.mts b/packages/cfdi/pdf/vitest.config.mts new file mode 100644 index 00000000..7ec41805 --- /dev/null +++ b/packages/cfdi/pdf/vitest.config.mts @@ -0,0 +1,17 @@ +import { defineConfig } from 'vitest/config'; +import tsconfigPaths from 'vite-tsconfig-paths'; // only if you are using custom tsconfig paths +//import {viteTestConfig} from './node_modules/@recreando/vite' +//console.log('viteTestConfig', viteTestConfig) +export default defineConfig({ + test: { + alias:{ + // ...viteTestConfig.test?.alias + } + }, + plugins: [tsconfigPaths()], // only if you are using custom tsconfig paths + resolve: { + alias: { + //...viteTestConfig.resolve?.alias + } + } +}); diff --git a/packages/cfdi/rfc/package.json b/packages/cfdi/rfc/package.json index 8c048f3f..be0ce257 100644 --- a/packages/cfdi/rfc/package.json +++ b/packages/cfdi/rfc/package.json @@ -7,8 +7,7 @@ "module": "dist/utils.esm.js", "source": "./src/index.ts", "files": [ - "dist", - "src" + "dist" ], "engines": { "node": ">=10" @@ -21,7 +20,7 @@ "test:coverage": "vitest --coverage run", "test:ui": "vitest --ui", "lint": "tsdx lint", - "prepare": "tsdx build", + "prepare": "npm run build", "size": "size-limit", "analyze": "size-limit --why" }, @@ -51,6 +50,7 @@ "devDependencies": { "@recreando/eslint-settings": "workspace:*", "@recreando/jest": "workspace:*", + "@recreando/vite": "workspace:*", "@recreando/typescript-settings": "workspace:*", "@rushstack/eslint-config": "^4.0.2", "@rushstack/heft": "^0.68.6", diff --git a/packages/cfdi/pdf/ vitest.config.ts b/packages/cfdi/rfc/vitest.config.mts similarity index 100% rename from packages/cfdi/pdf/ vitest.config.ts rename to packages/cfdi/rfc/vitest.config.mts diff --git a/packages/cfdi/transform/package.json b/packages/cfdi/transform/package.json index 6434338a..c966b3d2 100644 --- a/packages/cfdi/transform/package.json +++ b/packages/cfdi/transform/package.json @@ -2,6 +2,9 @@ "name": "@cfdi/transform", "version": "4.0.13", "license": "MIT", + "main": "dist/index.js", + "typings": "dist/index.d.ts", + "module": "dist/transform.esm.js", "source": "./src/index.ts", "release": { "branches": [ @@ -11,8 +14,7 @@ ] }, "files": [ - "dist", - "src" + "dist" ], "engines": { "node": ">=10" @@ -65,10 +67,13 @@ } ], "dependencies": { - "xml-js": "^1.6.11" + "xml-js": "^1.6.11", + "@cfdi/2json": "workspace:*" }, "devDependencies": { - "rimraf": "^5.0.0", + "rimraf": "^6.0.1", + "@recreando/vite": "workspace:*", + "@saxon-he/cli": "workspace:*", "@recreando/eslint-settings": "workspace:*", "@recreando/jest": "workspace:*", "@recreando/typescript-settings": "workspace:*", diff --git a/packages/cfdi/transform/src/transform.ts b/packages/cfdi/transform/src/transform.ts index 36afb72f..43c45c8c 100644 --- a/packages/cfdi/transform/src/transform.ts +++ b/packages/cfdi/transform/src/transform.ts @@ -1,70 +1,19 @@ -// @ts-ignore - -import { js2xml, json2xml, xml2js } from 'xml-js'; -import { readFileSync, writeFileSync } from 'fs'; - -type XsdElement = { - name: string; - minOccurs?: string; - elements?: XsdElement[]; - attributes?: Record; -}; - -type JsonSchema = { - $schema: string; - type: string; - properties: Record; - required: string[]; - additionalProperties: false; -}; - -function cleanObjectKeys(obj: any): any { - if (typeof obj !== 'object') { - return obj; - } - - if (Array.isArray(obj)) { - return obj.map(cleanObjectKeys); - } - - const cleanedObj = {}; - - for (const key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) { - if (key === '_attributes') { - const attributes = obj[key]; - for (const attrKey in attributes) { - if (Object.prototype.hasOwnProperty.call(attributes, attrKey)) { - if (!attrKey.includes(':')) { - // @ts-ignore - cleanedObj[`@${attrKey}`] = attributes[attrKey]; - } - } - } - } else { - const cleanedKey = key.split(':').pop(); - // @ts-ignore - cleanedObj[cleanedKey] = cleanObjectKeys(obj[key]); - } - } - } - - return cleanedObj; -} - -//export const CFDIXsd = LoadXsd.getInstance(); - +import { XmlToJson } from '@cfdi/2json'; export default class Transform { xml: any = {}; xslPath = ''; fullPath = ''; - constructor(xml: any) { - this.xml = xml; + + s(archivo: string) { + this.xml = XmlToJson(archivo, { original: true }); + console.log(JSON.stringify(this.xml['cfdi:Comprobante']['cfdi:Impuestos'], null, 2)); + return this; } async run() { const rear = await this.obtenerValores(this.xml['cfdi:Comprobante']); - return `||${rear.filter((e) => e).join('|')}||`; + const clean = rear.filter((e) => Boolean(e)); + return `||${clean.join('|')}||`; } json(xslPath: string) { @@ -87,6 +36,7 @@ export default class Transform { 'xmlns:destruccion', 'xmlns:iedu', 'xmlns:pago10', + 'xmlns:vehiculousado', ]; const miObjeto = { comprobante: [ @@ -106,11 +56,10 @@ export default class Transform { // @ts-ignore const clavesOrdenadas = ignore ? Object.keys(obj) : miObjeto[tagKey]; for (let key of clavesOrdenadas) { + if (!omitKeys.includes(key)) { if (typeof obj[key] === 'object') { - valores = valores.concat( - this.obtenerValores(obj[key], { ignore: true }) - ); + valores = valores.concat(this.obtenerValores(obj[key], { ignore: true })); } else { if (!ingnore.includes(key)) { valores.push(obj[key]); diff --git a/packages/cfdi/transform/test/check.test.ts b/packages/cfdi/transform/test/check.test.ts index 6ac59191..e9b96c85 100644 --- a/packages/cfdi/transform/test/check.test.ts +++ b/packages/cfdi/transform/test/check.test.ts @@ -1,7 +1,28 @@ -import { describe, expect, it, test } from 'vitest'; +import { describe, expect, it, TaskContext, test, TestContext } from 'vitest'; +import { Transform as SaxonHe } from '@saxon-he/cli'; +import { Transform } from '../src'; +import path from 'path'; +const files = path.resolve(__dirname, '..', '..', '..', 'files'); +const xml_path = `${files}/xml`; +const key_path = `${files}/certificados/LAN7008173R5.key`; +const cer_path = `${files}/certificados/LAN7008173R5.cer`; +const xslt_path = `${files}/4.0/cadenaoriginal.xslt`; -describe('blah', () => { - it('works', () => { - expect(2).toEqual(2); +const vehiculo_usado = `${xml_path}/vehiculo_usado.xml`; + +describe('transform', () => { + it('with saxon-he', async (context: TaskContext) => { + const saxonhe = new SaxonHe(); + + const cadena_saxon = saxonhe.s(vehiculo_usado).xsl(xslt_path).run(); + + //expect(cadena_saxon).toBe('||4.0|Serie|Folio|2024-03-01T00:00:00|99|20001000000300022815|CondicionesDePago|2000|MXN|1|2000.16|I|01|PUE|20000|EKU9003173C9|ESCUELA KEMPER URGATE|601|URE180429TM6|UNIVERSIDAD ROBOTICA ESPAÑOLA|86991|601|S01|50211503|1|H87|Servicio|Servicio|200.00|200.00|02|1|002|Tasa|0.160000|0.16|1|002|Tasa|0.160000|0.16|0.16|1.0|10000.00|0.00|AAAABBB|FORD|Mustang|1989|123123123|12312323|1234ASD|5000.00||') + + }); + + it('with transform', async (context: TaskContext) => { + const transform = new Transform(); + const cadena = await transform.s(vehiculo_usado).json(xslt_path).run(); + //expect(cadena).toBe('||4.0|Serie|Folio|2024-03-01T00:00:00|99|20001000000300022815|CondicionesDePago|2000|MXN|1|2000.16|I|01|PUE|20000|EKU9003173C9|ESCUELA KEMPER URGATE|601|URE180429TM6|UNIVERSIDAD ROBOTICA ESPAÑOLA|86991|601|S01|50211503|1|H87|Servicio|Servicio|200.00|200.00|02|1|002|Tasa|0.160000|0.16|1|002|Tasa|0.160000|0.16|0.16|1.0|10000.00|0.00|AAAABBB|FORD|Mustang|1989|123123123|12312323|1234ASD|5000.00||') }); }); diff --git a/packages/cfdi/transform/test/xslt.test.ts b/packages/cfdi/transform/test/xslt.test.ts new file mode 100644 index 00000000..60e3b895 --- /dev/null +++ b/packages/cfdi/transform/test/xslt.test.ts @@ -0,0 +1,22 @@ +import { describe, expect, it, TaskContext, test, TestContext } from 'vitest'; +import path from 'path'; +const files = path.resolve(__dirname, '..', '..', '..', 'files'); +const xslt_path = `${files}/4.0/cadenaoriginal.xslt`; +import { ElementCompact, Element, Options, xml2js } from 'xml-js'; +import { readFileSync } from 'fs'; + + +describe('xslt', () => { + it('json', async (context: TaskContext) => { + const options: Options.XML2JS = { + ignoreComment: false, + alwaysChildren: false, + compact: false, + ignoreDeclaration: true, + //elementNameFn: (name: string) => original ? name : name.replace(/^.*:/, '') + }; + const xml = readFileSync(xslt_path, 'utf8') + const json = xml2js(xml, options); + console.log(JSON.stringify(json, null, 2)); + }); +}); diff --git a/packages/cfdi/transform/vitest.config.mts b/packages/cfdi/transform/vitest.config.mts new file mode 100644 index 00000000..a432d529 --- /dev/null +++ b/packages/cfdi/transform/vitest.config.mts @@ -0,0 +1,33 @@ +import { defineConfig } from 'vitest/config'; +import tsconfigPaths from 'vite-tsconfig-paths'; +import { resolve } from 'path'; + +export default defineConfig({ + test: { + reporters: ['default'], + coverage: { + include: ['src/**/*.ts'], + exclude: ['**/node_modules/**', '**/test/**'], // Excluir node_modules y la carpeta de tests + }, + alias: { + '@cfdi/xsd': resolve(__dirname, '../xsd/src'), + '@cfdi/complementos': resolve(__dirname, '../complementos/src'), + '@cfdi/csd': resolve(__dirname, '../csd/src'), + '@cfdi/2json': resolve(__dirname, '../xml2json/src'), + '@cfdi/utils': resolve(__dirname, '../utils/src'), + '@saxon-he/cli': resolve(__dirname, '../../clir/saxon-he/src'), + }, + }, + plugins: [ + tsconfigPaths(), + ], + resolve: { + alias: { + '@cfdi/xsd': resolve(__dirname, '../xsd/src'), + '@cfdi/complementos': resolve(__dirname, '../complementos/src'), + '@cfdi/csd': resolve(__dirname, '../csd/src'), + '@cfdi/2json': resolve(__dirname, '../xml2json/src'), + '@saxon-he/cli': resolve(__dirname, '../../clir/saxon-he/src'), + }, + }, +}); diff --git a/packages/cfdi/types/package.json b/packages/cfdi/types/package.json index 3de8294b..65983835 100644 --- a/packages/cfdi/types/package.json +++ b/packages/cfdi/types/package.json @@ -72,7 +72,8 @@ "xml-js": "^1.6.11" }, "devDependencies": { - "rimraf": "^5.0.0", + "rimraf": "^6.0.1", + "@recreando/vite": "workspace:*", "@recreando/eslint-settings": "workspace:*", "@recreando/typescript-settings": "workspace:*", "@rushstack/eslint-config": "^4.0.2", diff --git a/packages/cfdi/utils/config/index.js b/packages/cfdi/utils/config/index.js new file mode 100644 index 00000000..29c00f9d --- /dev/null +++ b/packages/cfdi/utils/config/index.js @@ -0,0 +1,2 @@ +'use strict' +module.exports = require('./utils.cjs.production.min.js') diff --git a/packages/cfdi/utils/package.index.json b/packages/cfdi/utils/package.index.json new file mode 100644 index 00000000..7dbe2aba --- /dev/null +++ b/packages/cfdi/utils/package.index.json @@ -0,0 +1,5 @@ +{ + "main": "dist/index.js", + "typings": "dist/index.d.ts", + "module": "dist/xml.esm.js" +} diff --git a/packages/cfdi/utils/package.json b/packages/cfdi/utils/package.json index d2a56a33..c6410b0b 100644 --- a/packages/cfdi/utils/package.json +++ b/packages/cfdi/utils/package.json @@ -4,27 +4,59 @@ "license": "MIT", "main": "./dist/index.js", "typings": "./dist/index.d.ts", - "module": "./dist/utils.esm.js", + "module": "./dist/utils.esm.min.js", "source": "./src/index.ts", "files": [ - "dist", - "src" + "dist" ], "engines": { "node": ">=10" }, "scripts": { + "build": "tsdx build --env production --minify && rimraf ./dist/index.js ./dist/utils.cjs.development.*", + "cp": "cp ./config/index.js ./dist", "start": "tsdx watch", - "build": "tsdx build", "test": "vitest", "test:ci": "vitest run", "test:coverage": "vitest --coverage run", "test:ui": "vitest --ui", "lint": "tsdx lint", - "prepare": "tsdx build", "size": "size-limit", "analyze": "size-limit --why" }, + + "dependencies": { + "xml-js": "^1.6.11" + }, + "devDependencies": { + "rimraf": "^6.0.1", + "@recreando/eslint-settings": "workspace:*", + "@recreando/jest": "workspace:*", + "@recreando/vite": "workspace:*", + "@recreando/typescript-settings": "workspace:*", + "@rushstack/eslint-config": "^4.0.2", + "@rushstack/heft": "^0.68.6", + "@size-limit/preset-small-lib": "^7.0.8", + "@testing-library/dom": "^8.19.0", + "@testing-library/jest-dom": "^5.16.1", + "@types/deep-freeze": "^0.1.2", + "@types/jest": "^27.5.0", + "@types/node": "^18.11.3", + "@types/testing-library__jest-dom": "^5.9.1", + "chalk": "^4.0.0", + "chokidar": "^3.5.2", + "eslint": "^8.57.0", + "husky": "^8.0.1", + "jest": "^28.1.2", + "size-limit": "^7.0.8", + "tsdx": "^0.14.1", + "tslib": "^2.4.0", + "typescript": "^5.6.3", + "vitest": "2.1.3", + "vite-tsconfig-paths": "~4.2.1", + "@vitest/coverage-v8": "2.1.3", + "@vitest/ui": "2.1.3" + }, "husky": { "hooks": { "pre-commit": "tsdx lint" @@ -58,36 +90,5 @@ "path": "dist/utils.esm.js", "limit": "10 KB" } - ], - "dependencies": { - "@cfdi/xml": "workspace:*", - "xml-js": "^1.6.11" - }, - "devDependencies": { - "@recreando/eslint-settings": "workspace:*", - "@recreando/jest": "workspace:*", - "@recreando/typescript-settings": "workspace:*", - "@rushstack/eslint-config": "^4.0.2", - "@rushstack/heft": "^0.68.6", - "@size-limit/preset-small-lib": "^7.0.8", - "@testing-library/dom": "^8.19.0", - "@testing-library/jest-dom": "^5.16.1", - "@types/deep-freeze": "^0.1.2", - "@types/jest": "^27.5.0", - "@types/node": "^18.11.3", - "@types/testing-library__jest-dom": "^5.9.1", - "chalk": "^4.0.0", - "chokidar": "^3.5.2", - "eslint": "^8.57.0", - "husky": "^8.0.1", - "jest": "^28.1.2", - "size-limit": "^7.0.8", - "tsdx": "^0.14.1", - "tslib": "^2.4.0", - "typescript": "^5.6.3", - "vitest": "2.1.3", - "vite-tsconfig-paths": "~4.2.1", - "@vitest/coverage-v8": "2.1.3", - "@vitest/ui": "2.1.3" - } + ] } diff --git a/packages/cfdi/utils/src/File.ts b/packages/cfdi/utils/src/File.ts new file mode 100644 index 00000000..bffa68be --- /dev/null +++ b/packages/cfdi/utils/src/File.ts @@ -0,0 +1,4 @@ +export function isPath(input: string): boolean { + const pathPattern = /[\/\\]|(\.\w+)$/; + return pathPattern.test(input); +} diff --git a/packages/cfdi/utils/src/index.ts b/packages/cfdi/utils/src/index.ts index a631607c..70a61a17 100644 --- a/packages/cfdi/utils/src/index.ts +++ b/packages/cfdi/utils/src/index.ts @@ -1,3 +1,3 @@ -export * from "./xmlToJson" export * from "./Logo" export * from "./NumbersToLetter" +export * from './File' \ No newline at end of file diff --git a/packages/cfdi/utils/src/xmlToJson.ts b/packages/cfdi/utils/src/xmlToJson.ts deleted file mode 100644 index 4ece5024..00000000 --- a/packages/cfdi/utils/src/xmlToJson.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { XmlCdfi } from '@cfdi/xml'; -import { readFileSync } from 'fs'; -import { xml2js } from 'xml-js'; - -export function XmlToJson(xmlPath: string): XmlCdfi { - const stringXml = readFileSync(xmlPath, 'utf8'); - const options = { - ignoreComment: true, - alwaysChildren: true, - compact: true, - /* elementNameFn: (val: string, parentElement: any) => { - let value = val; - console.log(parentElement) - if (parentElement === 'cfdi:Complemento') { - const tags = ['tfd:'] - for (const tag of tags) { - value = value.replace(tag, '').toLocaleLowerCase(); - } - } else { - value = value.replace('cfdi:', '').toLocaleLowerCase() - } - return value - }*/ - }; - const json = xml2js(stringXml, options) as unknown; - return json as XmlCdfi; -} diff --git a/packages/cfdi/rfc/ vitest.config.ts b/packages/cfdi/utils/vitest.config.mts similarity index 100% rename from packages/cfdi/rfc/ vitest.config.ts rename to packages/cfdi/utils/vitest.config.mts diff --git a/packages/cfdi/xml/package.json b/packages/cfdi/xml/package.json index 0da617b3..bc5407b3 100644 --- a/packages/cfdi/xml/package.json +++ b/packages/cfdi/xml/package.json @@ -72,7 +72,8 @@ "xml-js": "^1.6.11" }, "devDependencies": { - "rimraf": "^5.0.0", + "rimraf": "^6.0.1", + "@recreando/vite": "workspace:*", "@recreando/eslint-settings": "workspace:*", "@recreando/typescript-settings": "workspace:*", "@rushstack/eslint-config": "^4.0.2", diff --git a/packages/cfdi/xml2json/config/index.js b/packages/cfdi/xml2json/config/index.js index 41438f2f..5577fb55 100644 --- a/packages/cfdi/xml2json/config/index.js +++ b/packages/cfdi/xml2json/config/index.js @@ -1,2 +1,2 @@ 'use strict' -module.exports = require('./xml2json.cjs.production.min.js') +module.exports = require('./2json.cjs.production.min.js') diff --git a/packages/cfdi/xml2json/package.index.json b/packages/cfdi/xml2json/package.index.json index 8e8b3ece..9c64cc5e 100644 --- a/packages/cfdi/xml2json/package.index.json +++ b/packages/cfdi/xml2json/package.index.json @@ -1,5 +1,5 @@ { "main": "dist/index.js", "typings": "dist/index.d.ts", - "module": "dist/xml2json.esm.js" + "module": "dist/2json.esm.js" } diff --git a/packages/cfdi/xml2json/package.json b/packages/cfdi/xml2json/package.json index 4629ece7..3bd8f2be 100644 --- a/packages/cfdi/xml2json/package.json +++ b/packages/cfdi/xml2json/package.json @@ -1,7 +1,10 @@ { - "name": "@cfdi/xml2json", + "name": "@cfdi/2json", "version": "4.0.13", "license": "MIT", + "main": "./dist/index.js", + "typings": "./dist/index.d.ts", + "module": "./dist/2json.esm.production.min.js", "source": "./src/index.ts", "release": { "branches": [ @@ -11,15 +14,14 @@ ] }, "files": [ - "dist", - "src" + "dist" ], "engines": { "node": ">=10" }, "scripts": { "start": "tsdx watch", - "build": "tsdx build --env production --minify && rimraf ./dist/index.js ./dist/xml2json.cjs.development.* && npm run cp", + "build": "tsdx build --env production --minify && rimraf ./dist/index.js ./dist/2json.cjs.development.* && npm run cp", "cp": "cp ./config/index.js ./dist", "test": "vitest", "test:ci": "vitest run", @@ -56,19 +58,23 @@ }, "size-limit": [ { - "path": "dist/xml2json.cjs.production.min.js", + "path": "dist/2json.cjs.production.min.js", "limit": "10 KB" }, { - "path": "dist/xml2json.esm.js", + "path": "dist/2json.esm.js", "limit": "10 KB" } ], "dependencies": { - "xml-js": "^1.6.11" + "xml-js": "^1.6.11", + "@cfdi/types": "workspace:*", + "@cfdi/utils": "workspace:*", + "@cfdi/elements": "workspace:*" }, "devDependencies": { - "rimraf": "^5.0.0", + "rimraf": "^6.0.1", + "@recreando/vite": "workspace:*", "@recreando/eslint-settings": "workspace:*", "@recreando/jest": "workspace:*", "@recreando/typescript-settings": "workspace:*", diff --git a/packages/cfdi/xml2json/src/index.ts b/packages/cfdi/xml2json/src/index.ts index 354a0839..6f4bde17 100644 --- a/packages/cfdi/xml2json/src/index.ts +++ b/packages/cfdi/xml2json/src/index.ts @@ -1 +1 @@ -export { default as Transform } from './transform'; +export { XmlToJson } from './xmlToJson' diff --git a/packages/cfdi/xml2json/src/transform.ts b/packages/cfdi/xml2json/src/transform.ts deleted file mode 100644 index 36afb72f..00000000 --- a/packages/cfdi/xml2json/src/transform.ts +++ /dev/null @@ -1,124 +0,0 @@ -// @ts-ignore - -import { js2xml, json2xml, xml2js } from 'xml-js'; -import { readFileSync, writeFileSync } from 'fs'; - -type XsdElement = { - name: string; - minOccurs?: string; - elements?: XsdElement[]; - attributes?: Record; -}; - -type JsonSchema = { - $schema: string; - type: string; - properties: Record; - required: string[]; - additionalProperties: false; -}; - -function cleanObjectKeys(obj: any): any { - if (typeof obj !== 'object') { - return obj; - } - - if (Array.isArray(obj)) { - return obj.map(cleanObjectKeys); - } - - const cleanedObj = {}; - - for (const key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) { - if (key === '_attributes') { - const attributes = obj[key]; - for (const attrKey in attributes) { - if (Object.prototype.hasOwnProperty.call(attributes, attrKey)) { - if (!attrKey.includes(':')) { - // @ts-ignore - cleanedObj[`@${attrKey}`] = attributes[attrKey]; - } - } - } - } else { - const cleanedKey = key.split(':').pop(); - // @ts-ignore - cleanedObj[cleanedKey] = cleanObjectKeys(obj[key]); - } - } - } - - return cleanedObj; -} - -//export const CFDIXsd = LoadXsd.getInstance(); - -export default class Transform { - xml: any = {}; - xslPath = ''; - fullPath = ''; - constructor(xml: any) { - this.xml = xml; - } - - async run() { - const rear = await this.obtenerValores(this.xml['cfdi:Comprobante']); - return `||${rear.filter((e) => e).join('|')}||`; - } - - json(xslPath: string) { - this.xslPath = xslPath; - return this; - } - - warnings(type: string = 'silent') { - return this; - } - - private obtenerValores(obj: any, options: any = { tagKey: 'comprobante' }) { - const { tagKey = 'comprobante', ignore = false } = options; - let valores: (string | number)[] = []; - const omitKeys = [ - 'xmlns:cfdi', - 'xmlns:xsi', - 'xsi:schemaLocation', - 'Certificado', - 'xmlns:destruccion', - 'xmlns:iedu', - 'xmlns:pago10', - ]; - const miObjeto = { - comprobante: [ - '_attributes', - 'cfdi:InformacionGlobal', - 'cfdi:CfdiRelacionados', - 'cfdi:Emisor', - 'cfdi:Receptor', - 'cfdi:Conceptos', - 'cfdi:Impuestos', - 'cfdi:Complemento', - ], - concepto: [], - }; - - const ingnore: string[] = ['Sello']; - // @ts-ignore - const clavesOrdenadas = ignore ? Object.keys(obj) : miObjeto[tagKey]; - for (let key of clavesOrdenadas) { - if (!omitKeys.includes(key)) { - if (typeof obj[key] === 'object') { - valores = valores.concat( - this.obtenerValores(obj[key], { ignore: true }) - ); - } else { - if (!ingnore.includes(key)) { - valores.push(obj[key]); - } - } - } - } - - return valores; - } -} diff --git a/packages/cfdi/xml2json/src/xmlToJson.ts b/packages/cfdi/xml2json/src/xmlToJson.ts new file mode 100644 index 00000000..4a2aeca0 --- /dev/null +++ b/packages/cfdi/xml2json/src/xmlToJson.ts @@ -0,0 +1,69 @@ +import { XmlCdfi } from '@cfdi/types'; +import { readFileSync } from 'fs'; +import { ElementCompact, Element, Options, xml2js } from 'xml-js'; +import { isPath } from '@cfdi/utils'; + +function extractAttributes(element: Element | ElementCompact) { + const attributes: any = { ...element.attributes }; + + if (element.elements) { + element.elements.forEach((child: any) => { + const childData = child.elements ? extractAttributes(child) : { ...child.attributes }; + + // Verificar si el nombre del padre es el plural del hijo (ej. Conceptos -> Concepto) + const isPluralParent = element.name.toLowerCase().endsWith(child.name.toLowerCase() + 's'); // Verifica si el padre es plural + + // Si el nombre del padre es el plural del hijo, aseguramos que el hijo sea tratado como un array + if (isPluralParent) { + if (attributes[child.name]) { + if (Array.isArray(attributes[child.name])) { + attributes[child.name].push(childData); + } else { + attributes[child.name] = [attributes[child.name], childData]; + } + } else { + attributes[child.name] = [childData]; // Forzar a que sea un array + } + } else { + // Si no es plural, manejar como objeto único + if (attributes[child.name]) { + if (Array.isArray(attributes[child.name])) { + attributes[child.name].push(childData); + } else { + attributes[child.name] = [attributes[child.name], childData]; + } + } else { + attributes[child.name] = childData; + } + } + }); + } + + return attributes; +} + +export function XmlToJson(xmlPath: string, config?: {original: boolean}): XmlCdfi { + const original = Boolean(config?.original); + const stringXml = isPath(xmlPath) ? readFileSync(xmlPath, 'utf8') : xmlPath; + const options: Options.XML2JS = { + ignoreComment: false, + alwaysChildren: false, + compact: original, + ignoreDeclaration: false, + elementNameFn: (name: string) => original ? name : name.replace(/^.*:/, '') + }; + const json = xml2js(stringXml, options); + const onlyJson = () => { + const { declaration, elements } = json; + const comprobante_element = elements.find((el: any) => el.name === 'Comprobante'); + const comprobante = comprobante_element ? extractAttributes(comprobante_element) : {}; + return { + declaration: { + ...declaration.attributes + }, + 'Comprobante': comprobante + } + } + const result = original ? json : onlyJson(); + return result as XmlCdfi; +} diff --git a/packages/cfdi/xml2json/test/check.test.ts b/packages/cfdi/xml2json/test/check.test.ts deleted file mode 100644 index 6ac59191..00000000 --- a/packages/cfdi/xml2json/test/check.test.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { describe, expect, it, test } from 'vitest'; - -describe('blah', () => { - it('works', () => { - expect(2).toEqual(2); - }); -}); diff --git a/packages/cfdi/xml2json/test/xml-to-json.test.ts b/packages/cfdi/xml2json/test/xml-to-json.test.ts new file mode 100644 index 00000000..5f249dd8 --- /dev/null +++ b/packages/cfdi/xml2json/test/xml-to-json.test.ts @@ -0,0 +1,252 @@ +import { describe, expect, it, test } from 'vitest'; +import { XmlToJson } from '../src/xmlToJson' +import path from 'path'; + +const files_path = path.resolve(__dirname, '..', '..', '..', 'files','xml'); + +describe('xml to json', () => { + + it('json', () => { + const xml = path.resolve(files_path,'5E2D6AFF-2DD7-43D1-83D3-14C1ACA396D9.xml') + const json = XmlToJson(xml, {original: true}) + console.log(JSON.stringify(json, null, 2)) + + expect(json).toBeDefined(); + }); + it('json', () => { + const xml = path.resolve(files_path,'5E2D6AFF-2DD7-43D1-83D3-14C1ACA396D9.xml') + const json = XmlToJson(xml) + console.log(JSON.stringify(json, null, 2)) + + expect(json).toBeDefined(); + /* expect(json).toEqual({ + "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance", + "xmlns:cfdi": "http://www.sat.gob.mx/cfd/3", + "xsi:schemaLocation": " http://www.sat.gob.mx/cfd/3 http://www.sat.gob.mx/sitio_internet/cfd/3/cfdv33.xsd", + "Version": "3.3", + "Serie": "I", + "Folio": "ACAPDC-50", + "Fecha": "2021-02-17T02:12:14", + "Sello": "HGJg9lit0Gr54foL1tBT+h/HnpjO9WdqJJldQPKoRUYGgo27ImMBgMoyn31Kz0qOxZA2IbW7Hl5MmxKd5ImdT3nPCRlX7E7wKMUkUdLzb95DvUXl4y2jX33Cd1g65i/9YJB5ItGj8BMFq79K7Yyxm2U/Z+Txfv1zeSRkQk0HT4VyM7mCUnru55AH3OBe692c7X2AAna4eNViZBi+C7fA1zmA4NuI6qTpQdsFgEy+dkCZRFNJIBgZ6VHtcwolA5uBGPKjWyndADpiYuPLhzLWn2TQEkWXW0geGoNFfFnPukbXqQTlZyBCZiEcRfQKWCzqpv8SM4PBhnXbPR0lKTFD2g==", + "FormaPago": "04", + "NoCertificado": "30001000000400002326", + "Certificado": "MIIFijCCA3KgAwIBAgIUMzAwMDEwMDAwMDA0MDAwMDIzMjYwDQYJKoZIhvcNAQELBQAwggErMQ8wDQYDVQQDDAZBQyBVQVQxLjAsBgNVBAoMJVNFUlZJQ0lPIERFIEFETUlOSVNUUkFDSU9OIFRSSUJVVEFSSUExGjAYBgNVBAsMEVNBVC1JRVMgQXV0aG9yaXR5MSgwJgYJKoZIhvcNAQkBFhlvc2Nhci5tYXJ0aW5lekBzYXQuZ29iLm14MR0wGwYDVQQJDBQzcmEgY2VycmFkYSBkZSBjYWRpejEOMAwGA1UEEQwFMDYzNzAxCzAJBgNVBAYTAk1YMRkwFwYDVQQIDBBDSVVEQUQgREUgTUVYSUNPMREwDwYDVQQHDAhDT1lPQUNBTjERMA8GA1UELRMIMi41LjQuNDUxJTAjBgkqhkiG9w0BCQITFnJlc3BvbnNhYmxlOiBBQ0RNQS1TQVQwHhcNMTkwNTI5MTgxMTQ4WhcNMjMwNTI5MTgxMTQ4WjCBsTEdMBsGA1UEAxMUQUxCQSBYS0FSQUpBTSBNRU5ERVoxHTAbBgNVBCkTFEFMQkEgWEtBUkFKQU0gTUVOREVaMR0wGwYDVQQKExRBTEJBIFhLQVJBSkFNIE1FTkRFWjEWMBQGA1UELRMNWEFNQTYyMDIxMERRNTEbMBkGA1UEBRMSWEFNQTYyMDIxME1TTEtOTDA0MR0wGwYDVQQLExRBTEJBIFhLQVJBSkFNIE1FTkRFWjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK2HkPEtxQ+eUC6J428PU1OHXmr7cHtTlE5+Zk0eYykm1tVNivygT+kz7FTgw1b0yoFh96Xp3tXBSeAmsO+DShFFyYMB6x3lllIEmMZD5JbMaCpzyPMRzAq6850Am3/ShjigUPRorUhdLO1Yes2CyySzYlhA08fq3FmOCQ4eQmSPN7422T+Srhm6pFYaVjwS0MlskslCIi+ANqL5RWg75tNjpJzLQXPJyG0KU1AaqXgUT1e+aTn38AyNVQc30QAjiI50CTUq5MJFixoCB9vol421L7peEIAox3DRVw9H/wns9973XLedyuj5r8ZZfs4BinkVh+mykTyZE63rEv14uncCAwEAAaMdMBswDAYDVR0TAQH/BAIwADALBgNVHQ8EBAMCBsAwDQYJKoZIhvcNAQELBQADggIBAAR/KOWy29oitYdYzuGe1o+JOx/AowEJuu9S4/thFE9ugvHiceFK3cUD8v4M4/AS9D+NVrcMpJocNwpUsW/GiGFqOHNcFVnoSsaeEUMSIW949/0lCeMusR10VnpUaXmYFVYZkFV0PsDYUHna+lqmHDLwzSpfyU20UapgpkPe7Ib6/5CmsPQ7GcF7HBrshO8MyLyYSi193MTDKO86thq5iBnTrt4qyCgI7+Hpk770C4wMskpitf0Z9BUUrBxAk+ZoH1fw1ysZtK+v4vS/wquib2SK+MpvlYEfam/613EE/PEAlBTXPDaWTxporKJJxnv/iOsm97FmvRuwAnB13r5cxc/UJFjD2bFm38/2wOUG1H3srG8xhVSTKUYQjvJU+V10dQe0O/QkWx9sPHlY67CdB5SlsCBl0mkB7mA2fsPyuP28EQtEenjm48wpBXgb4exOYq4flMPZ7LpO79SmnQPSeTIt8CIlc0HomkMCl30HQzGSMoItxGSO9Rrx3ogpNNcdhpD6p59TkYd2zM7argPP/lfbl7/3EbbN5miC1JgNgRfAq02CREdMEAK9Z6ErVWUUl8gd0Tva/C3ykCJdTdNgfEI8gONS2ky/axDNDHL8d4+I6tGItfM4drtukL9Trh8/5RPuPvKHg1tKonDp50mxu4ubXBDF2LAnsOshAB44fn+r", + "SubTotal": "5000", + "Descuento": "0", + "Moneda": "MXN", + "Total": "5000", + "TipoDeComprobante": "I", + "MetodoPago": "PUE", + "LugarExpedicion": "77728", + "Emisor": { + "Rfc": "XAMA620210DQ5", + "Nombre": "AMIR MISAEL MARIN COH", + "RegimenFiscal": "621" + }, + "Receptor": { + "Nombre": "AMIR MISAEL MARIN", + "Rfc": "XAXX010101000", + "UsoCFDI": "G03" + }, + "Conceptos": { + "Concepto": [ + { + "ClaveProdServ": "86121500", + "Cantidad": "1", + "ClaveUnidad": "E48", + "Unidad": "Pieza", + "Descripcion": "Mensualidad - diciembre", + "ValorUnitario": "5000", + "Importe": "5000", + "Descuento": "0" + }, + { + "ClaveProdServ": "86121500", + "Cantidad": "1", + "ClaveUnidad": "E48", + "Unidad": "Pieza", + "Descripcion": "Mensualidad - diciembre", + "ValorUnitario": "5000", + "Importe": "5000", + "Descuento": "0" + } + ] + }, + "Impuestos": { + "TotalImpuestosTrasladados": "0.16", + "Traslados": { + "Traslado": [ + { + "Base": "1", + "Impuesto": "002", + "TipoFactor": "Tasa", + "TasaOCuota": "0.160000", + "Importe": "0.16" + } + ] + } + }, + "Complemento": { + "ImpuestosLocales": { + "version": "1.0", + "TotaldeRetenciones": "0.000000", + "TotaldeTraslados": "48.000000", + "TrasladosLocales": { + "ImpLocTrasladado": "IMPUESTO DE HOSPEDAJE", + "TasadeTraslado": "4", + "Importe": "48.00" + } + }, + "CartaPorte": { + "RegistroISTMO": "Sí", + "UbicacionPoloOrigen": "01", + "UbicacionPoloDestino": "01", + "Version": "3.1", + "IdCCP": "CCCBCD94-870A-4332-A52A-A52AA52AA52A", + "TranspInternac": "No", + "TotalDistRec": "1", + "Ubicaciones": { + "Ubicacion": [ + { + "TipoUbicacion": "Origen", + "IDUbicacion": "OR101010", + "RFCRemitenteDestinatario": "URE180429TM6", + "NombreRemitenteDestinatario": "NombreRemitenteDestinatario1", + "FechaHoraSalidaLlegada": "2023-08-01T00:00:00", + "Domicilio": { + "Calle": "Calle1", + "NumeroExterior": "211", + "NumeroInterior": "212", + "Colonia": "1957", + "Localidad": "13", + "Referencia": "casa blanca", + "Municipio": "011", + "Estado": "CMX", + "Pais": "MEX", + "CodigoPostal": "13250" + } + }, + { + "TipoUbicacion": "Destino", + "IDUbicacion": "DE202020", + "RFCRemitenteDestinatario": "URE180429TM6", + "NombreRemitenteDestinatario": "NombreRemitenteDestinatario2", + "FechaHoraSalidaLlegada": "2023-08-01T00:00:01", + "DistanciaRecorrida": "1", + "Domicilio": { + "Calle": "Calle2", + "NumeroExterior": "214", + "NumeroInterior": "215", + "Colonia": "0347", + "Localidad": "23", + "Referencia": "casa negra", + "Municipio": "004", + "Estado": "COA", + "Pais": "MEX", + "CodigoPostal": "25350" + } + } + ] + }, + "Mercancias": { + "PesoBrutoTotal": "1.0", + "UnidadPeso": "XBX", + "NumTotalMercancias": "1", + "LogisticaInversaRecoleccionDevolucion": "Sí", + "Mercancia": [ + { + "FraccionArancelaria": "6309000100", + "BienesTransp": "11121900", + "Descripcion": "Accesorios de equipo de telefonía", + "Cantidad": "1.0", + "ClaveUnidad": "XBX", + "MaterialPeligroso": "No", + "PesoEnKg": "1", + "DenominacionGenericaProd": "DenominacionGenericaProd1", + "DenominacionDistintivaProd": "DenominacionDistintivaProd1", + "Fabricante": "Fabricante1", + "FechaCaducidad": "2003-04-02", + "LoteMedicamento": "LoteMedic1", + "FormaFarmaceutica": "01", + "CondicionesEspTransp": "01", + "RegistroSanitarioFolioAutorizacion": "RegistroSanita1", + "CantidadTransporta": { + "Cantidad": "1", + "IDOrigen": "OR101010", + "IDDestino": "DE202020" + } + } + ], + "Autotransporte": { + "PermSCT": "TPAF01", + "NumPermisoSCT": "NumPermisoSCT1", + "IdentificacionVehicular": { + "ConfigVehicular": "VL", + "PesoBrutoVehicular": "1", + "PlacaVM": "plac892", + "AnioModeloVM": "2020" + }, + "Seguros": { + "AseguraRespCivil": "AseguraRespCivil", + "PolizaRespCivil": "123456789" + }, + "Remolques": { + "Remolque": [ + { + "SubTipoRem": "CTR004", + "Placa": "VL45K98" + } + ] + } + } + }, + "FiguraTransporte": { + "TiposFigura": { + "TipoFigura": "01", + "RFCFigura": "URE180429TM6", + "NumLicencia": "NumLicencia1", + "NombreFigura": "NombreFigura1", + "Domicilio": { + "Calle": "Calle1", + "NumeroExterior": "NumeroExterior1", + "NumeroInterior": "NumeroInterior1", + "Colonia": "Colonia1", + "Localidad": "Localidad1", + "Referencia": "Referencia1", + "Municipio": "Municipio1", + "Estado": "Estado1", + "Pais": "AFG", + "CodigoPostal": "CodigoPosta1" + } + } + } + }, + "VehiculoUsado": { + "Version": "1.0", + "montoAdquisicion": "10000.00", + "montoEnajenacion": "0.00", + "claveVehicular": "AAAABBB", + "marca": "FORD", + "tipo": "Mustang", + "modelo": "1989", + "numeroMotor": "123123123", + "numeroSerie": "12312323", + "NIV": "1234ASD", + "valor": "5000.00" + }, + "TimbreFiscalDigital": { + "xsi:schemaLocation": "http://www.sat.gob.mx/TimbreFiscalDigital http://www.sat.gob.mx/sitio_internet/cfd/TimbreFiscalDigital/TimbreFiscalDigitalv11.xsd", + "Version": "1.1", + "UUID": "5e2d6aff-2dd7-43d1-83d3-14c1aca396d9", + "FechaTimbrado": "2021-02-17T14:13:10", + "RfcProvCertif": "SPR190613I52", + "SelloCFD": "HGJg9lit0Gr54foL1tBT+h/HnpjO9WdqJJldQPKoRUYGgo27ImMBgMoyn31Kz0qOxZA2IbW7Hl5MmxKd5ImdT3nPCRlX7E7wKMUkUdLzb95DvUXl4y2jX33Cd1g65i/9YJB5ItGj8BMFq79K7Yyxm2U/Z+Txfv1zeSRkQk0HT4VyM7mCUnru55AH3OBe692c7X2AAna4eNViZBi+C7fA1zmA4NuI6qTpQdsFgEy+dkCZRFNJIBgZ6VHtcwolA5uBGPKjWyndADpiYuPLhzLWn2TQEkWXW0geGoNFfFnPukbXqQTlZyBCZiEcRfQKWCzqpv8SM4PBhnXbPR0lKTFD2g==", + "NoCertificadoSAT": "30001000000400002495", + "SelloSAT": "cftZzLlTrJFLWOV9hUqy7NvnTqcId5UwZxybaztZYVgFWF46rV3uCEtxN+ZPKAJOhuYZs2FJlz1e8pS1uxl4lyViSdBELqxeZMeuICf6GqwneLe0QEY39jYHvpaGFnF9AT1KyXWdO2JQIdbiH/dbX2XV498hnnUrEaJbQOl8ovb5ZebTueu4zMcj8QE9nqmEavb7PB3O0w9vvmNl4hoo6XkCvDArlW1FlJdpaFaHDnjfjt+SriyZAszwjaUFvgkgHU7MJCYh37HQd1qVLLbHeGlwiwGOhQ9vu4ziu6zZ9wpb1lPHWfVCymFTAM3LaWuUvA19cReTEgR9yHX1OcNlOg==", + "xmlns:tfd": "http://www.sat.gob.mx/TimbreFiscalDigital", + "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance" + } + } + }); */ + }); +}); diff --git a/packages/cfdi/xml2json/vitest.config.mts b/packages/cfdi/xml2json/vitest.config.mts new file mode 100644 index 00000000..092e7934 --- /dev/null +++ b/packages/cfdi/xml2json/vitest.config.mts @@ -0,0 +1,32 @@ +import { defineConfig } from 'vitest/config'; +import tsconfigPaths from 'vite-tsconfig-paths'; +import { resolve } from 'path'; + +export default defineConfig({ + test: { + reporters: ['default'], + coverage: { + include: ['src/**/*.ts'], + exclude: ['**/node_modules/**', '**/test/**'], // Excluir node_modules y la carpeta de tests + }, + alias: { + '@cfdi/xsd': resolve(__dirname, '../xsd/src'), + '@cfdi/complementos': resolve(__dirname, '../complementos/src'), + '@cfdi/csd': resolve(__dirname, '../csd/src'), + '@cfdi/utils': resolve(__dirname, '../utils/src'), + '@saxon-he/cli': resolve(__dirname, '../../clir/saxon-he/src'), + }, + }, + plugins: [ + tsconfigPaths(), + ], + resolve: { + alias: { + '@cfdi/xsd': resolve(__dirname, '../xsd/src'), + '@cfdi/complementos': resolve(__dirname, '../complementos/src'), + '@cfdi/csd': resolve(__dirname, '../csd/src'), + '@saxon-he/cli': resolve(__dirname, '../../clir/saxon-he/src'), + '@cfdi/utils': resolve(__dirname, '../utils/src'), + }, + }, +}); diff --git a/packages/cfdi/xsd/ vitest.config.ts b/packages/cfdi/xsd/ vitest.config.ts deleted file mode 100644 index f2a4ec65..00000000 --- a/packages/cfdi/xsd/ vitest.config.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defineConfig } from 'vitest/config'; -import tsconfigPaths from 'vite-tsconfig-paths'; // only if you are using custom tsconfig paths - -export default defineConfig({ - test: {}, - plugins: [tsconfigPaths()], // only if you are using custom tsconfig paths -}); diff --git a/packages/cfdi/xsd/package.json b/packages/cfdi/xsd/package.json index c4f05198..99c42757 100644 --- a/packages/cfdi/xsd/package.json +++ b/packages/cfdi/xsd/package.json @@ -2,6 +2,9 @@ "name": "@cfdi/xsd", "version": "4.0.15", "license": "MIT", + "main": "./dist/index.js", + "typings": "./dist/index.d.ts", + "module": "./dist/xsd.esm.production.min.js", "source": "./src/index.ts", "release": { "branches": [ @@ -11,8 +14,7 @@ ] }, "files": [ - "dist", - "src" + "dist" ], "engines": { "node": ">=10" @@ -71,9 +73,10 @@ "xslt": "^0.9.1" }, "devDependencies": { - "rimraf": "^5.0.0", + "rimraf": "^6.0.1", "@recreando/eslint-settings": "workspace:*", "@recreando/jest": "workspace:*", + "@recreando/vite": "workspace:*", "@recreando/typescript-settings": "workspace:*", "@rushstack/eslint-config": "^4.0.2", "@rushstack/heft": "^0.68.6", diff --git a/packages/cfdi/transform/ vitest.config.ts b/packages/cfdi/xsd/vitest.config.mts similarity index 100% rename from packages/cfdi/transform/ vitest.config.ts rename to packages/cfdi/xsd/vitest.config.mts diff --git a/packages/clir/openssl/ vitest.config.ts b/packages/clir/openssl/ vitest.config.ts deleted file mode 100644 index f2a4ec65..00000000 --- a/packages/clir/openssl/ vitest.config.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defineConfig } from 'vitest/config'; -import tsconfigPaths from 'vite-tsconfig-paths'; // only if you are using custom tsconfig paths - -export default defineConfig({ - test: {}, - plugins: [tsconfigPaths()], // only if you are using custom tsconfig paths -}); diff --git a/packages/clir/openssl/package.json b/packages/clir/openssl/package.json index 85ea6329..17eafe08 100644 --- a/packages/clir/openssl/package.json +++ b/packages/clir/openssl/package.json @@ -20,7 +20,7 @@ "test:coverage": "vitest --coverage run", "test:ui": "vitest --ui", "lint": "tsdx lint", - "prepare": "tsdx build", + "prepare": "npm run build", "size": "size-limit", "analyze": "size-limit --why" }, diff --git a/packages/cfdi/utils/ vitest.config.ts b/packages/clir/openssl/vitest.config.mts similarity index 100% rename from packages/cfdi/utils/ vitest.config.ts rename to packages/clir/openssl/vitest.config.mts diff --git a/packages/clir/saxon-he/ vitest.config.ts b/packages/clir/saxon-he/ vitest.config.ts deleted file mode 100644 index f2a4ec65..00000000 --- a/packages/clir/saxon-he/ vitest.config.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defineConfig } from 'vitest/config'; -import tsconfigPaths from 'vite-tsconfig-paths'; // only if you are using custom tsconfig paths - -export default defineConfig({ - test: {}, - plugins: [tsconfigPaths()], // only if you are using custom tsconfig paths -}); diff --git a/packages/clir/saxon-he/package.json b/packages/clir/saxon-he/package.json index 98ca5a2f..1212ac7f 100644 --- a/packages/clir/saxon-he/package.json +++ b/packages/clir/saxon-he/package.json @@ -20,7 +20,7 @@ "test:coverage": "vitest --coverage run", "test:ui": "vitest --ui", "lint": "tsdx lint", - "prepare": "tsdx build", + "prepare": "npm run build", "size": "size-limit", "analyze": "size-limit --why" }, diff --git a/packages/clir/saxon-he/src/cli-share.ts b/packages/clir/saxon-he/src/cli-share.ts index 37ebd5d0..1b73c30f 100644 --- a/packages/clir/saxon-he/src/cli-share.ts +++ b/packages/clir/saxon-he/src/cli-share.ts @@ -212,7 +212,7 @@ export class CliShare { */ public s(filename: string): this { if (!existsSync(filename)) { - throw new Error('No se puede encontrar el xml processar.'); + throw new Error('No se puede encontrar el xml processar. => ' + filename); } this.commandline += ` -s:${filename}`; this.commandlineArray.push(`-s:${filename}`); diff --git a/packages/cfdi/xml2json/ vitest.config.ts b/packages/clir/saxon-he/vitest.config.mts similarity index 100% rename from packages/cfdi/xml2json/ vitest.config.ts rename to packages/clir/saxon-he/vitest.config.mts diff --git a/packages/files/xml/5E2D6AFF-2DD7-43D1-83D3-14C1ACA396D9.xml b/packages/files/xml/5E2D6AFF-2DD7-43D1-83D3-14C1ACA396D9.xml index 10ca8e13..b309b406 100644 --- a/packages/files/xml/5E2D6AFF-2DD7-43D1-83D3-14C1ACA396D9.xml +++ b/packages/files/xml/5E2D6AFF-2DD7-43D1-83D3-14C1ACA396D9.xml @@ -12,8 +12,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/rigs/typescript/profiles/default/tsconfig-base.json b/rigs/typescript/profiles/default/tsconfig-base.json index 7261a0c1..75f39e56 100644 --- a/rigs/typescript/profiles/default/tsconfig-base.json +++ b/rigs/typescript/profiles/default/tsconfig-base.json @@ -78,12 +78,27 @@ "@clir/openssl": [ "./node_modules/@clir/openssl/src" ], + "@saxon-he/cli/*": [ + "./node_modules/@saxon-he/cli/src/*" + ], "@saxon-he/cli": [ "./node_modules/@saxon-he/cli/src" ], - "@saxon-he/cli/*": [ - "./node_modules/@saxon-he/cli/src/*" - ] + "@cfdi/utils/*": [ + "./node_modules/@cfdi/utils/src/*" + ], + "@cfdi/utils": [ + "./node_modules/@cfdi/utils/src" + ], + "@cfdi/2json/*": [ + "./node_modules/@cfdi/2json/src/*" + ], + "@cfdi/2json": [ + "./node_modules/@cfdi/2json/src" + ], + "@recreando/vite": [ + "./node_modules/@recreando/vite" + ], } }, diff --git a/rigs/vite/index.ts b/rigs/vite/index.ts index cdfdee3d..7edec7b2 100644 --- a/rigs/vite/index.ts +++ b/rigs/vite/index.ts @@ -1,3 +1,5 @@ -import viteConfig from './vitest.config'; +import viteTestConfig from './vitest.config.mts'; -export default viteConfig; \ No newline at end of file +export { + viteTestConfig +} \ No newline at end of file diff --git a/rigs/vite/package.json b/rigs/vite/package.json index fd521ef4..7b06fe5f 100644 --- a/rigs/vite/package.json +++ b/rigs/vite/package.json @@ -1,9 +1,14 @@ { "name": "@recreando/vite", "version": "1.0.0", - "main": "dist/index.js", - "types": "dist/index.d.ts", + "type": "module", + "main": "./vite.config.mts", + "exports": { + ".": "./vite.config.mts" + }, "scripts": { + "build": "", + "_phase:build": "", "test": "vitest", "test:ci": "vitest run", "test:coverage": "vitest run --coverage", diff --git a/rush.json b/rush.json index 05d5af64..e6cd8e56 100644 --- a/rush.json +++ b/rush.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/rush/v5/rush.schema.json", - "rushVersion": "5.138.0", + "rushVersion": "5.140.1", "pnpmVersion": "9.9.0", "pnpmOptions": { "strictPeerDependencies": false, @@ -183,9 +183,9 @@ "shouldPublish": true }, { - "packageName": "@cfdi/xml2json", + "packageName": "@cfdi/2json", "projectFolder": "packages/cfdi/xml2json", - "versionPolicyName": "xml2json", + "versionPolicyName": "2json", "reviewCategory": "libraries", "shouldPublish": true },