@prisma/extension-accelerate
Advanced tools
Comparing version 0.5.0 to 0.6.0
"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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { | ||
@@ -45,3 +22,3 @@ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); | ||
const { origin } = new URL(url); | ||
const https = await facadeImport("node:https"); | ||
const https = await import("node:https"); | ||
return new Promise((resolve, reject) => { | ||
@@ -144,5 +121,1 @@ // we execute the https request and build a fetch response out of it | ||
_NodeHeaders_headers = new WeakMap(); | ||
/** This is needed to obfuscate the import from Cloudflare's bundling. */ | ||
function facadeImport(path) { | ||
return Promise.resolve(`${path}`).then(s => __importStar(require(s))); | ||
} |
@@ -13,3 +13,3 @@ /** | ||
const { origin } = new URL(url); | ||
const https = await facadeImport("node:https"); | ||
const https = await import("node:https"); | ||
return new Promise((resolve, reject) => { | ||
@@ -110,5 +110,1 @@ // we execute the https request and build a fetch response out of it | ||
} | ||
/** This is needed to obfuscate the import from Cloudflare's bundling. */ | ||
function facadeImport(path) { | ||
return import(path); | ||
} |
{ | ||
"name": "@prisma/extension-accelerate", | ||
"type": "module", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "Prisma Client extension for Accelerate", | ||
"sideEffects": false, | ||
"exports": { | ||
".": { | ||
"import": "./dist/esm/index.js", | ||
"require": "./dist/cjs/index.js" | ||
} | ||
"node": { | ||
"import": "./dist/esm/entry.node.js", | ||
"require": "./dist/cjs/entry.node.js" | ||
}, | ||
"require": "./dist/cjs/entry.fetch.js", | ||
"default": "./dist/esm/entry.fetch.js" | ||
}, | ||
"types": "./dist/cjs/index.d.ts", | ||
"types": "./dist/cjs/entry.node.d.ts", | ||
"scripts": { | ||
@@ -26,12 +28,12 @@ "build": "./scripts/build.sh", | ||
"devDependencies": { | ||
"@prisma/client": "^5.1.0", | ||
"@tsconfig/esm": "^1.0.4", | ||
"@tsconfig/node14": "^1.0.3", | ||
"@tsconfig/node18-strictest-esm": "^1.0.1", | ||
"@typescript-eslint/eslint-plugin": "^5.61.0", | ||
"@typescript-eslint/parser": "^5.61.0", | ||
"@prisma/client": "^5.2.0", | ||
"@tsconfig/node-lts": "^18.12.4", | ||
"@tsconfig/node16": "^16.1.1", | ||
"@tsconfig/strictest": "^2.0.1", | ||
"@typescript-eslint/eslint-plugin": "^6.4.1", | ||
"@typescript-eslint/parser": "^6.4.1", | ||
"dotenv": "^16.3.1", | ||
"eslint": "^8.44.0", | ||
"prettier": "2.8.8", | ||
"prisma": "^5.1.0", | ||
"eslint": "^8.47.0", | ||
"prettier": "^3.0.2", | ||
"prisma": "^5.2.0", | ||
"ts-node": "^10.9.1", | ||
@@ -38,0 +40,0 @@ "typescript": "^5.1.6" |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
59094
28
1107
1
7