@tinacms/datalayer 0.0.2 → 0.2.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/CHANGELOG.md +54 -0
- package/dist/database/bridge/filesystem.d.ts +2 -1
- package/dist/database/bridge/index.d.ts +2 -1
- package/dist/database/bridge/isomorphic.d.ts +108 -0
- package/dist/database/store/filesystem.d.ts +7 -4
- package/dist/database/store/index.d.ts +107 -35
- package/dist/database/store/level.d.ts +18 -15
- package/dist/index.d.ts +5 -1
- package/dist/index.js +834 -108
- package/package.json +7 -3
- package/dist/database/store/memory.d.ts +0 -33
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/datalayer",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -29,10 +29,14 @@
|
|
|
29
29
|
"encoding-down": "^7.1.0",
|
|
30
30
|
"fast-glob": "^3.2.5",
|
|
31
31
|
"fs-extra": "^9.0.1",
|
|
32
|
+
"glob-parent": "^6.0.2",
|
|
32
33
|
"graphql": "^15.3.0",
|
|
33
34
|
"gray-matter": "^4.0.2",
|
|
35
|
+
"isomorphic-git": "^1.10.3",
|
|
34
36
|
"js-yaml": "^3.14.0",
|
|
37
|
+
"jsonpath-plus": "^6.0.1",
|
|
35
38
|
"level": "^7.0.1",
|
|
39
|
+
"leveldown": "^6.1.0",
|
|
36
40
|
"levelup": "^5.1.1",
|
|
37
41
|
"lodash": "^4.17.20",
|
|
38
42
|
"memdown": "^6.1.1",
|
|
@@ -48,9 +52,9 @@
|
|
|
48
52
|
"directory": "packages/@tinacms/datalayer"
|
|
49
53
|
},
|
|
50
54
|
"devDependencies": {
|
|
51
|
-
"@tinacms/scripts": "0.50.
|
|
55
|
+
"@tinacms/scripts": "0.50.9",
|
|
52
56
|
"@types/fs-extra": "^9.0.2",
|
|
53
|
-
"@types/jest": "^
|
|
57
|
+
"@types/jest": "^27.4.1",
|
|
54
58
|
"@types/js-yaml": "^3.12.5",
|
|
55
59
|
"@types/level": "^6.0.0",
|
|
56
60
|
"@types/lodash": "^4.14.161",
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Copyright 2021 Forestry.io Holdings, Inc.
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
you may not use this file except in compliance with the License.
|
|
5
|
-
You may obtain a copy of the License at
|
|
6
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software
|
|
8
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
9
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
10
|
-
See the License for the specific language governing permissions and
|
|
11
|
-
limitations under the License.
|
|
12
|
-
*/
|
|
13
|
-
import type { Store } from './index';
|
|
14
|
-
/**
|
|
15
|
-
* This is the bridge from whatever datasource we need for I/O.
|
|
16
|
-
* The basic example here is for the filesystem, one is needed
|
|
17
|
-
* for Github has well.
|
|
18
|
-
*/
|
|
19
|
-
export declare class MemoryStore implements Store {
|
|
20
|
-
rootPath: any;
|
|
21
|
-
db: any;
|
|
22
|
-
private map;
|
|
23
|
-
constructor(rootPath: string, object?: object);
|
|
24
|
-
query(queryStrings: string[], hydrator: any): Promise<any[]>;
|
|
25
|
-
seed(filepath: string, data: object): Promise<void>;
|
|
26
|
-
supportsSeeding(): boolean;
|
|
27
|
-
supportsIndexing(): boolean;
|
|
28
|
-
print(): Promise<void>;
|
|
29
|
-
clear(): Promise<void>;
|
|
30
|
-
glob(pattern: string, callback: any): Promise<any[]>;
|
|
31
|
-
get(filepath: string): Promise<any>;
|
|
32
|
-
put(filepath: string, data: object): Promise<void>;
|
|
33
|
-
}
|