@prisma/extension-accelerate
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -1,2 +0,2 @@ | ||
export type { AccelerateInfo, AcceleratePromise, PrismaCacheStrategy, } from "./extension.js"; | ||
export * from "./extension.js"; | ||
export declare function withAccelerate(): (client: any) => import("@prisma/client/scripts/default-index.js").PrismaClientExtends<import("@prisma/client/runtime/library.js").InternalArgs<{}, { | ||
@@ -3,0 +3,0 @@ $allModels: { |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.withAccelerate = void 0; | ||
const extension_js_1 = require("./extension.js"); | ||
__exportStar(require("./extension.js"), exports); | ||
function withAccelerate() { | ||
@@ -6,0 +21,0 @@ return (0, extension_js_1.makeAccelerateExtension)(globalThis.fetch); |
@@ -1,2 +0,2 @@ | ||
export type { AccelerateInfo, AcceleratePromise, PrismaCacheStrategy, } from "./extension.js"; | ||
export * from "./extension.js"; | ||
export declare function withAccelerate(): (client: any) => import("@prisma/client/scripts/default-index.js").PrismaClientExtends<import("@prisma/client/runtime/library.js").InternalArgs<{}, { | ||
@@ -3,0 +3,0 @@ $allModels: { |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -6,2 +20,3 @@ exports.withAccelerate = void 0; | ||
const node_fetch_js_1 = require("./node-fetch.js"); | ||
__exportStar(require("./extension.js"), exports); | ||
function withAccelerate() { | ||
@@ -8,0 +23,0 @@ const fetch = "fetch" in globalThis ? globalThis.fetch : node_fetch_js_1.fetch; |
@@ -1,2 +0,2 @@ | ||
export type { AccelerateInfo, AcceleratePromise, PrismaCacheStrategy, } from "./extension.js"; | ||
export * from "./extension.js"; | ||
export declare function withAccelerate(): (client: any) => import("@prisma/client/scripts/default-index.js").PrismaClientExtends<import("@prisma/client/runtime/library.js").InternalArgs<{}, { | ||
@@ -3,0 +3,0 @@ $allModels: { |
import { makeAccelerateExtension } from "./extension.js"; | ||
export * from "./extension.js"; | ||
export function withAccelerate() { | ||
return makeAccelerateExtension(globalThis.fetch); | ||
} |
@@ -1,2 +0,2 @@ | ||
export type { AccelerateInfo, AcceleratePromise, PrismaCacheStrategy, } from "./extension.js"; | ||
export * from "./extension.js"; | ||
export declare function withAccelerate(): (client: any) => import("@prisma/client/scripts/default-index.js").PrismaClientExtends<import("@prisma/client/runtime/library.js").InternalArgs<{}, { | ||
@@ -3,0 +3,0 @@ $allModels: { |
import { makeAccelerateExtension } from "./extension.js"; | ||
import { fetch as nodeFetch } from "./node-fetch.js"; | ||
export * from "./extension.js"; | ||
export function withAccelerate() { | ||
@@ -4,0 +5,0 @@ const fetch = "fetch" in globalThis ? globalThis.fetch : nodeFetch; |
{ | ||
"name": "@prisma/extension-accelerate", | ||
"type": "module", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Prisma Client extension for Accelerate", | ||
@@ -6,0 +6,0 @@ "sideEffects": false, |
73758
1358