ts-ioc-container 46.4.0 → 46.4.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.
@@ -35,7 +35,10 @@ class GroupAliasToken extends InjectionToken_1.InjectionToken {
35
35
  });
36
36
  }
37
37
  lazy() {
38
- return this;
38
+ return new GroupAliasToken(this.token, {
39
+ ...this.options,
40
+ lazy: true,
41
+ });
39
42
  }
40
43
  }
41
44
  exports.GroupAliasToken = GroupAliasToken;
@@ -35,7 +35,10 @@ class SingleAliasToken extends InjectionToken_1.InjectionToken {
35
35
  });
36
36
  }
37
37
  lazy() {
38
- return this;
38
+ return new SingleAliasToken(this.token, {
39
+ ...this.options,
40
+ lazy: true,
41
+ });
39
42
  }
40
43
  }
41
44
  exports.SingleAliasToken = SingleAliasToken;
@@ -32,7 +32,10 @@ export class GroupAliasToken extends InjectionToken {
32
32
  });
33
33
  }
34
34
  lazy() {
35
- return this;
35
+ return new GroupAliasToken(this.token, {
36
+ ...this.options,
37
+ lazy: true,
38
+ });
36
39
  }
37
40
  }
38
41
  export const toGroupAlias = (token) => new GroupAliasToken(token);
@@ -32,7 +32,10 @@ export class SingleAliasToken extends InjectionToken {
32
32
  });
33
33
  }
34
34
  lazy() {
35
- return this;
35
+ return new SingleAliasToken(this.token, {
36
+ ...this.options,
37
+ lazy: true,
38
+ });
36
39
  }
37
40
  }
38
41
  export const toSingleAlias = (token) => new SingleAliasToken(token);
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "ts-ioc-container",
3
- "version": "46.4.0",
3
+ "version": "46.4.1",
4
4
  "description": "Typescript IoC container",
5
+ "workspaces": [
6
+ "docs"
7
+ ],
5
8
  "publishConfig": {
6
9
  "access": "public",
7
10
  "registry": "https://registry.npmjs.org/"
@@ -54,11 +57,10 @@
54
57
  "audit": "npm audit",
55
58
  "prepare": "husky",
56
59
  "release": "npm run build && npm test && npm publish",
57
- "docs:install": "cd docs && npm install",
58
- "docs:dev": "cd docs && npm run dev",
59
- "docs:serve": "cd docs && npm run dev",
60
- "docs:build": "cd docs && npm run build",
61
- "docs:preview": "cd docs && npm run preview"
60
+ "docs:dev": "pnpm --filter ts-ioc-container-docs run dev",
61
+ "docs:serve": "pnpm --filter ts-ioc-container-docs run dev",
62
+ "docs:build": "pnpm --filter ts-ioc-container-docs run build",
63
+ "docs:preview": "pnpm --filter ts-ioc-container-docs run preview"
62
64
  },
63
65
  "devDependencies": {
64
66
  "@semantic-release/changelog": "^6.0.3",