@furystack/mongodb-store 7.0.1 → 7.0.3

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.
package/esm/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export * from './mongodb-store.js';
2
+ export * from './store-manager-helpers.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA"}
package/esm/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export * from './mongodb-store';
2
- export * from './store-manager-helpers';
1
+ export * from './mongodb-store.js';
2
+ export * from './store-manager-helpers.js';
3
3
  //# sourceMappingURL=index.js.map
package/esm/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { addStore } from '@furystack/core';
2
- import { MongoClientFactory } from './mongo-client-factory';
3
- import { MongodbStore } from './mongodb-store';
2
+ import { MongoClientFactory } from './mongo-client-factory.js';
3
+ import { MongodbStore } from './mongodb-store.js';
4
4
  export const useMongoDb = ({ injector, model, primaryKey, db, collection, url, options, }) => {
5
5
  const clientFactory = injector.getInstance(MongoClientFactory);
6
6
  const store = new MongodbStore({
@@ -1 +1 @@
1
- {"version":3,"file":"store-manager-helpers.js","sourceRoot":"","sources":["../src/store-manager-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAG1C,OAAO,EAAE,kBAAkB,EAAE,MA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AE,KAAK,CAAC,CAAA;AAC3B,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@furystack/mongodb-store",
3
- "version": "7.0.1",
3
+ "version": "7.0.3",
4
4
  "description": "MongoDB Store implementation for FuryStack",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -8,16 +8,7 @@
8
8
  },
9
9
  "exports": {
10
10
  ".": {
11
- "import": "./esm/index.js",
12
- "types": "./types/index.d.ts"
13
- },
14
- "./package.json": "./package.json"
15
- },
16
- "typesVersions": {
17
- "*": {
18
- "*": [
19
- "types/*"
20
- ]
11
+ "import": "./esm/index.js"
21
12
  }
22
13
  },
23
14
  "files": [
@@ -46,16 +37,16 @@
46
37
  },
47
38
  "homepage": "https://github.com/furystack/furystack",
48
39
  "dependencies": {
49
- "@furystack/core": "^12.0.1",
50
- "@furystack/inject": "^8.0.1",
51
- "@furystack/utils": "^4.0.1",
52
- "mongodb": "5.3.0",
40
+ "@furystack/core": "^12.0.3",
41
+ "@furystack/inject": "^8.0.3",
42
+ "@furystack/utils": "^4.0.3",
43
+ "mongodb": "5.5.0",
53
44
  "semaphore-async-await": "^1.5.1"
54
45
  },
55
46
  "devDependencies": {
56
- "@types/node": "^18.15.11",
47
+ "@types/node": "^20.1.3",
57
48
  "typescript": "^5.0.4",
58
- "vitest": "^0.30.1"
49
+ "vitest": "^0.31.0"
59
50
  },
60
51
  "gitHead": "1045d854bfd8c475b7035471d130d401417a2321"
61
52
  }
package/src/index.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './mongodb-store'
2
- export * from './store-manager-helpers'
1
+ export * from './mongodb-store.js'
2
+ export * from './store-manager-helpers.js'
@@ -1,8 +1,8 @@
1
1
  import { addStore } from '@furystack/core'
2
2
  import type { Constructable, Injector } from '@furystack/inject'
3
3
  import type { MongoClientOptions } from 'mongodb'
4
- import { MongoClientFactory } from './mongo-client-factory'
5
- import { MongodbStore } from './mongodb-store'
4
+ import { MongoClientFactory } from './mongo-client-factory.js'
5
+ import { MongodbStore } from './mongodb-store.js'
6
6
 
7
7
  export const useMongoDb = <T extends object>({
8
8
  injector,
package/types/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './mongodb-store';
2
- export * from './store-manager-helpers';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes