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

edgedb

Package Overview
Dependencies
Maintainers
4
Versions
322
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edgedb - npm Package Compare versions

Comparing version 0.19.16 to 0.20.0

1

dist/codecs/namedtuple.d.ts

@@ -23,3 +23,2 @@ /*!

private subCodecs;
private tupleCls;
private names;

@@ -26,0 +25,0 @@ private namesSet;

14

dist/codecs/namedtuple.js

@@ -24,3 +24,2 @@ "use strict";

const tuple_1 = require("./tuple");
const namedtuple_1 = require("../datatypes/namedtuple");
class NamedTupleCodec extends ifaces_1.Codec {

@@ -35,8 +34,2 @@ constructor(tid, codecs, names) {

});
Object.defineProperty(this, "tupleCls", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "names", {

@@ -57,3 +50,2 @@ enumerable: true,

this.namesSet = new Set(names);
this.tupleCls = (0, namedtuple_1.generateType)(names);
}

@@ -102,3 +94,2 @@ encode(_buf, _object) {

const subCodecs = this.subCodecs;
const cls = this.tupleCls;
if (els !== subCodecs.length) {

@@ -109,3 +100,4 @@ throw new Error(`cannot decode NamedTuple: expected ` +

const elemBuf = buffer_1.ReadBuffer.alloc();
const result = new cls(els);
const names = this.names;
const result = {};
for (let i = 0; i < els; i++) {

@@ -120,3 +112,3 @@ buf.discard(4);

}
result[i] = val;
result[names[i]] = val;
}

@@ -123,0 +115,0 @@ return result;

@@ -26,3 +26,2 @@ /*!

private cardinalities;
private objectType;
constructor(tid: uuid, codecs: ICodec[], names: string[], flags: number[], cards: number[]);

@@ -29,0 +28,0 @@ encode(_buf: WriteBuffer, _object: any): void;

@@ -24,3 +24,3 @@ "use strict";

const consts_1 = require("./consts");
const object_1 = require("../datatypes/object");
const EDGE_POINTER_IS_LINKPROP = 1 << 1;
class ObjectCodec extends ifaces_1.Codec {

@@ -53,12 +53,6 @@ constructor(tid, codecs, names, flags, cards) {

});
Object.defineProperty(this, "objectType", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this.codecs = codecs;
const newNames = new Array(names.length);
for (let i = 0; i < names.length; i++) {
if (flags[i] & object_1.EDGE_POINTER_IS_LINKPROP) {
if (flags[i] & EDGE_POINTER_IS_LINKPROP) {
newNames[i] = `@${names[i]}`;

@@ -73,3 +67,2 @@ }

this.cardinalities = cards;
this.objectType = (0, object_1.generateType)(newNames, flags);
}

@@ -157,3 +150,2 @@ encode(_buf, _object) {

const names = this.names;
const objType = this.objectType;
const els = buf.readUInt32();

@@ -164,3 +156,3 @@ if (els !== codecs.length) {

const elemBuf = buffer_1.ReadBuffer.alloc();
const result = new objType();
const result = {};
for (let i = 0; i < els; i++) {

@@ -167,0 +159,0 @@ buf.discard(4);

@@ -24,3 +24,2 @@ "use strict";

const array_1 = require("./array");
const set_1 = require("../datatypes/set");
class SetCodec extends ifaces_1.Codec {

@@ -53,3 +52,3 @@ constructor(tid, subCodec) {

if (ndims === 0) {
return new set_1.Set(0);
return [];
}

@@ -61,3 +60,3 @@ if (ndims !== 1) {

buf.discard(4);
const result = new set_1.Set(len);
const result = new Array(len);
const elemBuf = buffer_1.ReadBuffer.alloc();

@@ -88,3 +87,3 @@ const subCodec = this.subCodec;

if (ndims === 0) {
return new set_1.Set(0);
return [];
}

@@ -96,3 +95,3 @@ if (ndims !== 1) {

buf.discard(4);
const result = new set_1.Set(len);
const result = new Array(len);
const elemBuf = buffer_1.ReadBuffer.alloc();

@@ -99,0 +98,0 @@ const subCodec = this.subCodec;

@@ -24,8 +24,2 @@ "use strict";

const buffer_1 = require("../primitives/buffer");
const introspect_1 = require("../datatypes/introspect");
class Tuple extends Array {
[introspect_1.introspectMethod]() {
return { kind: "tuple" };
}
}
class TupleCodec extends ifaces_1.Codec {

@@ -84,3 +78,3 @@ constructor(tid, codecs) {

const elemBuf = buffer_1.ReadBuffer.alloc();
const result = new Tuple(els);
const result = new Array(els);
for (let i = 0; i < els; i++) {

@@ -124,3 +118,3 @@ buf.discard(4);

}
return new Tuple();
return [];
}

@@ -127,0 +121,0 @@ getSubcodecs() {

@@ -49,2 +49,3 @@ /*!

capabilities: number;
explicitObjectids: number;
};

@@ -58,2 +59,3 @@ export declare type MessageHeaders = {

implicitTypeids?: "true";
explicitObjectids?: "false";
}

@@ -60,0 +62,0 @@ export interface ParseOptions {

@@ -27,2 +27,3 @@ "use strict";

capabilities: 0x1001,
explicitObjectids: 0xff05,
};

@@ -20,6 +20,2 @@ /*!

export { ConfigMemory } from "./datatypes/memory";
export type { NamedTuple } from "./datatypes/namedtuple";
export type { ObjectShape } from "./datatypes/object";
export { Set } from "./datatypes/set";
export type { Tuple } from "./datatypes/tuple";
export type { Executor } from "./ifaces";

@@ -30,9 +26,7 @@ export * from "./errors";

import * as buf from "./primitives/buffer";
import * as introspect from "./datatypes/introspect";
export declare const _CodecsRegistry: typeof reg.CodecsRegistry;
export declare const _ReadBuffer: typeof buf.ReadBuffer;
export declare const _introspect: typeof introspect.introspect;
export declare type _ICodec = codecs.ICodec;
import { plugJSBI } from "./primitives/bigint";
export declare const _plugJSBI: typeof plugJSBI;
export declare const _edgedbJsVersion = "0.19.16";
export declare const _edgedbJsVersion = "0.20.0";

@@ -42,3 +42,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports._edgedbJsVersion = exports._plugJSBI = exports._introspect = exports._ReadBuffer = exports._CodecsRegistry = exports.Set = exports.ConfigMemory = exports.RelativeDuration = exports.Duration = exports.LocalTime = exports.LocalDate = exports.LocalDateTime = void 0;
exports._edgedbJsVersion = exports._plugJSBI = exports._ReadBuffer = exports._CodecsRegistry = exports.ConfigMemory = exports.RelativeDuration = exports.Duration = exports.LocalTime = exports.LocalDate = exports.LocalDateTime = void 0;
var datetime_1 = require("./datatypes/datetime");

@@ -52,13 +52,9 @@ Object.defineProperty(exports, "LocalDateTime", { enumerable: true, get: function () { return datetime_1.LocalDateTime; } });

Object.defineProperty(exports, "ConfigMemory", { enumerable: true, get: function () { return memory_1.ConfigMemory; } });
var set_1 = require("./datatypes/set");
Object.defineProperty(exports, "Set", { enumerable: true, get: function () { return set_1.Set; } });
__exportStar(require("./errors"), exports);
const reg = __importStar(require("./codecs/registry"));
const buf = __importStar(require("./primitives/buffer"));
const introspect = __importStar(require("./datatypes/introspect"));
exports._CodecsRegistry = reg.CodecsRegistry;
exports._ReadBuffer = buf.ReadBuffer;
exports._introspect = introspect.introspect;
const bigint_1 = require("./primitives/bigint");
exports._plugJSBI = bigint_1.plugJSBI;
exports._edgedbJsVersion = "0.19.16";
exports._edgedbJsVersion = "0.20.0";

@@ -20,3 +20,2 @@ /*!

import { ICodec } from "./codecs/ifaces";
import { Set } from "./datatypes/set";
import { ParseOptions, PrepareMessageHeaders, ProtocolVersion, QueryArgs } from "./ifaces";

@@ -64,3 +63,3 @@ import { WriteBuffer } from "./primitives/buffer";

private _encodeArgs;
_executeFlow(args: QueryArgs | Buffer, inCodec: ICodec, outCodec: ICodec, result: Set | WriteBuffer): Promise<void>;
_executeFlow(args: QueryArgs | Buffer, inCodec: ICodec, outCodec: ICodec, result: Array<any> | WriteBuffer): Promise<void>;
private _optimisticExecuteFlow;

@@ -67,0 +66,0 @@ private _getQueryCacheKey;

@@ -48,3 +48,2 @@ "use strict";

const tuple_1 = require("./codecs/tuple");
const set_1 = require("./datatypes/set");
const errors = __importStar(require("./errors"));

@@ -677,2 +676,3 @@ const resolve_1 = require("./errors/resolve");

.writeHeaders({
explicitObjectids: "true",
...((_a = options === null || options === void 0 ? void 0 : options.headers) !== null && _a !== void 0 ? _a : {}),

@@ -882,3 +882,6 @@ allowCapabilities: NO_TRANSACTION_CAPABILITIES_BYTES,

wb.beginMessage(chars.$O);
wb.writeHeaders({ allowCapabilities: NO_TRANSACTION_CAPABILITIES_BYTES });
wb.writeHeaders({
allowCapabilities: NO_TRANSACTION_CAPABILITIES_BYTES,
explicitObjectids: "true",
});
wb.writeChar(asJson ? chars.$j : chars.$b);

@@ -974,3 +977,3 @@ wb.writeChar(expectOne ? chars.$o : chars.$m);

const key = this._getQueryCacheKey(query, asJson, expectOne);
const ret = new set_1.Set();
const ret = new Array();
if (this.queryCodecCache.has(key)) {

@@ -977,0 +980,0 @@ const [card, inCodec, outCodec] = this.queryCodecCache.get(key);

{
"name": "edgedb",
"version": "0.19.16",
"version": "0.20.0",
"description": "The official Node.js client library for EdgeDB",

@@ -5,0 +5,0 @@ "homepage": "https://edgedb.com/docs",

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