@o3r/localization 11.3.0-rc.7 → 11.3.0

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 +1 @@
1
- {"version":3,"file":"localization-metadata-comparison.helper.d.ts","sourceRoot":"","sources":["../../../../builders/metadata-check/helpers/localization-metadata-comparison.helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,uBAAuB;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAaD;;GAEG;AACH,eAAO,MAAM,8BAA8B,EAAE,kBAAkB,CAAC,gBAAgB,EAAE,6BAA6B,EAAE,oBAAoB,CAIpI,CAAC"}
1
+ {"version":3,"file":"localization-metadata-comparison.helper.d.ts","sourceRoot":"","sources":["../../../../builders/metadata-check/helpers/localization-metadata-comparison.helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,uBAAuB;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAcD;;GAEG;AACH,eAAO,MAAM,8BAA8B,EAAE,kBAAkB,CAAC,gBAAgB,EAAE,6BAA6B,EAAE,oBAAoB,CAIpI,CAAC"}
@@ -7,7 +7,7 @@ exports.localizationMetadataComparator = void 0;
7
7
  */
8
8
  const getLocalizationArray = (content) => content;
9
9
  const getLocalizationName = (localization) => localization.key;
10
- const isMigrationLocalizationDataMatch = (localization, migrationData) => getLocalizationName(localization) === migrationData.key;
10
+ const isMigrationLocalizationDataMatch = (localization, migrationData, metadataType) => metadataType === 'LOCALIZATION' && getLocalizationName(localization) === migrationData.key;
11
11
  /**
12
12
  * Comparator used to compare one version of localization metadata with another
13
13
  */
@@ -1 +1 @@
1
- {"version":3,"file":"localization-metadata-comparison.helper.js","sourceRoot":"","sources":["../../../../builders/metadata-check/helpers/localization-metadata-comparison.helper.ts"],"names":[],"mappings":";;;AAWA;;;GAGG;AACH,MAAM,oBAAoB,GAAG,CAAC,OAA6B,EAAE,EAAE,CAAC,OAAO,CAAC;AAExE,MAAM,mBAAmB,GAAG,CAAC,YAA8B,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC;AAEjF,MAAM,gCAAgC,GAAG,CAAC,YAA8B,EAAE,aAA4C,EAAE,EAAE,CAAC,mBAAmB,CAAC,YAAY,CAAC,KAAK,aAAa,CAAC,GAAG,CAAC;AAGnL;;GAEG;AACU,QAAA,8BAA8B,GAA8F;IACvI,QAAQ,EAAE,oBAAoB;IAC9B,aAAa,EAAE,mBAAmB;IAClC,oBAAoB,EAAE,gCAAgC;CACvD,CAAC"}
1
+ {"version":3,"file":"localization-metadata-comparison.helper.js","sourceRoot":"","sources":["../../../../builders/metadata-check/helpers/localization-metadata-comparison.helper.ts"],"names":[],"mappings":";;;AAWA;;;GAGG;AACH,MAAM,oBAAoB,GAAG,CAAC,OAA6B,EAAE,EAAE,CAAC,OAAO,CAAC;AAExE,MAAM,mBAAmB,GAAG,CAAC,YAA8B,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC;AAEjF,MAAM,gCAAgC,GAAG,CAAC,YAA8B,EAAE,aAA4C,EAAE,YAAoB,EAAE,EAAE,CAC9I,YAAY,KAAK,cAAc,IAAI,mBAAmB,CAAC,YAAY,CAAC,KAAK,aAAa,CAAC,GAAG,CAAC;AAG7F;;GAEG;AACU,QAAA,8BAA8B,GAA8F;IACvI,QAAQ,EAAE,oBAAoB;IAC9B,aAAa,EAAE,mBAAmB;IAClC,oBAAoB,EAAE,gCAAgC;CACvD,CAAC"}
@@ -4,6 +4,6 @@ const architect_1 = require("@angular-devkit/architect");
4
4
  const extractors_1 = require("@o3r/extractors");
5
5
  const helpers_1 = require("./helpers");
6
6
  exports.default = (0, architect_1.createBuilder)((0, extractors_1.createBuilderWithMetricsIfInstalled)((options, context) => {
7
- return (0, extractors_1.checkMetadataBuilder)(options, context, helpers_1.localizationMetadataComparator);
7
+ return (0, extractors_1.checkMetadataBuilder)({ ...options, packageJsonEntry: 'localizationFilePath' }, context, helpers_1.localizationMetadataComparator);
8
8
  }));
9
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../builders/metadata-check/index.ts"],"names":[],"mappings":";;AAAA,yDAA8E;AAC9E,gDAA4F;AAC5F,uCAA2D;AAG3D,kBAAe,IAAA,yBAAa,EAAkD,IAAA,gDAAmC,EAAC,CAAC,OAAO,EAAE,OAAO,EAA0B,EAAE;IAC7J,OAAO,IAAA,iCAAoB,EAAC,OAAO,EAAE,OAAO,EAAE,wCAA8B,CAAC,CAAC;AAChF,CAAC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../builders/metadata-check/index.ts"],"names":[],"mappings":";;AAAA,yDAA8E;AAC9E,gDAA4F;AAC5F,uCAA2D;AAG3D,kBAAe,IAAA,yBAAa,EAAkD,IAAA,gDAAmC,EAAC,CAAC,OAAO,EAAE,OAAO,EAA0B,EAAE;IAC7J,OAAO,IAAA,iCAAoB,EAAC,EAAC,GAAG,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAC,EAAE,OAAO,EAAE,wCAA8B,CAAC,CAAC;AAC/H,CAAC,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/localization",
3
- "version": "11.3.0-rc.7",
3
+ "version": "11.3.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -44,11 +44,11 @@
44
44
  "@formatjs/intl-numberformat": "^8.0.2",
45
45
  "@ngrx/store": "~18.0.0",
46
46
  "@ngx-translate/core": "~15.0.0",
47
- "@o3r/core": "^11.3.0-rc.7",
48
- "@o3r/dynamic-content": "^11.3.0-rc.7",
49
- "@o3r/extractors": "^11.3.0-rc.7",
50
- "@o3r/logger": "^11.3.0-rc.7",
51
- "@o3r/schematics": "^11.3.0-rc.7",
47
+ "@o3r/core": "^11.3.0",
48
+ "@o3r/dynamic-content": "^11.3.0",
49
+ "@o3r/extractors": "^11.3.0",
50
+ "@o3r/logger": "^11.3.0",
51
+ "@o3r/schematics": "^11.3.0",
52
52
  "@schematics/angular": "~18.2.0",
53
53
  "@yarnpkg/cli": "^4.3.1",
54
54
  "@yarnpkg/core": "^4.1.1",