@langchain/core 0.3.58-rc.0 → 0.3.58
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/utils/env.cjs +1 -3
- package/dist/utils/env.js +1 -3
- package/dist/utils/types/zod.cjs +0 -2
- package/dist/utils/types/zod.js +0 -2
- package/package.json +1 -1
package/dist/utils/env.cjs
CHANGED
|
@@ -8,9 +8,7 @@ const isWebWorker = () => typeof globalThis === "object" &&
|
|
|
8
8
|
globalThis.constructor.name === "DedicatedWorkerGlobalScope";
|
|
9
9
|
exports.isWebWorker = isWebWorker;
|
|
10
10
|
const isJsDom = () => (typeof window !== "undefined" && window.name === "nodejs") ||
|
|
11
|
-
(typeof navigator !== "undefined" &&
|
|
12
|
-
(navigator.userAgent.includes("Node.js") ||
|
|
13
|
-
navigator.userAgent.includes("jsdom")));
|
|
11
|
+
(typeof navigator !== "undefined" && navigator.userAgent.includes("jsdom"));
|
|
14
12
|
exports.isJsDom = isJsDom;
|
|
15
13
|
// Supabase Edge Function provides a `Deno` global object
|
|
16
14
|
// without `version` property
|
package/dist/utils/env.js
CHANGED
|
@@ -3,9 +3,7 @@ export const isWebWorker = () => typeof globalThis === "object" &&
|
|
|
3
3
|
globalThis.constructor &&
|
|
4
4
|
globalThis.constructor.name === "DedicatedWorkerGlobalScope";
|
|
5
5
|
export const isJsDom = () => (typeof window !== "undefined" && window.name === "nodejs") ||
|
|
6
|
-
(typeof navigator !== "undefined" &&
|
|
7
|
-
(navigator.userAgent.includes("Node.js") ||
|
|
8
|
-
navigator.userAgent.includes("jsdom")));
|
|
6
|
+
(typeof navigator !== "undefined" && navigator.userAgent.includes("jsdom"));
|
|
9
7
|
// Supabase Edge Function provides a `Deno` global object
|
|
10
8
|
// without `version` property
|
|
11
9
|
export const isDeno = () => typeof Deno !== "undefined";
|
package/dist/utils/types/zod.cjs
CHANGED
|
@@ -344,11 +344,9 @@ exports.getInteropZodObjectShape = getInteropZodObjectShape;
|
|
|
344
344
|
*/
|
|
345
345
|
function extendInteropZodObject(schema, extension) {
|
|
346
346
|
if (isZodSchemaV3(schema)) {
|
|
347
|
-
// z3: .extend exists and works as expected
|
|
348
347
|
return schema.extend(extension);
|
|
349
348
|
}
|
|
350
349
|
if (isZodSchemaV4(schema)) {
|
|
351
|
-
// z4: .extend exists and works as expected
|
|
352
350
|
return core_1.util.extend(schema, extension);
|
|
353
351
|
}
|
|
354
352
|
throw new Error("Schema must be an instance of z3.ZodObject or z4.$ZodObject");
|
package/dist/utils/types/zod.js
CHANGED
|
@@ -328,11 +328,9 @@ export function getInteropZodObjectShape(schema) {
|
|
|
328
328
|
*/
|
|
329
329
|
export function extendInteropZodObject(schema, extension) {
|
|
330
330
|
if (isZodSchemaV3(schema)) {
|
|
331
|
-
// z3: .extend exists and works as expected
|
|
332
331
|
return schema.extend(extension);
|
|
333
332
|
}
|
|
334
333
|
if (isZodSchemaV4(schema)) {
|
|
335
|
-
// z4: .extend exists and works as expected
|
|
336
334
|
return util.extend(schema, extension);
|
|
337
335
|
}
|
|
338
336
|
throw new Error("Schema must be an instance of z3.ZodObject or z4.$ZodObject");
|