@instantdb/admin
Advanced tools
Comparing version 0.11.3 to 0.11.4
import { tx, lookup, TransactionChunk } from "@instantdb/core"; | ||
import { User, AuthToken } from "@instantdb/core"; | ||
import { User, AuthToken, id } from "@instantdb/core"; | ||
type NonEmpty<T> = { | ||
@@ -119,3 +119,2 @@ [K in keyof T]-?: Required<Pick<T, K>>; | ||
}; | ||
declare const id: any; | ||
/** | ||
@@ -122,0 +121,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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -40,5 +17,4 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
Object.defineProperty(exports, "lookup", { enumerable: true, get: function () { return core_1.lookup; } }); | ||
const uuid = __importStar(require("uuid")); | ||
const id = uuid.v4; | ||
exports.id = id; | ||
const core_2 = require("@instantdb/core"); | ||
Object.defineProperty(exports, "id", { enumerable: true, get: function () { return core_2.id; } }); | ||
function configWithDefaults(config) { | ||
@@ -396,8 +372,2 @@ const defaultConfig = { | ||
} | ||
// legacy code below | ||
function assert(condition, msg) { | ||
if (!condition) { | ||
throw new Error("[assertion error] " + msg); | ||
} | ||
} | ||
//# sourceMappingURL=index.js.map |
import { tx, lookup, TransactionChunk } from "@instantdb/core"; | ||
import { User, AuthToken } from "@instantdb/core"; | ||
import { User, AuthToken, id } from "@instantdb/core"; | ||
type NonEmpty<T> = { | ||
@@ -119,3 +119,2 @@ [K in keyof T]-?: Required<Pick<T, K>>; | ||
}; | ||
declare const id: any; | ||
/** | ||
@@ -122,0 +121,0 @@ * |
@@ -11,4 +11,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { tx, lookup, getOps } from "@instantdb/core"; | ||
import * as uuid from "uuid"; | ||
const id = uuid.v4; | ||
import { id } from "@instantdb/core"; | ||
function configWithDefaults(config) { | ||
@@ -367,8 +366,2 @@ const defaultConfig = { | ||
export { init, id, tx, lookup, }; | ||
// legacy code below | ||
function assert(condition, msg) { | ||
if (!condition) { | ||
throw new Error("[assertion error] " + msg); | ||
} | ||
} | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@instantdb/admin", | ||
"version": "0.11.3", | ||
"version": "0.11.4", | ||
"description": "Admin SDK for Instant DB", | ||
@@ -27,5 +27,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@instantdb/core": "0.11.3", | ||
"uuid": "^9.0.1" | ||
"@instantdb/core": "0.11.4" | ||
} | ||
} |
import { tx, lookup, TransactionChunk, getOps } from "@instantdb/core"; | ||
import * as uuid from "uuid"; | ||
import { User, AuthToken } from "@instantdb/core"; | ||
import { User, AuthToken, id } from "@instantdb/core"; | ||
@@ -145,4 +144,2 @@ // Query Types | ||
const id = uuid.v4; | ||
function configWithDefaults(config: Config): FilledConfig { | ||
@@ -574,9 +571,1 @@ const defaultConfig = { | ||
}; | ||
// legacy code below | ||
function assert(condition: any, msg?: string): asserts condition { | ||
if (!condition) { | ||
throw new Error("[assertion error] " + msg); | ||
} | ||
} |
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
1
90378
1975
+ Added@instantdb/core@0.11.4(transitive)
- Removeduuid@^9.0.1
- Removed@instantdb/core@0.11.3(transitive)
Updated@instantdb/core@0.11.4