@supabase/postgrest-js
Advanced tools
Comparing version 0.37.3 to 0.37.4
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -11,8 +30,4 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PostgrestBuilder = void 0; | ||
const cross_fetch_1 = __importDefault(require("cross-fetch")); | ||
class PostgrestBuilder { | ||
@@ -26,3 +41,3 @@ constructor(builder) { | ||
else if (typeof fetch === 'undefined') { | ||
_fetch = cross_fetch_1.default; | ||
_fetch = (...args) => __awaiter(this, void 0, void 0, function* () { return yield (yield Promise.resolve().then(() => __importStar(require('cross-fetch')))).fetch(...args); }); | ||
} | ||
@@ -29,0 +44,0 @@ else { |
@@ -1,2 +0,2 @@ | ||
export declare const version = "0.37.3"; | ||
export declare const version = "0.37.4"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
// generated by genversion | ||
exports.version = '0.37.3'; | ||
exports.version = '0.37.4'; | ||
//# sourceMappingURL=version.js.map |
@@ -10,3 +10,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
import crossFetch from 'cross-fetch'; | ||
export class PostgrestBuilder { | ||
@@ -20,3 +19,3 @@ constructor(builder) { | ||
else if (typeof fetch === 'undefined') { | ||
_fetch = crossFetch; | ||
_fetch = (...args) => __awaiter(this, void 0, void 0, function* () { return yield (yield import('cross-fetch')).fetch(...args); }); | ||
} | ||
@@ -23,0 +22,0 @@ else { |
@@ -1,2 +0,2 @@ | ||
export declare const version = "0.37.3"; | ||
export declare const version = "0.37.4"; | ||
//# sourceMappingURL=version.d.ts.map |
// generated by genversion | ||
export const version = '0.37.3'; | ||
export const version = '0.37.4'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@supabase/postgrest-js", | ||
"version": "0.37.3", | ||
"version": "0.37.4", | ||
"description": "Isomorphic PostgREST client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,3 +0,1 @@ | ||
import crossFetch from 'cross-fetch' | ||
export type Fetch = typeof fetch | ||
@@ -70,3 +68,3 @@ | ||
} else if (typeof fetch === 'undefined') { | ||
_fetch = crossFetch | ||
_fetch = async (...args) => await (await import('cross-fetch')).fetch(...args) | ||
} else { | ||
@@ -73,0 +71,0 @@ _fetch = fetch |
// generated by genversion | ||
export const version = '0.37.3' | ||
export const version = '0.37.4' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
216010
3979