tinacms 0.0.0-f03fd62-20241023052950 → 0.0.0-f97a9b1-20241023074747
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/client.js
CHANGED
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
return client;
|
|
107
107
|
}
|
|
108
108
|
const makeCacheDir = async (dir, fs) => {
|
|
109
|
-
const path =
|
|
110
|
-
const os =
|
|
109
|
+
const path = require("node:path");
|
|
110
|
+
const os = require("node:os");
|
|
111
111
|
if (typeof dir !== "string" || !dir.trim()) {
|
|
112
112
|
throw new Error("Invalid directory path");
|
|
113
113
|
}
|
|
@@ -125,9 +125,8 @@
|
|
|
125
125
|
return cacheDir;
|
|
126
126
|
};
|
|
127
127
|
const NodeCache = async (dir) => {
|
|
128
|
-
const fs =
|
|
129
|
-
|
|
130
|
-
const { createHash } = await Promise.resolve().then(() => __viteBrowserExternal$1);
|
|
128
|
+
const fs = require("node:fs");
|
|
129
|
+
const { createHash } = require("node:crypto");
|
|
131
130
|
const cacheDir = await makeCacheDir(dir, fs);
|
|
132
131
|
return {
|
|
133
132
|
makeKey: (key) => {
|
|
@@ -158,11 +157,6 @@
|
|
|
158
157
|
__proto__: null,
|
|
159
158
|
NodeCache
|
|
160
159
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
161
|
-
const __viteBrowserExternal = {};
|
|
162
|
-
const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
163
|
-
__proto__: null,
|
|
164
|
-
default: __viteBrowserExternal
|
|
165
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
166
160
|
exports2.TINA_HOST = TINA_HOST;
|
|
167
161
|
exports2.TinaClient = TinaClient;
|
|
168
162
|
exports2.createClient = createClient;
|
package/dist/client.mjs
CHANGED
|
@@ -24,7 +24,7 @@ class TinaClient {
|
|
|
24
24
|
}
|
|
25
25
|
try {
|
|
26
26
|
if (this.cacheDir && typeof window === "undefined" && typeof require !== "undefined") {
|
|
27
|
-
const { NodeCache } = await import("./node-cache-
|
|
27
|
+
const { NodeCache } = await import("./node-cache-43c88aed.mjs");
|
|
28
28
|
this.cache = await NodeCache(this.cacheDir);
|
|
29
29
|
}
|
|
30
30
|
} catch (e) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const makeCacheDir = async (dir, fs) => {
|
|
2
|
-
const path =
|
|
3
|
-
const os =
|
|
2
|
+
const path = require("node:path");
|
|
3
|
+
const os = require("node:os");
|
|
4
4
|
if (typeof dir !== "string" || !dir.trim()) {
|
|
5
5
|
throw new Error("Invalid directory path");
|
|
6
6
|
}
|
|
@@ -18,9 +18,8 @@ const makeCacheDir = async (dir, fs) => {
|
|
|
18
18
|
return cacheDir;
|
|
19
19
|
};
|
|
20
20
|
const NodeCache = async (dir) => {
|
|
21
|
-
const fs =
|
|
22
|
-
|
|
23
|
-
const { createHash } = await import("./__vite-browser-external-d06ac358.mjs");
|
|
21
|
+
const fs = require("node:fs");
|
|
22
|
+
const { createHash } = require("node:crypto");
|
|
24
23
|
const cacheDir = await makeCacheDir(dir, fs);
|
|
25
24
|
return {
|
|
26
25
|
makeKey: (key) => {
|
package/package.json
CHANGED