Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xata.io/client

Package Overview
Dependencies
Maintainers
4
Versions
4350
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xata.io/client - npm Package Compare versions

Comparing version 0.0.0-alpha.599b422 to 0.0.0-alpha.5f55dd7

2

dist/index.d.ts

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc