ddd-node 14.0.0 → 14.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,7 @@ export declare class ModelWithId<P extends Props> extends ModelBase<P> {
|
|
|
4
4
|
protected readonly _id: Id;
|
|
5
5
|
constructor(id: Id);
|
|
6
6
|
static idService(): import("../id").IIdService<any>;
|
|
7
|
-
static id(id?: Id): Id<any>;
|
|
7
|
+
static id<T = any>(id?: Id<T> | T): Id<any>;
|
|
8
8
|
id(): Id<any>;
|
|
9
9
|
hasId(id: Id): boolean;
|
|
10
10
|
rawId(): any;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ddd-node",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Domain Driven Design base for NodeJs",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"build": "rm -rf dist && tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|
|
9
|
+
"build": "rm -rf dist && tsc -p src/tsconfig.build.json && tsc-alias -p src/tsconfig.build.json",
|
|
10
10
|
"test": "mocha"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
package/tsconfig.json
CHANGED
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
/* Interop Constraints */
|
|
88
88
|
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
|
89
89
|
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
|
|
90
|
-
"allowSyntheticDefaultImports": true /* Allow 'import x from y' when a module doesn't have a default export. */,
|
|
90
|
+
// "allowSyntheticDefaultImports": true /* Allow 'import x from y' when a module doesn't have a default export. */,
|
|
91
91
|
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
|
|
92
92
|
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
|
93
93
|
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
|
|
@@ -117,6 +117,6 @@
|
|
|
117
117
|
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
|
118
118
|
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
119
119
|
},
|
|
120
|
-
"include": ["src/**/*"],
|
|
120
|
+
"include": ["src/**/*", "tsconfig.build.json"],
|
|
121
121
|
"exclude": ["node_modules", "test/**/*"]
|
|
122
122
|
}
|