@ama-sdk/schematics 12.1.1 → 12.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -2
- package/migration.json +5 -0
- package/package.json +10 -10
- package/schematics/ng-update/index.d.ts +5 -1
- package/schematics/ng-update/index.d.ts.map +1 -1
- package/schematics/ng-update/index.js +13 -0
- package/schematics/ng-update/index.js.map +1 -1
- package/schematics/ng-update/typescript/index.d.ts +4 -0
- package/schematics/ng-update/typescript/index.d.ts.map +1 -1
- package/schematics/ng-update/typescript/index.js +12 -0
- package/schematics/ng-update/typescript/index.js.map +1 -1
- package/schematics/ng-update/typescript/v12.1/clean-packagejson-exports.d.ts +7 -0
- package/schematics/ng-update/typescript/v12.1/clean-packagejson-exports.d.ts.map +1 -0
- package/schematics/ng-update/typescript/v12.1/clean-packagejson-exports.js +44 -0
- package/schematics/ng-update/typescript/v12.1/clean-packagejson-exports.js.map +1 -0
- package/schematics/typescript/core/openapi-codegen-typescript/target/typescriptFetch-openapi-generator-tests.jar +0 -0
- package/schematics/typescript/core/openapi-codegen-typescript/target/typescriptFetch-openapi-generator.jar +0 -0
- package/schematics/typescript/shell/templates/base/package.json.template +4 -10
- package/schematics/typescript/shell/templates/base/src/fixtures/jest/package.json +1 -3
- package/schematics/typescript/shell/templates/base/src/helpers/package.json +1 -3
- package/schematics/typescript/shell/templates/base/src/spec/package.json +1 -3
package/README.md
CHANGED
|
@@ -119,9 +119,27 @@ For more information, check out OpenAPI's documentation on [parameter serializat
|
|
|
119
119
|
It is important to note that, as in OpenAPI 3.1, we only support simple arrays and simple non-nested objects in path and query parameters.
|
|
120
120
|
The parameter types that we support are stored in `SupportedParamType` in the package `@ama-sdk/core`.
|
|
121
121
|
|
|
122
|
+
To enable the parameter serialization within your API, you can set the option `enableParameterSerialization` to `true` (its current default value is `false`) in the constructor. For example:
|
|
123
|
+
```typescript
|
|
124
|
+
const apiConfig: ApiClient = new ApiFetchClient(
|
|
125
|
+
{
|
|
126
|
+
basePath: 'https://petstore3.swagger.io/api/v3',
|
|
127
|
+
enableParameterSerialization: true
|
|
128
|
+
}
|
|
129
|
+
);
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
We provide the methods `serializeQueryParams` and `serializePathParams` to serialize the values of query and path parameters. However, it is also possible to pass
|
|
133
|
+
your own serialization methods if the ones provided do not meet your requirements. These custom methods can be passed as a parameter to the API client constructor.
|
|
134
|
+
|
|
135
|
+
> [!NOTE]
|
|
136
|
+
> If you have enabled the serialization mechanism and want to update the query parameters within a `RequestPlugin`, these must be serialized before being returned to the
|
|
137
|
+
> API to prepare the URL. You can do so by using the serialization method that we provide (`serializeQueryParams`) or your own serialization method. The value of the query
|
|
138
|
+
> parameters returned by the `RequestPlugin` will be forwarded to the next plugin and the last value will be directly added to the URL.
|
|
139
|
+
|
|
122
140
|
> [!NOTE]
|
|
123
|
-
>
|
|
124
|
-
>
|
|
141
|
+
> It is important to note that special characters have to be encoded, as required by RFC6570 and RFC3986. Please take this into account if you choose to use your own
|
|
142
|
+
> serialization methods.
|
|
125
143
|
|
|
126
144
|
#### Light SDK
|
|
127
145
|
|
package/migration.json
CHANGED
|
@@ -25,6 +25,11 @@
|
|
|
25
25
|
"version": "11.4.0-alpha.0",
|
|
26
26
|
"description": "Updates of @ama-sdk/schematics to v11.4.*",
|
|
27
27
|
"factory": "./schematics/ng-update/index#updateV11_4"
|
|
28
|
+
},
|
|
29
|
+
"migration-v12_1_3": {
|
|
30
|
+
"version": "12.1.3",
|
|
31
|
+
"description": "Updates of @ama-sdk/schematics to v12.1.3",
|
|
32
|
+
"factory": "./schematics/ng-update/index#updateV12_1_3"
|
|
28
33
|
}
|
|
29
34
|
}
|
|
30
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ama-sdk/schematics",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.7",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -63,12 +63,12 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@ama-sdk/core": "^12.1.
|
|
66
|
+
"@ama-sdk/core": "^12.1.7",
|
|
67
67
|
"@angular-devkit/core": "^19.0.0",
|
|
68
68
|
"@angular-devkit/schematics-cli": "^19.0.0",
|
|
69
69
|
"@angular/cli": "^19.0.0",
|
|
70
|
-
"@o3r/schematics": "^12.1.
|
|
71
|
-
"@o3r/telemetry": "^12.1.
|
|
70
|
+
"@o3r/schematics": "^12.1.7",
|
|
71
|
+
"@o3r/telemetry": "^12.1.7",
|
|
72
72
|
"@openapitools/openapi-generator-cli": "^2.15.0",
|
|
73
73
|
"openapi-types": "^12.0.0",
|
|
74
74
|
"ts-node": "~10.9.2",
|
|
@@ -87,17 +87,17 @@
|
|
|
87
87
|
"tslib": "^2.6.2"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"@ama-sdk/core": "^12.1.
|
|
90
|
+
"@ama-sdk/core": "^12.1.7",
|
|
91
91
|
"@angular-devkit/schematics-cli": "~19.2.0",
|
|
92
92
|
"@angular/cli": "~19.2.0",
|
|
93
93
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
|
94
94
|
"@nx/eslint-plugin": "~20.4.0",
|
|
95
95
|
"@nx/jest": "~20.4.0",
|
|
96
|
-
"@o3r/build-helpers": "^12.1.
|
|
97
|
-
"@o3r/eslint-plugin": "^12.1.
|
|
98
|
-
"@o3r/schematics": "^12.1.
|
|
99
|
-
"@o3r/telemetry": "^12.1.
|
|
100
|
-
"@o3r/test-helpers": "^12.1.
|
|
96
|
+
"@o3r/build-helpers": "^12.1.7",
|
|
97
|
+
"@o3r/eslint-plugin": "^12.1.7",
|
|
98
|
+
"@o3r/schematics": "^12.1.7",
|
|
99
|
+
"@o3r/telemetry": "^12.1.7",
|
|
100
|
+
"@o3r/test-helpers": "^12.1.7",
|
|
101
101
|
"@openapitools/openapi-generator-cli": "~2.17.0",
|
|
102
102
|
"@schematics/angular": "~19.2.0",
|
|
103
103
|
"@stylistic/eslint-plugin": "~3.1.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Rule } from '@angular-devkit/schematics';
|
|
2
2
|
/**
|
|
3
3
|
* update of Otter library V10.0
|
|
4
4
|
*/
|
|
@@ -19,4 +19,8 @@ export declare function updateV11_0(): Rule;
|
|
|
19
19
|
* update of Otter library V11.4
|
|
20
20
|
*/
|
|
21
21
|
export declare function updateV11_4(): Rule;
|
|
22
|
+
/**
|
|
23
|
+
* Update of Ama-sdk library V12.1.3
|
|
24
|
+
*/
|
|
25
|
+
export declare function updateV12_1_3(): Rule;
|
|
22
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-update/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-update/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EACV,MAAM,4BAA4B,CAAC;AAapC;;GAEG;AAEH,wBAAgB,WAAW,IAAI,IAAI,CAQlC;AAED;;GAEG;AAEH,wBAAgB,WAAW,IAAI,IAAI,CAQlC;AAED;;GAEG;AAEH,wBAAgB,WAAW,IAAI,IAAI,CAQlC;AAED;;GAEG;AAEH,wBAAgB,WAAW,IAAI,IAAI,CAQlC;AAED;;GAEG;AAEH,wBAAgB,WAAW,IAAI,IAAI,CAQlC;AAED;;GAEG;AAEH,wBAAgB,aAAa,IAAI,IAAI,CAQpC"}
|
|
@@ -5,6 +5,7 @@ exports.updateV10_1 = updateV10_1;
|
|
|
5
5
|
exports.updateV10_3 = updateV10_3;
|
|
6
6
|
exports.updateV11_0 = updateV11_0;
|
|
7
7
|
exports.updateV11_4 = updateV11_4;
|
|
8
|
+
exports.updateV12_1_3 = updateV12_1_3;
|
|
8
9
|
const is_typescript_project_1 = require("../helpers/is-typescript-project");
|
|
9
10
|
const typescript_1 = require("./typescript");
|
|
10
11
|
/**
|
|
@@ -67,4 +68,16 @@ function updateV11_4() {
|
|
|
67
68
|
return tree;
|
|
68
69
|
};
|
|
69
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Update of Ama-sdk library V12.1.3
|
|
73
|
+
*/
|
|
74
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- function name contains the version
|
|
75
|
+
function updateV12_1_3() {
|
|
76
|
+
return (tree, context) => {
|
|
77
|
+
if ((0, is_typescript_project_1.isTypescriptSdk)(tree)) {
|
|
78
|
+
return (0, typescript_1.updateV12_1_3)()(tree, context);
|
|
79
|
+
}
|
|
80
|
+
return tree;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
70
83
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-update/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-update/index.ts"],"names":[],"mappings":";;AAmBA,kCAQC;AAMD,kCAQC;AAMD,kCAQC;AAMD,kCAQC;AAMD,kCAQC;AAMD,sCAQC;AA9FD,4EAE0C;AAC1C,6CAOsB;AAEtB;;GAEG;AACH,sGAAsG;AACtG,SAAgB,WAAW;IACzB,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;QACvB,IAAI,IAAA,uCAAe,EAAC,IAAI,CAAC,EAAE,CAAC;YAC1B,OAAO,IAAA,wBAAa,GAAE,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACxC,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,sGAAsG;AACtG,S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CAAC;YAC1B,OAAO,IAAA,0BAAe,GAAE,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC1C,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -19,4 +19,8 @@ export declare function updateV11_0(): Rule;
|
|
|
19
19
|
* Update of Ama-sdk library V11.4
|
|
20
20
|
*/
|
|
21
21
|
export declare function updateV11_4(): Rule;
|
|
22
|
+
/**
|
|
23
|
+
* Update of Ama-sdk library V12.1.3
|
|
24
|
+
*/
|
|
25
|
+
export declare function updateV12_1_3(): Rule;
|
|
22
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/ng-update/typescript/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,IAAI,EACL,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/ng-update/typescript/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,IAAI,EACL,MAAM,4BAA4B,CAAC;AAyBpC;;GAEG;AAEH,wBAAgB,WAAW,IAAI,IAAI,CAQlC;AAED;;GAEG;AAEH,wBAAgB,WAAW,IAAI,IAAI,CAMlC;AAED;;GAEG;AAEH,wBAAgB,WAAW,IAAI,IAAI,CAMlC;AAED;;GAEG;AAEH,wBAAgB,WAAW,IAAI,IAAI,CAOlC;AAED;;GAEG;AAEH,wBAAgB,WAAW,IAAI,IAAI,CAMlC;AAED;;GAEG;AAEH,wBAAgB,aAAa,IAAI,IAAI,CAMpC"}
|
|
@@ -5,6 +5,7 @@ exports.updateV10_1 = updateV10_1;
|
|
|
5
5
|
exports.updateV10_3 = updateV10_3;
|
|
6
6
|
exports.updateV11_0 = updateV11_0;
|
|
7
7
|
exports.updateV11_4 = updateV11_4;
|
|
8
|
+
exports.updateV12_1_3 = updateV12_1_3;
|
|
8
9
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
9
10
|
const script_removal_1 = require("./v10.0/script-removal");
|
|
10
11
|
const add_presets_renovate_1 = require("./v10.1/add-presets-renovate");
|
|
@@ -12,6 +13,7 @@ const update_openapiversion_1 = require("./v10.3/update-openapiversion");
|
|
|
12
13
|
const update_openapitools_1 = require("./v11.0/update-openapitools");
|
|
13
14
|
const update_regen_script_1 = require("./v11.0/update-regen-script");
|
|
14
15
|
const create_gitattributes_1 = require("./v11.4/create-gitattributes");
|
|
16
|
+
const clean_packagejson_exports_1 = require("./v12.1/clean-packagejson-exports");
|
|
15
17
|
/**
|
|
16
18
|
* update of Otter library V10.0
|
|
17
19
|
*/
|
|
@@ -65,4 +67,14 @@ function updateV11_4() {
|
|
|
65
67
|
];
|
|
66
68
|
return (0, schematics_1.chain)(updateRules);
|
|
67
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Update of Ama-sdk library V12.1.3
|
|
72
|
+
*/
|
|
73
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- function name contains the version
|
|
74
|
+
function updateV12_1_3() {
|
|
75
|
+
const updateRules = [
|
|
76
|
+
clean_packagejson_exports_1.clearPackageJsonExports
|
|
77
|
+
];
|
|
78
|
+
return (0, schematics_1.chain)(updateRules);
|
|
79
|
+
}
|
|
68
80
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../schematics/ng-update/typescript/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../schematics/ng-update/typescript/index.ts"],"names":[],"mappings":";;AAgCA,kCAQC;AAMD,kCAMC;AAMD,kCAMC;AAMD,kCAOC;AAMD,kCAMC;AAMD,sCAMC;AArGD,2DAGoC;AACpC,2DAIgC;AAChC,uEAEsC;AACtC,yEAEuC;AACvC,qEAEqC;AACrC,qEAEqC;AACrC,uEAEsC;AACtC,iFAE2C;AAE3C;;GAEG;AACH,sGAAsG;AACtG,SAAgB,WAAW;IACzB,MAAM,WAAW,GAAW;QAC1B,IAAA,wCAAuB,GAAE;QACzB,IAAA,uCAAsB,GAAE;QACxB,IAAA,mCAAkB,GAAE;KACrB,CAAC;IAEF,OAAO,IAAA,kBAAK,EAAC,WAAW,CAAC,CAAC;AAC5B,CAAC;AAED;;GAEG;AACH,sGAAsG;AACtG,SAAgB,WAAW;IACzB,MAAM,WAAW,GAAW;QAC1B,IAAA,yCAAkB,GAAE;KACrB,CAAC;IAEF,OAAO,IAAA,kBAAK,EAAC,WAAW,CAAC,CAAC;AAC5B,CAAC;AAED;;GAEG;AACH,sGAAsG;AACtG,SAAgB,WAAW;IACzB,MAAM,WAAW,GAAW;QAC1B,IAAA,qDAA6B,GAAE;KAChC,CAAC;IAEF,OAAO,IAAA,kBAAK,EAAC,WAAW,CAAC,CAAC;AAC5B,CAAC;AAED;;GAEG;AACH,sGAAsG;AACtG,SAAgB,WAAW;IACzB,MAAM,WAAW,GAAW;QAC1B,uCAAiB;QACjB,4CAAsB;KACvB,CAAC;IAEF,OAAO,IAAA,kBAAK,EAAC,WAAW,CAAC,CAAC;AAC5B,CAAC;AAED;;GAEG;AACH,sGAAsG;AACtG,SAAgB,WAAW;IACzB,MAAM,WAAW,GAAW;QAC1B,8CAAuB;KACxB,CAAC;IAEF,OAAO,IAAA,kBAAK,EAAC,WAAW,CAAC,CAAC;AAC5B,CAAC;AAED;;GAEG;AACH,sGAAsG;AACtG,SAAgB,aAAa;IAC3B,MAAM,WAAW,GAAW;QAC1B,mDAAuB;KACxB,CAAC;IAEF,OAAO,IAAA,kBAAK,EAAC,WAAW,CAAC,CAAC;AAC5B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
/**
|
|
3
|
+
* Update the package.json files generated in the Shell of the typescript SDK to support `bundler`
|
|
4
|
+
* @param tree
|
|
5
|
+
*/
|
|
6
|
+
export declare const clearPackageJsonExports: Rule;
|
|
7
|
+
//# sourceMappingURL=clean-packagejson-exports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clean-packagejson-exports.d.ts","sourceRoot":"","sources":["../../../../../schematics/ng-update/typescript/v12.1/clean-packagejson-exports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;AAQpC;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,IA0CrC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.clearPackageJsonExports = void 0;
|
|
4
|
+
const schematics_1 = require("@o3r/schematics");
|
|
5
|
+
/**
|
|
6
|
+
* Update the package.json files generated in the Shell of the typescript SDK to support `bundler`
|
|
7
|
+
* @param tree
|
|
8
|
+
*/
|
|
9
|
+
const clearPackageJsonExports = (tree) => {
|
|
10
|
+
const files = (0, schematics_1.findFilesInTree)(tree.root, (p) => p.endsWith('package.json'));
|
|
11
|
+
files.forEach((file) => {
|
|
12
|
+
const packageJson = tree.readJson(file.path);
|
|
13
|
+
packageJson.types = packageJson.types || packageJson.typings;
|
|
14
|
+
delete packageJson.es2020;
|
|
15
|
+
delete packageJson.esm2020;
|
|
16
|
+
delete packageJson.es2015;
|
|
17
|
+
delete packageJson.esm2015;
|
|
18
|
+
delete packageJson.typings;
|
|
19
|
+
if (packageJson.exports) {
|
|
20
|
+
packageJson.exports = Object.fromEntries(Object.entries(packageJson.exports)
|
|
21
|
+
.map(([path, map]) => {
|
|
22
|
+
if (typeof map !== 'object' || Array.isArray(map) || map === null) {
|
|
23
|
+
return [path, map];
|
|
24
|
+
}
|
|
25
|
+
if (map.typings) {
|
|
26
|
+
map.types = map.typings;
|
|
27
|
+
}
|
|
28
|
+
if (!map.module) {
|
|
29
|
+
map.module = map.esm2020 || map.esm2015;
|
|
30
|
+
}
|
|
31
|
+
delete map.es2020;
|
|
32
|
+
delete map.esm2020;
|
|
33
|
+
delete map.es2015;
|
|
34
|
+
delete map.esm2015;
|
|
35
|
+
delete map.typings;
|
|
36
|
+
return [path, map];
|
|
37
|
+
}));
|
|
38
|
+
}
|
|
39
|
+
tree.overwrite(file.path, JSON.stringify(packageJson, null, 2) + '\n');
|
|
40
|
+
});
|
|
41
|
+
return tree;
|
|
42
|
+
};
|
|
43
|
+
exports.clearPackageJsonExports = clearPackageJsonExports;
|
|
44
|
+
//# sourceMappingURL=clean-packagejson-exports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clean-packagejson-exports.js","sourceRoot":"","sources":["../../../../../schematics/ng-update/typescript/v12.1/clean-packagejson-exports.ts"],"names":[],"mappings":";;;AAGA,gDAEyB;AAKzB;;;GAGG;AACI,MAAM,uBAAuB,GAAS,CAAC,IAAI,EAAE,EAAE;IACpD,MAAM,KAAK,GAAG,IAAA,4BAAe,EAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC;IAE5E,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACrB,MAAM,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAgB,CAAC;QAE5D,WAAW,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,IAAI,WAAW,CAAC,OAAO,CAAC;QAE7D,OAAO,WAAW,CAAC,MAAM,CAAC;QAC1B,OAAO,WAAW,CAAC,OAAO,CAAC;QAC3B,OAAO,WAAW,CAAC,MAAM,CAAC;QAC1B,OAAO,WAAW,CAAC,OAAO,CAAC;QAC3B,OAAO,WAAW,CAAC,OAAO,CAAC;QAE3B,IAAI,WAAW,CAAC,OAAO,EAAE,CAAC;YACxB,WAAW,CAAC,OAAO,GAAG,MAAM,CAAC,WAAW,CACtC,MAAM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",
|
|
11
|
-
"es2015": "esm2015/index.js",
|
|
12
|
-
"esm2015": "esm2015/index.js",
|
|
13
|
-
"types": "index.d.ts",
|
|
9
|
+
"types": "./index.d.ts",
|
|
14
10
|
"sideEffects": false,
|
|
15
11
|
"exports": {
|
|
16
12
|
"./package.json": {
|
|
@@ -19,13 +15,11 @@
|
|
|
19
15
|
".": {
|
|
20
16
|
"main": "./cjs/index.js",
|
|
21
17
|
"module": "./esm2020/index.js",
|
|
22
|
-
"es2020": "./esm2020/index.js",
|
|
23
|
-
"esm2020": "./esm2020/index.js",
|
|
24
18
|
"node": "./cjs/index.js",
|
|
25
|
-
"
|
|
26
|
-
"typings": "./index.d.ts",
|
|
19
|
+
"types": "./index.d.ts",
|
|
27
20
|
"import": "./esm2020/index.js",
|
|
28
|
-
"require": "./esm2020/index.js"
|
|
21
|
+
"require": "./esm2020/index.js",
|
|
22
|
+
"default": "./esm2020/index.js"
|
|
29
23
|
}
|
|
30
24
|
},
|
|
31
25
|
"scripts": {
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
"name": "<% if (projectName) { %>@<%=projectName%>/<% } %><%=projectPackageName%>/jest",
|
|
3
3
|
"main": "../../cjs/api/fixtures.jest.js",
|
|
4
4
|
"module": "../../esm2020/api/fixtures.jest.js",
|
|
5
|
-
"es2020": "../../esm2020/api/fixtures.jest.js",
|
|
6
|
-
"esm2020": "../../esm2020/api/fixtures.jest.js",
|
|
7
5
|
"node": "../../cjs/api/fixtures.jest.js",
|
|
8
6
|
"default": "../../esm2020/api/fixtures.jest.js",
|
|
9
|
-
"
|
|
7
|
+
"types": "./index.d.ts"
|
|
10
8
|
}
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
"name": "<% if (projectName) { %>@<%=projectName%>/<% } %><%=projectPackageName%>/helpers",
|
|
3
3
|
"main": "../cjs/helpers/index.js",
|
|
4
4
|
"module": "../esm2020/helpers/index.js",
|
|
5
|
-
"es2020": "../esm2020/helpers/index.js",
|
|
6
|
-
"esm2020": "../esm2020/helpers/index.js",
|
|
7
5
|
"node": "../cjs/helpers/index.js",
|
|
8
6
|
"default": "../esm2020/helpers/index.js",
|
|
9
|
-
"
|
|
7
|
+
"types": "./index.d.ts"
|
|
10
8
|
}
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
"name": "<% if (projectName) { %>@<%=projectName%>/<% } %><%=projectPackageName%>/spec",
|
|
3
3
|
"main": "../cjs/spec/index.js",
|
|
4
4
|
"module": "../esm2020/spec/index.js",
|
|
5
|
-
"es2020": "../esm2020/spec/index.js",
|
|
6
|
-
"esm2020": "../esm2020/spec/index.js",
|
|
7
5
|
"node": "../cjs/spec/index.js",
|
|
8
6
|
"default": "../esm2020/spec/index.js",
|
|
9
|
-
"
|
|
7
|
+
"types": "./index.d.ts"
|
|
10
8
|
}
|