@tinacms/graphql 0.59.5 → 0.59.6
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 +6 -0
- package/dist/database/index.d.ts +1 -0
- package/dist/database/store/index.d.ts +1 -3
- package/dist/index.js +10 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/database/index.d.ts
CHANGED
|
@@ -68,7 +68,5 @@ export interface Store {
|
|
|
68
68
|
* user's repo.
|
|
69
69
|
*/
|
|
70
70
|
supportsIndexing(): boolean;
|
|
71
|
-
put(filepath: string, data: object,
|
|
72
|
-
includeTemplate?: boolean;
|
|
73
|
-
}): Promise<void>;
|
|
71
|
+
put(filepath: string, data: object, keepTemplateKey?: boolean): Promise<void>;
|
|
74
72
|
}
|
package/dist/index.js
CHANGED
|
@@ -12370,7 +12370,7 @@ var validateField = async (field) => {
|
|
|
12370
12370
|
|
|
12371
12371
|
// pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/package.json
|
|
12372
12372
|
var name = "@tinacms/graphql";
|
|
12373
|
-
var version = "0.59.
|
|
12373
|
+
var version = "0.59.6";
|
|
12374
12374
|
var main = "dist/index.js";
|
|
12375
12375
|
var typings = "dist/index.d.ts";
|
|
12376
12376
|
var files = [
|
|
@@ -23391,17 +23391,17 @@ var Database = class {
|
|
|
23391
23391
|
}
|
|
23392
23392
|
};
|
|
23393
23393
|
this.addPendingDocument = async (filepath, data) => {
|
|
23394
|
-
const { stringifiedFile, payload } = await this.stringifyFile(filepath, data);
|
|
23394
|
+
const { stringifiedFile, payload, keepTemplateKey } = await this.stringifyFile(filepath, data);
|
|
23395
23395
|
if (this.store.supportsSeeding()) {
|
|
23396
23396
|
await this.bridge.put(filepath, stringifiedFile);
|
|
23397
23397
|
}
|
|
23398
|
-
await this.store.put(filepath, payload);
|
|
23398
|
+
await this.store.put(filepath, payload, keepTemplateKey);
|
|
23399
23399
|
};
|
|
23400
23400
|
this.put = async (filepath, data) => {
|
|
23401
23401
|
if (SYSTEM_FILES.includes(filepath)) {
|
|
23402
23402
|
throw new Error(`Unexpected put for config file ${filepath}`);
|
|
23403
23403
|
} else {
|
|
23404
|
-
const { stringifiedFile, payload } = await this.stringifyFile(filepath, data);
|
|
23404
|
+
const { stringifiedFile, payload, keepTemplateKey } = await this.stringifyFile(filepath, data);
|
|
23405
23405
|
if (this.store.supportsSeeding()) {
|
|
23406
23406
|
await this.bridge.put(filepath, stringifiedFile);
|
|
23407
23407
|
}
|
|
@@ -23412,7 +23412,7 @@ var Database = class {
|
|
|
23412
23412
|
database: this
|
|
23413
23413
|
});
|
|
23414
23414
|
}
|
|
23415
|
-
await this.store.put(filepath, payload);
|
|
23415
|
+
await this.store.put(filepath, payload, keepTemplateKey);
|
|
23416
23416
|
}
|
|
23417
23417
|
return true;
|
|
23418
23418
|
};
|
|
@@ -23458,7 +23458,11 @@ var Database = class {
|
|
|
23458
23458
|
}
|
|
23459
23459
|
const extension2 = import_path4.default.extname(filepath);
|
|
23460
23460
|
const stringifiedFile = stringifyFile(payload, extension2, templateInfo.type === "union");
|
|
23461
|
-
return {
|
|
23461
|
+
return {
|
|
23462
|
+
stringifiedFile,
|
|
23463
|
+
payload,
|
|
23464
|
+
keepTemplateKey: templateInfo.type === "union"
|
|
23465
|
+
};
|
|
23462
23466
|
}
|
|
23463
23467
|
};
|
|
23464
23468
|
this.flush = async (filepath) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/graphql",
|
|
3
|
-
"version": "0.59.
|
|
3
|
+
"version": "0.59.6",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"directory": "packages/tina-graphql"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"@tinacms/datalayer": "0.0.
|
|
97
|
+
"@tinacms/datalayer": "0.0.2",
|
|
98
98
|
"@tinacms/scripts": "0.50.5",
|
|
99
99
|
"@types/cors": "^2.8.7",
|
|
100
100
|
"@types/estree": "^0.0.50",
|