@xata.io/client
Advanced tools
Comparing version 0.0.0-alpha.599b422 to 0.0.0-alpha.5f55dd7
@@ -167,3 +167,3 @@ export interface XataRecord { | ||
fetch?: unknown; | ||
databaseURL: string; | ||
databaseURL?: string; | ||
branch: BranchStrategyOption; | ||
@@ -170,0 +170,0 @@ apiKey: string; |
@@ -32,3 +32,2 @@ "use strict"; | ||
exports.XataError = exports.BaseClient = exports.RestRespositoryFactory = exports.RestRepository = exports.Repository = exports.Query = exports.includesAll = exports.includesPattern = exports.includesSubstring = exports.includes = exports.contains = exports.isNot = exports.is = exports.pattern = exports.endsWith = exports.startsWith = exports.notExists = exports.exists = exports.le = exports.lte = exports.lt = exports.gte = exports.ge = exports.gt = void 0; | ||
const errors_1 = require("./util/errors"); | ||
const gt = (value) => ({ $gt: value }); | ||
@@ -272,13 +271,6 @@ exports.gt = gt; | ||
this.client = client; | ||
const doWeHaveFetch = typeof fetch !== 'undefined'; | ||
const isInjectedFetchProblematic = !this.client.options.fetch; | ||
if (doWeHaveFetch) { | ||
this.fetch = fetch; | ||
} | ||
else if (isInjectedFetchProblematic) { | ||
throw new Error(errors_1.errors.falsyFetchImplementation); | ||
} | ||
else { | ||
this.fetch = this.client.options.fetch; | ||
} | ||
const fetchImpl = typeof fetch !== 'undefined' ? fetch : this.client.options.fetch; | ||
if (!fetchImpl) | ||
throw new Error('No fetch implementation provided'); | ||
this.fetch = fetchImpl; | ||
Object.defineProperty(this, 'client', { enumerable: false }); | ||
@@ -285,0 +277,0 @@ Object.defineProperty(this, 'fetch', { enumerable: false }); |
{ | ||
"name": "@xata.io/client", | ||
"version": "0.0.0-alpha.599b422", | ||
"version": "0.0.0-alpha.5f55dd7", | ||
"description": "Xata.io SDK for TypeScript and JavaScript", | ||
@@ -9,3 +9,3 @@ "main": "./dist/index.js", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "tsc", | ||
"build": "tsc -p tsconfig.build.json", | ||
"prepack": "npm run build" | ||
@@ -24,3 +24,3 @@ }, | ||
"homepage": "https://github.com/xataio/client-ts/blob/main/client/README.md", | ||
"gitHead": "599b4226bee6ad1f4f68b8667c835f74151f0c8f" | ||
"gitHead": "5f55dd769975e47be68e62774000faf5c473ebdd" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
0
2
42110
7
699