@medusajs/region 0.1.2-snapshot-20240924113146 → 0.1.2-snapshot-20240925065353

Sign up to get free protection for your applications and to get access to all the features.
@@ -140,7 +140,7 @@ class RegionModuleService extends (0, utils_1.MedusaService)({ Region: _models_1
140
140
  if (uniqueCountries.length !== countries.length) {
141
141
  throw new utils_1.MedusaError(utils_1.MedusaError.Types.INVALID_DATA, `Countries with codes: "${(0, utils_1.getDuplicates)(countries).join(", ")}" are already assigned to a region`);
142
142
  }
143
- const countriesInDb = await this.countryService_.list({ iso_2: uniqueCountries }, { select: ["iso_2", "region_id"], take: null }, sharedContext);
143
+ const countriesInDb = await this.countryService_.list({ iso_2: uniqueCountries }, { select: ["iso_2", "region_id"] }, sharedContext);
144
144
  const countryCodesInDb = countriesInDb.map((c) => c.iso_2.toLowerCase());
145
145
  // Countries missing in the database
146
146
  if (countriesInDb.length !== uniqueCountries.length) {
@@ -1 +1 @@
1
- {"version":3,"file":"region-module.js","sourceRoot":"","sources":["../../src/services/region-module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAeA,2CAWwB;AACxB,qCAAyC;AASzC,MAAqB,mBACnB,SAAQ,IAAA,qBAAa,EASlB,EAAE,MAAM,EAAN,gBAAM,EAAE,OAAO,EAAP,iBAAO,EAAE,CAAC;IAWvB,YACE,EAAE,cAAc,EAAE,aAAa,EAAE,cAAc,EAAwB,EACpD,iBAA4C;QAE/D,aAAa;QACb,KAAK,CAAC,GAAG,SAAS,CAAC,CAAA;QAHA,sBAAiB,GAAjB,iBAAiB,CAA2B;QAI/D,IAAI,CAAC,eAAe,GAAG,cAAc,CAAA;QACrC,IAAI,CAAC,cAAc,GAAG,aAAa,CAAA;QACnC,IAAI,CAAC,eAAe,GAAG,cAAc,CAAA;IACvC,CAAC;IAaK,AAAN,KAAK,CAAC,aAAa,CACjB,IAAyC,EACxB,gBAAyB,EAAE;QAE5C,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAA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CACnB,mBAAW,CAAC,KAAK,CAAC,YAAY,EAC9B,0BAA0B,mBAAmB;iBAC1C,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;iBACnB,IAAI,CAAC,IAAI,CAAC,oCAAoC,CAClD,CAAA;QACH,CAAC;QAED,OAAO,aAAa,CAAA;IACtB,CAAC;CACF;AAjUD,sCAiUC;AAtRO;IADL,IAAA,qBAAa,GAAE;IAGb,WAAA,IAAA,qBAAa,GAAE,CAAA;;;;wDASjB;AAGK;IADL,IAAA,gCAAwB,GAAE;IAGxB,WAAA,IAAA,qBAAa,GAAE,CAAA;;;;yDAkCjB;AAIK;IAFL,IAAA,qBAAa,GAAE;IAChB,aAAa;;IAIV,WAAA,IAAA,qBAAa,GAAE,CAAA;;;;4DAajB;AAYK;IADL,IAAA,gCAAwB,GAAE;IAGxB,WAAA,IAAA,qBAAa,GAAE,CAAA;;;;wDAuBjB;AAeK;IADL,IAAA,qBAAa,GAAE;IAIb,WAAA,IAAA,qBAAa,GAAE,CAAA;;;;wDA4BjB;AAGe;IADf,IAAA,gCAAwB,GAAE;IAGxB,WAAA,IAAA,qBAAa,GAAE,CAAA;;;;yDA8CjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/region",
3
- "version": "0.1.2-snapshot-20240924113146",
3
+ "version": "0.1.2-snapshot-20240925065353",
4
4
  "description": "Medusa Region module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -37,18 +37,18 @@
37
37
  "orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm cache:clear"
38
38
  },
39
39
  "devDependencies": {
40
- "@medusajs/types": "1.12.0-snapshot-20240924113146",
40
+ "@medusajs/types": "1.12.0-snapshot-20240925065353",
41
41
  "@mikro-orm/cli": "5.9.7",
42
42
  "cross-env": "^5.2.1",
43
43
  "jest": "^29.7.0",
44
- "medusa-test-utils": "1.1.45-snapshot-20240924113146",
44
+ "medusa-test-utils": "1.1.45-snapshot-20240925065353",
45
45
  "rimraf": "^3.0.2",
46
46
  "ts-node": "^10.9.1",
47
47
  "tsc-alias": "^1.8.6",
48
48
  "typescript": "^5.6.2"
49
49
  },
50
50
  "dependencies": {
51
- "@medusajs/utils": "1.12.0-snapshot-20240924113146"
51
+ "@medusajs/utils": "1.12.0-snapshot-20240925065353"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@mikro-orm/core": "5.9.7",