@o3r/store-sync 10.0.0-prerelease.7 → 10.0.0-prerelease.71

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.
@@ -1,4 +1,4 @@
1
- import { props, createAction, INIT, UPDATE } from '@ngrx/store';
1
+ import { createAction, props, INIT, UPDATE } from '@ngrx/store';
2
2
  import { deepFill } from '@o3r/core';
3
3
  import { utils } from '@ama-sdk/core';
4
4
  import equal from 'fast-deep-equal';
package/package.json CHANGED
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "name": "@o3r/store-sync",
3
- "version": "10.0.0-prerelease.7",
3
+ "version": "10.0.0-prerelease.71",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
4
7
  "description": "This module is exposing an NgRx store synchronization solution (synchronous and asynchronous) via the class StorageSync.",
5
8
  "keywords": [
6
9
  "store",
@@ -10,14 +13,14 @@
10
13
  "otter-module"
11
14
  ],
12
15
  "peerDependencies": {
13
- "@ama-sdk/core": "^10.0.0-prerelease.7",
16
+ "@ama-sdk/core": "^10.0.0-prerelease.71",
14
17
  "@angular-devkit/core": "~17.0.0",
15
18
  "@angular-devkit/schematics": "~17.0.0",
16
19
  "@ngrx/entity": "~17.1.0",
17
20
  "@ngrx/store": "~17.1.0",
18
- "@o3r/core": "^10.0.0-prerelease.7",
19
- "@o3r/logger": "^10.0.0-prerelease.7",
20
- "@o3r/schematics": "^10.0.0-prerelease.7",
21
+ "@o3r/core": "^10.0.0-prerelease.71",
22
+ "@o3r/logger": "^10.0.0-prerelease.71",
23
+ "@o3r/schematics": "^10.0.0-prerelease.71",
21
24
  "fast-deep-equal": "^3.1.3",
22
25
  "rxjs": "^7.8.1"
23
26
  },
@@ -4,5 +4,5 @@ import type { NgAddSchematicsSchema } from './schema';
4
4
  * Add Otter store-sync to an Otter Project
5
5
  * @param options
6
6
  */
7
- export declare function ngAdd(options: NgAddSchematicsSchema): Rule;
7
+ export declare const ngAdd: (options: NgAddSchematicsSchema) => Rule;
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAItD;;;GAGG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,CA2C1D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAsDtD;;;GAGG;AACH,eAAO,MAAM,KAAK,0CAAiD,CAAC"}
@@ -2,13 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ngAdd = void 0;
4
4
  const schematics_1 = require("@angular-devkit/schematics");
5
+ const schematics_2 = require("@o3r/schematics");
5
6
  const path = require("node:path");
6
7
  const tasks_1 = require("@angular-devkit/schematics/tasks");
7
8
  /**
8
9
  * Add Otter store-sync to an Otter Project
9
10
  * @param options
10
11
  */
11
- function ngAdd(options) {
12
+ function ngAddFn(options) {
12
13
  return async (tree, context) => {
13
14
  try {
14
15
  // use dynamic import to properly raise an exception if it is not an Otter project.
@@ -33,6 +34,7 @@ function ngAdd(options) {
33
34
  (_, ctx) => {
34
35
  const peerDepToInstall = getPeerDepWithPattern(path.resolve(__dirname, '..', '..', 'package.json'), ['fast-deep-equal']);
35
36
  ctx.addTask(new tasks_1.NodePackageInstallTask({
37
+ workingDirectory,
36
38
  packageName: Object.entries(peerDepToInstall.matchingPackagesVersions)
37
39
  // eslint-disable-next-line @typescript-eslint/no-base-to-string, @typescript-eslint/restrict-template-expressions
38
40
  .map(([dependency, version]) => `${dependency}@${version || 'latest'}`)
@@ -52,5 +54,9 @@ function ngAdd(options) {
52
54
  }
53
55
  };
54
56
  }
55
- exports.ngAdd = ngAdd;
57
+ /**
58
+ * Add Otter store-sync to an Otter Project
59
+ * @param options
60
+ */
61
+ exports.ngAdd = (0, schematics_2.createSchematicWithMetricsIfInstalled)(ngAddFn);
56
62
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAAA,2DAA+D;AAC/D,gDAAwE;AAExE,kCAAkC;AAClC,4DAA0E;AAE1E;;;GAGG;AACH,SAAS,OAAO,CAAC,OAA8B;IAC7C,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;QAC7B,IAAI;YACF,mFAAmF;YACnF,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,GAAG,2CAAa,iBAAiB,EAAC,CAAC;YAC9I,4GAA4G;YAC5G,MAAM,QAAQ,GAAG,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC;YACrF,MAAM,gBAAgB,GAAG,OAAO,EAAE,WAAW,IAAI,kBAAkB,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,IAAI,IAAI,GAAG,CAAC;YACtH,OAAO,IAAA,kBAAK,EAAC;gBACX,kDAAkD;gBAClD,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,IAAA,iBAAI,GAAE,CAAC,CAAC,CAAC,cAAc,EAAE;gBAC9C,gDAAgD;gBAChD,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,iBAAI,CAAC,CAAC,CAAC,OAAO;gBACpC,uDAAuD;gBACvD,aAAa,CAAC,QAAQ,CAAC,WAAW,EAAE;oBAClC,gBAAg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