@instantdb/admin
Advanced tools
Comparing version 0.14.19 to 0.14.20
@@ -338,3 +338,3 @@ import { tx, lookup, i, id, type TransactionChunk, type AuthToken, type Exactly, type User, type Query, type QueryResponse, type InstaQLQueryParams, type InstantQuery, type InstantQueryResult, type InstantSchema, type InstantSchemaDatabase, type InstantObject, type InstantEntity, type AttrsDefs, type CardinalityKind, type DataAttrDef, type EntitiesDef, type EntitiesWithLinks, type EntityDef, type InstantGraph, type LinkAttrDef, type LinkDef, type LinksDef, type ResolveAttrs, type ValueTypes } from "@instantdb/core"; | ||
} | ||
export { init, init_experimental, id, tx, lookup, i, type Config, type ImpersonationOpts, type TransactionChunk, type DebugCheckResult, type User, type InstaQLQueryParams, type Query, type QueryResponse, type InstantQuery, type InstantQueryResult, type InstantSchema, type InstantSchemaDatabase, type InstantObject, type InstantEntity, type AttrsDefs, type CardinalityKind, type DataAttrDef, type EntitiesDef, type EntitiesWithLinks, type EntityDef, type InstantGraph, type LinkAttrDef, type LinkDef, type LinksDef, type ResolveAttrs, type ValueTypes, }; | ||
export { init, init_experimental, id, tx, lookup, i, type Config, type ImpersonationOpts, type TransactionChunk, type DebugCheckResult, type InstantAdmin, type User, type InstaQLQueryParams, type Query, type QueryResponse, type InstantQuery, type InstantQueryResult, type InstantSchema, type InstantSchemaDatabase, type InstantObject, type InstantEntity, type AttrsDefs, type CardinalityKind, type DataAttrDef, type EntitiesDef, type EntitiesWithLinks, type EntityDef, type InstantGraph, type LinkAttrDef, type LinkDef, type LinksDef, type ResolveAttrs, type ValueTypes, }; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -345,3 +345,5 @@ "use strict"; | ||
this.getUser = (params) => __awaiter(this, void 0, void 0, function* () { | ||
const qs = Object.entries(params).map(([k, v]) => `${k}=${v}`); | ||
const qs = Object.entries(params) | ||
.map(([k, v]) => `${k}=${encodeURIComponent(v)}`) | ||
.join('&'); | ||
const response = yield jsonFetch(`${this.config.apiURI}/admin/users?${qs}`, { | ||
@@ -348,0 +350,0 @@ method: "GET", |
@@ -338,3 +338,3 @@ import { tx, lookup, i, id, type TransactionChunk, type AuthToken, type Exactly, type User, type Query, type QueryResponse, type InstaQLQueryParams, type InstantQuery, type InstantQueryResult, type InstantSchema, type InstantSchemaDatabase, type InstantObject, type InstantEntity, type AttrsDefs, type CardinalityKind, type DataAttrDef, type EntitiesDef, type EntitiesWithLinks, type EntityDef, type InstantGraph, type LinkAttrDef, type LinkDef, type LinksDef, type ResolveAttrs, type ValueTypes } from "@instantdb/core"; | ||
} | ||
export { init, init_experimental, id, tx, lookup, i, type Config, type ImpersonationOpts, type TransactionChunk, type DebugCheckResult, type User, type InstaQLQueryParams, type Query, type QueryResponse, type InstantQuery, type InstantQueryResult, type InstantSchema, type InstantSchemaDatabase, type InstantObject, type InstantEntity, type AttrsDefs, type CardinalityKind, type DataAttrDef, type EntitiesDef, type EntitiesWithLinks, type EntityDef, type InstantGraph, type LinkAttrDef, type LinkDef, type LinksDef, type ResolveAttrs, type ValueTypes, }; | ||
export { init, init_experimental, id, tx, lookup, i, type Config, type ImpersonationOpts, type TransactionChunk, type DebugCheckResult, type InstantAdmin, type User, type InstaQLQueryParams, type Query, type QueryResponse, type InstantQuery, type InstantQueryResult, type InstantSchema, type InstantSchemaDatabase, type InstantObject, type InstantEntity, type AttrsDefs, type CardinalityKind, type DataAttrDef, type EntitiesDef, type EntitiesWithLinks, type EntityDef, type InstantGraph, type LinkAttrDef, type LinkDef, type LinksDef, type ResolveAttrs, type ValueTypes, }; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -336,3 +336,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
this.getUser = (params) => __awaiter(this, void 0, void 0, function* () { | ||
const qs = Object.entries(params).map(([k, v]) => `${k}=${v}`); | ||
const qs = Object.entries(params) | ||
.map(([k, v]) => `${k}=${encodeURIComponent(v)}`) | ||
.join('&'); | ||
const response = yield jsonFetch(`${this.config.apiURI}/admin/users?${qs}`, { | ||
@@ -339,0 +341,0 @@ method: "GET", |
{ | ||
"name": "@instantdb/admin", | ||
"version": "v0.14.19", | ||
"version": "v0.14.20", | ||
"description": "Admin SDK for Instant DB", | ||
@@ -28,4 +28,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@instantdb/core": "v0.14.19" | ||
"@instantdb/core": "v0.14.20" | ||
} | ||
} |
@@ -474,3 +474,6 @@ import { | ||
): Promise<User> => { | ||
const qs = Object.entries(params).map(([k, v]) => `${k}=${v}`); | ||
const qs = Object.entries(params) | ||
.map(([k, v]) => `${k}=${encodeURIComponent(v)}`) | ||
.join('&'); | ||
const response: { user: User } = await jsonFetch( | ||
@@ -681,2 +684,3 @@ `${this.config.apiURI}/admin/users?${qs}`, | ||
type DebugCheckResult, | ||
type InstantAdmin, | ||
@@ -683,0 +687,0 @@ // core types |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
152049
2335
22
8
194
41
Updated@instantdb/core@v0.14.20