@unchainedshop/core-delivery 2.9.3 → 2.9.4

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,7 +1,14 @@
1
1
  import { buildDbIndexes } from '@unchainedshop/mongodb';
2
2
  export const DeliveryProvidersCollection = async (db) => {
3
3
  const DeliveryProviders = db.collection('delivery-providers');
4
- await buildDbIndexes(DeliveryProviders, [{ index: { type: 1 } }]);
4
+ await buildDbIndexes(DeliveryProviders, [
5
+ { index: { type: 1 } },
6
+ {
7
+ index: {
8
+ deleted: 1,
9
+ },
10
+ },
11
+ ]);
5
12
  return DeliveryProviders;
6
13
  };
7
14
  //# sourceMappingURL=DeliveryProvidersCollection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DeliveryProvidersCollection.js","sourceRoot":"","sources":["../../src/db/DeliveryProvidersCollection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAGjE,MAAM,CAAC,MAAM,2BAA2B,GAAG,KAAK,EAAE,EAAc,EAAE,EAAE;IAClE,MAAM,iBAAiB,GAAG,EAAE,CAAC,UAAU,CAAmB,oBAAoB,CAAC,CAAC;IAEhF,MAAM,cAAc,CAAmB,iBAAiB,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IAEpF,OAAO,iBAAiB,CAAC;AAC3B,CAAC,CAAC"}
1
+ {"version":3,"file":"DeliveryProvidersCollection.js","sourceRoot":"","sources":["../../src/db/DeliveryProvidersCollection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAGjE,MAAM,CAAC,MAAM,2BAA2B,GAAG,KAAK,EAAE,EAAc,EAAE,EAAE;IAClE,MAAM,iBAAiB,GAAG,EAAE,CAAC,UAAU,CAAmB,oBAAoB,CAAC,CAAC;IAEhF,MAAM,cAAc,CAAmB,iBAAiB,EAAE;QACxD,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE;QACtB;YACE,KAAK,EAAE;gBACL,OAAO,EAAE,CAAC;aACX;SACF;KACF,CAAC,CAAC;IAEH,OAAO,iBAAiB,CAAC;AAC3B,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unchainedshop/core-delivery",
3
- "version": "2.9.3",
3
+ "version": "2.9.4",
4
4
  "main": "lib/delivery-index.js",
5
5
  "exports": {
6
6
  ".": "./lib/delivery-index.js",
@@ -31,16 +31,16 @@
31
31
  },
32
32
  "homepage": "https://github.com/unchainedshop/unchained#readme",
33
33
  "dependencies": {
34
- "@unchainedshop/events": "^2.9.3",
35
- "@unchainedshop/logger": "^2.9.3",
36
- "@unchainedshop/utils": "^2.9.3",
34
+ "@unchainedshop/events": "^2.9.4",
35
+ "@unchainedshop/logger": "^2.9.4",
36
+ "@unchainedshop/utils": "^2.9.4",
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.9.4",
42
42
  "jest": "^29.7.0",
43
- "ts-jest": "^29.1.3",
43
+ "ts-jest": "^29.1.4",
44
44
  "typescript": "^5.4.5"
45
45
  }
46
46
  }
@@ -4,7 +4,14 @@ import { DeliveryProvider } from '@unchainedshop/types/delivery.js';
4
4
  export const DeliveryProvidersCollection = async (db: mongodb.Db) => {
5
5
  const DeliveryProviders = db.collection<DeliveryProvider>('delivery-providers');
6
6
 
7
- await buildDbIndexes<DeliveryProvider>(DeliveryProviders, [{ index: { type: 1 } }]);
7
+ await buildDbIndexes<DeliveryProvider>(DeliveryProviders, [
8
+ { index: { type: 1 } },
9
+ {
10
+ index: {
11
+ deleted: 1,
12
+ },
13
+ },
14
+ ]);
8
15
 
9
16
  return DeliveryProviders;
10
17
  };