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

@instantdb/admin

Package Overview
Dependencies
Maintainers
4
Versions
196
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instantdb/admin - npm Package Compare versions

Comparing version 0.10.3 to 0.10.4

29

dist/index.d.ts
import { tx, TransactionChunk } from "@instantdb/core";
import * as uuid from "uuid";
import { User, AuthToken } from "@instantdb/core";
type WhereClause = {
declare type WhereClause = {
[key: string]: string | number | boolean;
};
type $Option = {
declare type $Option = {
$?: {

@@ -12,24 +11,24 @@ where: WhereClause;

};
type Subquery = {
declare type Subquery = {
[namespace: string]: NamespaceVal;
};
type NamespaceVal = $Option | ($Option & Subquery);
declare type NamespaceVal = $Option | ($Option & Subquery);
interface Query {
[namespace: string]: NamespaceVal;
}
type InstantObject = {
declare type InstantObject = {
id: string;
[prop: string]: any;
};
type ResponseObject<K, Schema> = K extends keyof Schema ? {
declare type ResponseObject<K, Schema> = K extends keyof Schema ? {
id: string;
} & Schema[K] : InstantObject;
type IsEmptyObject<T> = T extends Record<string, never> ? true : false;
type ResponseOf<Q, Schema> = {
declare type IsEmptyObject<T> = T extends Record<string, never> ? true : false;
declare type ResponseOf<Q, Schema> = {
[K in keyof Q]: IsEmptyObject<Q[K]> extends true ? ResponseObject<K, Schema>[] : (ResponseOf<Q[K], Schema> & ResponseObject<K, Schema>)[];
};
type Remove$<T> = T extends object ? {
declare type Remove$<T> = T extends object ? {
[K in keyof T as Exclude<K, "$">]: Remove$<T[K]>;
} : T;
type QueryResponse<T, Schema> = ResponseOf<{
declare type QueryResponse<T, Schema> = ResponseOf<{
[K in keyof T]: Remove$<T[K]>;

@@ -59,6 +58,6 @@ }, Schema>;

* */
type Exactly<Parent, Child extends Parent> = Parent & {
declare type Exactly<Parent, Child extends Parent> = Parent & {
[K in keyof Child]: K extends keyof Parent ? Child[K] : never;
};
type Config = {
declare type Config = {
appId: string;

@@ -68,6 +67,6 @@ adminToken: string;

};
type FilledConfig = Config & {
declare type FilledConfig = Config & {
apiURI: string;
};
declare const id: (<T extends ArrayLike<number>>(options: uuid.V4Options, buffer: T, offset?: number) => T) & ((options?: uuid.V4Options) => string);
declare const id: any;
/**

@@ -74,0 +73,0 @@ *

import { tx, TransactionChunk } from "@instantdb/core";
import * as uuid from "uuid";
import { User, AuthToken } from "@instantdb/core";
type WhereClause = {
declare type WhereClause = {
[key: string]: string | number | boolean;
};
type $Option = {
declare type $Option = {
$?: {

@@ -12,24 +11,24 @@ where: WhereClause;

};
type Subquery = {
declare type Subquery = {
[namespace: string]: NamespaceVal;
};
type NamespaceVal = $Option | ($Option & Subquery);
declare type NamespaceVal = $Option | ($Option & Subquery);
interface Query {
[namespace: string]: NamespaceVal;
}
type InstantObject = {
declare type InstantObject = {
id: string;
[prop: string]: any;
};
type ResponseObject<K, Schema> = K extends keyof Schema ? {
declare type ResponseObject<K, Schema> = K extends keyof Schema ? {
id: string;
} & Schema[K] : InstantObject;
type IsEmptyObject<T> = T extends Record<string, never> ? true : false;
type ResponseOf<Q, Schema> = {
declare type IsEmptyObject<T> = T extends Record<string, never> ? true : false;
declare type ResponseOf<Q, Schema> = {
[K in keyof Q]: IsEmptyObject<Q[K]> extends true ? ResponseObject<K, Schema>[] : (ResponseOf<Q[K], Schema> & ResponseObject<K, Schema>)[];
};
type Remove$<T> = T extends object ? {
declare type Remove$<T> = T extends object ? {
[K in keyof T as Exclude<K, "$">]: Remove$<T[K]>;
} : T;
type QueryResponse<T, Schema> = ResponseOf<{
declare type QueryResponse<T, Schema> = ResponseOf<{
[K in keyof T]: Remove$<T[K]>;

@@ -59,6 +58,6 @@ }, Schema>;

* */
type Exactly<Parent, Child extends Parent> = Parent & {
declare type Exactly<Parent, Child extends Parent> = Parent & {
[K in keyof Child]: K extends keyof Parent ? Child[K] : never;
};
type Config = {
declare type Config = {
appId: string;

@@ -68,6 +67,6 @@ adminToken: string;

};
type FilledConfig = Config & {
declare type FilledConfig = Config & {
apiURI: string;
};
declare const id: (<T extends ArrayLike<number>>(options: uuid.V4Options, buffer: T, offset?: number) => T) & ((options?: uuid.V4Options) => string);
declare const id: any;
/**

@@ -74,0 +73,0 @@ *

{
"name": "@instantdb/admin",
"version": "0.10.3",
"version": "0.10.4",
"description": "Admin SDK for Instant DB",

@@ -27,5 +27,5 @@ "main": "dist/index.js",

"dependencies": {
"@instantdb/core": "0.10.3",
"@instantdb/core": "0.10.4",
"uuid": "^9.0.1"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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