@unchainedshop/core-countries 2.9.3 → 2.10.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.
@@ -3,6 +3,11 @@ export const CountriesCollection = async (db) => {
3
3
  const Countries = db.collection('countries');
4
4
  await buildDbIndexes(Countries, [
5
5
  { index: { isoCode: 1 }, options: { unique: true } },
6
+ {
7
+ index: {
8
+ deleted: 1,
9
+ },
10
+ },
6
11
  {
7
12
  index: { isoCode: 'text', _id: 'text' },
8
13
  options: {
@@ -1 +1 @@
1
- {"version":3,"file":"CountriesCollection.js","sourceRoot":"","sources":["../../src/db/CountriesCollection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAGjE,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EAAE,EAAc,EAAE,EAAE;IAC1D,MAAM,SAAS,GAAG,EAAE,CAAC,UAAU,CAAU,WAAW,CAAC,CAAC;IAEtD,MAAM,cAAc,CAAU,SAAS,EAAE;QACvC,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE;QACpD;YACE,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE;YACvC,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,GAAG,EAAE,CAAC;oBACN,OAAO,EAAE,CAAC;iBACX;gBACD,IAAI,EAAE,2BAA2B;aAClC;SACF;KACF,CAAC,CAAC;IAEH,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"}
1
+ {"version":3,"file":"CountriesCollection.js","sourceRoot":"","sources":["../../src/db/CountriesCollection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAGjE,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EAAE,EAAc,EAAE,EAAE;IAC1D,MAAM,SAAS,GAAG,EAAE,CAAC,UAAU,CAAU,WAAW,CAAC,CAAC;IAEtD,MAAM,cAAc,CAAU,SAAS,EAAE;QACvC,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE;QACpD;YACE,KAAK,EAAE;gBACL,OAAO,EAAE,CAAC;aACX;SACF;QACD;YACE,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE;YACvC,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,GAAG,EAAE,CAAC;oBACN,OAAO,EAAE,CAAC;iBACX;gBACD,IAAI,EAAE,2BAA2B;aAClC;SACF;KACF,CAAC,CAAC;IAEH,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unchainedshop/core-countries",
3
- "version": "2.9.3",
3
+ "version": "2.10.0",
4
4
  "main": "lib/countries-index.js",
5
5
  "exports": {
6
6
  ".": "./lib/countries-index.js",
@@ -31,17 +31,17 @@
31
31
  },
32
32
  "homepage": "https://github.com/unchainedshop/unchained#readme",
33
33
  "dependencies": {
34
- "@unchainedshop/events": "^2.9.3",
35
- "@unchainedshop/utils": "^2.9.3",
34
+ "@unchainedshop/events": "^2.10.0",
35
+ "@unchainedshop/utils": "^2.10.0",
36
36
  "lru-cache": "^10.2.2",
37
37
  "simpl-schema": "^3.4.6"
38
38
  },
39
39
  "devDependencies": {
40
- "@types/node": "^20.12.12",
41
- "@unchainedshop/types": "^2.9.3",
40
+ "@types/node": "^20.12.13",
41
+ "@unchainedshop/types": "^2.10.0",
42
42
  "cross-env": "^7.0.3",
43
43
  "jest": "^29.7.0",
44
- "ts-jest": "^29.1.3",
44
+ "ts-jest": "^29.1.4",
45
45
  "typescript": "^5.4.5"
46
46
  }
47
47
  }
@@ -6,6 +6,11 @@ export const CountriesCollection = async (db: mongodb.Db) => {
6
6
 
7
7
  await buildDbIndexes<Country>(Countries, [
8
8
  { index: { isoCode: 1 }, options: { unique: true } },
9
+ {
10
+ index: {
11
+ deleted: 1,
12
+ },
13
+ },
9
14
  {
10
15
  index: { isoCode: 'text', _id: 'text' },
11
16
  options: {