@fougere/adapter-memory 0.8.4-alpha.0 → 0.9.0-alpha.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.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
import { type Source } from '@fougere/core';
|
|
3
3
|
/** The whole port over a Map, per entity. */
|
|
4
4
|
export declare const createMemoryStorage: import("@fougere/core").StorageFactory;
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function createMemorySource(): Source;
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,OAAO,EAAiD,KAAK,MAAM,EAAqB,MAAM,eAAe,CAAC;AAgB9G,6CAA6C;AAC7C,eAAO,MAAM,mBAAmB,wCAAgC,CAAC;AAEjE,wBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,OAAO,EAAiD,KAAK,MAAM,EAAqB,MAAM,eAAe,CAAC;AAgB9G,6CAA6C;AAC7C,eAAO,MAAM,mBAAmB,wCAAgC,CAAC;AAEjE,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C"}
|
package/dist/index.js
CHANGED
|
@@ -14,8 +14,8 @@ function mapStore() {
|
|
|
14
14
|
}
|
|
15
15
|
/** The whole port over a Map, per entity. */
|
|
16
16
|
export const createMemoryStorage = storageOver(() => mapStore());
|
|
17
|
-
export function
|
|
17
|
+
export function createMemorySource() {
|
|
18
18
|
return { storageFactory: createMemoryStorage, name: 'memory' };
|
|
19
19
|
}
|
|
20
|
-
Sources.register('memory', (_conf) =>
|
|
20
|
+
Sources.register('memory', (_conf) => createMemorySource());
|
|
21
21
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,OAAO,EAAE,OAAO,EAAE,WAAW,EAA2D,MAAM,eAAe,CAAC;AAE9G,oFAAoF;AACpF,SAAS,QAAQ;IACf,MAAM,GAAG,GAAG,IAAI,GAAG,EAAkB,CAAC;IAEtC,OAAO;QACL,MAAM,EAAE,GAAG;QACX,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC;QAChC,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC;QAChC,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;QACrD,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC;QACtC,GAAG,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC;KACnC,CAAC;AACJ,CAAC;AAED,6CAA6C;AAC7C,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;AAEjE,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,OAAO,EAAE,OAAO,EAAE,WAAW,EAA2D,MAAM,eAAe,CAAC;AAE9G,oFAAoF;AACpF,SAAS,QAAQ;IACf,MAAM,GAAG,GAAG,IAAI,GAAG,EAAkB,CAAC;IAEtC,OAAO;QACL,MAAM,EAAE,GAAG;QACX,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC;QAChC,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC;QAChC,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;QACrD,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC;QACtC,GAAG,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC;KACnC,CAAC;AACJ,CAAC;AAED,6CAA6C;AAC7C,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;AAEjE,MAAM,UAAU,kBAAkB;IAChC,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;AACjE,CAAC;AAED,OAAO,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAmB,EAAU,EAAE,CAAC,kBAAkB,EAAE,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fougere/adapter-memory",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0-alpha.0",
|
|
4
4
|
"description": "Rows in a Map — the source a first run meets, and the one that ships no driver.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fougere",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"src"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@fougere/core": "0.
|
|
32
|
+
"@fougere/core": "0.9.0-alpha.0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@fougere/schema": "0.
|
|
38
|
+
"@fougere/schema": "0.9.0-alpha.0"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "rm -rf dist && tsc",
|
package/src/index.ts
CHANGED
|
@@ -18,8 +18,8 @@ function mapStore(): Store {
|
|
|
18
18
|
/** The whole port over a Map, per entity. */
|
|
19
19
|
export const createMemoryStorage = storageOver(() => mapStore());
|
|
20
20
|
|
|
21
|
-
export function
|
|
21
|
+
export function createMemorySource(): Source {
|
|
22
22
|
return { storageFactory: createMemoryStorage, name: 'memory' };
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
Sources.register('memory', (_conf: SourceConfig): Source =>
|
|
25
|
+
Sources.register('memory', (_conf: SourceConfig): Source => createMemorySource());
|