@furystack/mongodb-store 7.0.1 → 7.0.2
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 +3 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +2 -2
- package/esm/index.js.map +1 -1
- package/esm/store-manager-helpers.js +2 -2
- package/esm/store-manager-helpers.js.map +1 -1
- package/package.json +6 -15
- package/src/index.ts +2 -2
- package/src/store-manager-helpers.ts +2 -2
- package/types/index.d.ts +0 -3
- package/types/index.d.ts.map +0 -1
- /package/{types → esm}/mongo-client-factory.d.ts +0 -0
- /package/{types → esm}/mongo-client-factory.d.ts.map +0 -0
- /package/{types → esm}/mongodb-store.d.ts +0 -0
- /package/{types → esm}/mongodb-store.d.ts.map +0 -0
- /package/{types → esm}/store-manager-helpers.d.ts +0 -0
- /package/{types → esm}/store-manager-helpers.d.ts.map +0 -0
package/esm/index.d.ts
ADDED
|
@@ -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,
|
|
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,MAAM,
|
|
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,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAmB,EAC3C,QAAQ,EACR,KAAK,EACL,UAAU,EACV,EAAE,EACF,UAAU,EACV,GAAG,EACH,OAAO,GA+BR,EAAE,EAAE;IACH,MAAM,aAAa,GAAG,QAAQ,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAA;IAC9D,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC;QAC7B,KAAK;QACL,UAAU;QACV,EAAE;QACF,UAAU;QACV,WAAW,EAAE,KAAK,IAAI,EAAE,CAAC,MAAM,aAAa,CAAC,YAAY,CAAC,GAAG,EAAE,OAAO,CAAC;KACxE,CAAC,CAAA;IACF,QAAQ,CAAC,QAAQ,EAAE,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.
|
|
3
|
+
"version": "7.0.2",
|
|
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,14 +37,14 @@
|
|
|
46
37
|
},
|
|
47
38
|
"homepage": "https://github.com/furystack/furystack",
|
|
48
39
|
"dependencies": {
|
|
49
|
-
"@furystack/core": "^12.0.
|
|
50
|
-
"@furystack/inject": "^8.0.
|
|
51
|
-
"@furystack/utils": "^4.0.
|
|
40
|
+
"@furystack/core": "^12.0.2",
|
|
41
|
+
"@furystack/inject": "^8.0.2",
|
|
42
|
+
"@furystack/utils": "^4.0.2",
|
|
52
43
|
"mongodb": "5.3.0",
|
|
53
44
|
"semaphore-async-await": "^1.5.1"
|
|
54
45
|
},
|
|
55
46
|
"devDependencies": {
|
|
56
|
-
"@types/node": "^18.
|
|
47
|
+
"@types/node": "^18.16.2",
|
|
57
48
|
"typescript": "^5.0.4",
|
|
58
49
|
"vitest": "^0.30.1"
|
|
59
50
|
},
|
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
package/types/index.d.ts.map
DELETED
|
@@ -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
|