New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

arangojs

Package Overview
Dependencies
Maintainers
5
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arangojs - npm Package Compare versions

Comparing version 9.1.0 to 9.2.0

4

analyzer.d.ts

@@ -881,2 +881,6 @@ /**

/**
* Database this analyzer belongs to.
*/
get database(): Database;
/**
* @internal

@@ -883,0 +887,0 @@ *

@@ -881,2 +881,6 @@ /**

/**
* Database this analyzer belongs to.
*/
get database(): Database;
/**
* @internal

@@ -883,0 +887,0 @@ *

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

/**
* Database this analyzer belongs to.
*/
get database() {
return this._db;
}
/**
* @internal

@@ -31,0 +37,0 @@ *

@@ -84,2 +84,5 @@ "use strict";

}
get database() {
return this._db;
}
get name() {

@@ -192,6 +195,7 @@ return this._name;

}
truncate() {
truncate(options) {
return this._db.request({
method: "PUT",
path: `/_api/collection/${this._name}/truncate`,
search: options,
});

@@ -198,0 +202,0 @@ }

2

cjs/connection.js

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

this._headers.set("x-arango-version", String(this._arangoVersion));
this._headers.set("x-arango-driver", `arangojs/9.1.0 (cloud)`);
this._headers.set("x-arango-driver", `arangojs/9.2.0 (cloud)`);
this._loadBalancingStrategy = config.loadBalancingStrategy ?? "NONE";

@@ -106,0 +106,0 @@ this._precaptureStackTraces = Boolean(config.precaptureStackTraces);

@@ -175,2 +175,10 @@ /**

/**
* Database this cursor belongs to.
*/
get database(): Database;
/**
* ID of this cursor.
*/
get id(): string | undefined;
/**
* An {@link ArrayCursor} providing item-wise access to the cursor result set.

@@ -571,2 +579,10 @@ *

/**
* Database this cursor belongs to.
*/
get database(): Database;
/**
* ID of this cursor.
*/
get id(): string | undefined;
/**
* A {@link BatchedArrayCursor} providing batch-wise access to the cursor

@@ -573,0 +589,0 @@ * result set.

@@ -104,2 +104,14 @@ "use strict";

/**
* Database this cursor belongs to.
*/
get database() {
return this._db;
}
/**
* ID of this cursor.
*/
get id() {
return this._id;
}
/**
* An {@link ArrayCursor} providing item-wise access to the cursor result set.

@@ -504,2 +516,14 @@ *

/**
* Database this cursor belongs to.
*/
get database() {
return this._batches.database;
}
/**
* ID of this cursor.
*/
get id() {
return this._batches.id;
}
/**
* A {@link BatchedArrayCursor} providing batch-wise access to the cursor

@@ -506,0 +530,0 @@ * result set.

@@ -346,2 +346,6 @@ /**

/**
* Database this vertex collection belongs to.
*/
get database(): Database;
/**
* Name of the collection.

@@ -578,2 +582,6 @@ */

/**
* Database this edge collection belongs to.
*/
get database(): Database;
/**
* Name of the collection.

@@ -813,2 +821,6 @@ */

/**
* Database this graph belongs to.
*/
get database(): Database;
/**
* Name of the graph.

@@ -815,0 +827,0 @@ */

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

/**
* Database this vertex collection belongs to.
*/
get database() {
return this._db;
}
/**
* Name of the collection.

@@ -248,2 +254,8 @@ */

/**
* Database this edge collection belongs to.
*/
get database() {
return this._db;
}
/**
* Name of the collection.

@@ -392,4 +404,4 @@ */

constructor(db, name) {
this._db = db;
this._name = name;
this._db = db;
}

@@ -405,2 +417,8 @@ /**

/**
* Database this graph belongs to.
*/
get database() {
return this._db;
}
/**
* Name of the graph.

@@ -407,0 +425,0 @@ */

@@ -18,2 +18,6 @@ import { Database } from "./database.js";

/**
* Database this job belongs to.
*/
get database(): Database;
/**
* The job's ID.

@@ -20,0 +24,0 @@ */

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

/**
* Database this job belongs to.
*/
get database() {
return this._db;
}
/**
* The job's ID.

@@ -26,0 +32,0 @@ */

@@ -27,2 +27,14 @@ /// <reference types="node" />

/**
* Database this route belongs to.
*/
get database(): Database;
/**
* Path of this route.
*/
get path(): string;
/**
* Headers of this route.
*/
get headers(): Headers;
/**
* Creates a new route relative to this route that inherits any of its default

@@ -29,0 +41,0 @@ * HTTP headers.

@@ -25,2 +25,20 @@ "use strict";

/**
* Database this route belongs to.
*/
get database() {
return this._db;
}
/**
* Path of this route.
*/
get path() {
return this._path;
}
/**
* Headers of this route.
*/
get headers() {
return this._headers;
}
/**
* Creates a new route relative to this route that inherits any of its default

@@ -27,0 +45,0 @@ * HTTP headers.

@@ -62,2 +62,6 @@ import { Database } from "./database.js";

/**
* Database this transaction belongs to.
*/
get database(): Database;
/**
* Unique identifier of this transaction.

@@ -64,0 +68,0 @@ *

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

/**
* Database this transaction belongs to.
*/
get database() {
return this._db;
}
/**
* Unique identifier of this transaction.

@@ -39,0 +45,0 @@ *

@@ -445,2 +445,6 @@ /**

/**
* Database this view belongs to.
*/
get database(): Database;
/**
* Name of the View.

@@ -447,0 +451,0 @@ */

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

/**
* Database this view belongs to.
*/
get database() {
return this._db;
}
/**
* Name of the View.

@@ -39,0 +45,0 @@ */

@@ -175,2 +175,10 @@ /**

/**
* Database this cursor belongs to.
*/
get database(): Database;
/**
* ID of this cursor.
*/
get id(): string | undefined;
/**
* An {@link ArrayCursor} providing item-wise access to the cursor result set.

@@ -571,2 +579,10 @@ *

/**
* Database this cursor belongs to.
*/
get database(): Database;
/**
* ID of this cursor.
*/
get id(): string | undefined;
/**
* A {@link BatchedArrayCursor} providing batch-wise access to the cursor

@@ -573,0 +589,0 @@ * result set.

@@ -881,2 +881,6 @@ /**

/**
* Database this analyzer belongs to.
*/
get database(): Database;
/**
* @internal

@@ -883,0 +887,0 @@ *

@@ -25,2 +25,8 @@ import { isArangoError } from "./error.js";

/**
* Database this analyzer belongs to.
*/
get database() {
return this._db;
}
/**
* @internal

@@ -27,0 +33,0 @@ *

@@ -79,2 +79,5 @@ /**

}
get database() {
return this._db;
}
get name() {

@@ -187,6 +190,7 @@ return this._name;

}
truncate() {
truncate(options) {
return this._db.request({
method: "PUT",
path: `/_api/collection/${this._name}/truncate`,
search: options,
});

@@ -193,0 +197,0 @@ }

@@ -99,3 +99,3 @@ /**

this._headers.set("x-arango-version", String(this._arangoVersion));
this._headers.set("x-arango-driver", `arangojs/9.1.0 (cloud)`);
this._headers.set("x-arango-driver", `arangojs/9.2.0 (cloud)`);
this._loadBalancingStrategy = config.loadBalancingStrategy ?? "NONE";

@@ -102,0 +102,0 @@ this._precaptureStackTraces = Boolean(config.precaptureStackTraces);

@@ -175,2 +175,10 @@ /**

/**
* Database this cursor belongs to.
*/
get database(): Database;
/**
* ID of this cursor.
*/
get id(): string | undefined;
/**
* An {@link ArrayCursor} providing item-wise access to the cursor result set.

@@ -571,2 +579,10 @@ *

/**
* Database this cursor belongs to.
*/
get database(): Database;
/**
* ID of this cursor.
*/
get id(): string | undefined;
/**
* A {@link BatchedArrayCursor} providing batch-wise access to the cursor

@@ -573,0 +589,0 @@ * result set.

@@ -101,2 +101,14 @@ /**

/**
* Database this cursor belongs to.
*/
get database() {
return this._db;
}
/**
* ID of this cursor.
*/
get id() {
return this._id;
}
/**
* An {@link ArrayCursor} providing item-wise access to the cursor result set.

@@ -500,2 +512,14 @@ *

/**
* Database this cursor belongs to.
*/
get database() {
return this._batches.database;
}
/**
* ID of this cursor.
*/
get id() {
return this._batches.id;
}
/**
* A {@link BatchedArrayCursor} providing batch-wise access to the cursor

@@ -502,0 +526,0 @@ * result set.

@@ -346,2 +346,6 @@ /**

/**
* Database this vertex collection belongs to.
*/
get database(): Database;
/**
* Name of the collection.

@@ -578,2 +582,6 @@ */

/**
* Database this edge collection belongs to.
*/
get database(): Database;
/**
* Name of the collection.

@@ -813,2 +821,6 @@ */

/**
* Database this graph belongs to.
*/
get database(): Database;
/**
* Name of the graph.

@@ -815,0 +827,0 @@ */

@@ -81,2 +81,8 @@ /**

/**
* Database this vertex collection belongs to.
*/
get database() {
return this._db;
}
/**
* Name of the collection.

@@ -243,2 +249,8 @@ */

/**
* Database this edge collection belongs to.
*/
get database() {
return this._db;
}
/**
* Name of the collection.

@@ -386,4 +398,4 @@ */

constructor(db, name) {
this._db = db;
this._name = name;
this._db = db;
}

@@ -399,2 +411,8 @@ /**

/**
* Database this graph belongs to.
*/
get database() {
return this._db;
}
/**
* Name of the graph.

@@ -401,0 +419,0 @@ */

@@ -18,2 +18,6 @@ import { Database } from "./database.js";

/**
* Database this job belongs to.
*/
get database(): Database;
/**
* The job's ID.

@@ -20,0 +24,0 @@ */

@@ -21,2 +21,8 @@ /**

/**
* Database this job belongs to.
*/
get database() {
return this._db;
}
/**
* The job's ID.

@@ -23,0 +29,0 @@ */

@@ -27,2 +27,14 @@ /// <reference types="node" resolution-mode="require"/>

/**
* Database this route belongs to.
*/
get database(): Database;
/**
* Path of this route.
*/
get path(): string;
/**
* Headers of this route.
*/
get headers(): Headers;
/**
* Creates a new route relative to this route that inherits any of its default

@@ -29,0 +41,0 @@ * HTTP headers.

@@ -22,2 +22,20 @@ import { mergeHeaders } from "./lib/mergeHeaders.js";

/**
* Database this route belongs to.
*/
get database() {
return this._db;
}
/**
* Path of this route.
*/
get path() {
return this._path;
}
/**
* Headers of this route.
*/
get headers() {
return this._headers;
}
/**
* Creates a new route relative to this route that inherits any of its default

@@ -24,0 +42,0 @@ * HTTP headers.

@@ -62,2 +62,6 @@ import { Database } from "./database.js";

/**
* Database this transaction belongs to.
*/
get database(): Database;
/**
* Unique identifier of this transaction.

@@ -64,0 +68,0 @@ *

@@ -33,2 +33,8 @@ import { isArangoError } from "./error.js";

/**
* Database this transaction belongs to.
*/
get database() {
return this._db;
}
/**
* Unique identifier of this transaction.

@@ -35,0 +41,0 @@ *

@@ -445,2 +445,6 @@ /**

/**
* Database this view belongs to.
*/
get database(): Database;
/**
* Name of the View.

@@ -447,0 +451,0 @@ */

@@ -33,2 +33,8 @@ import { isArangoError } from "./error.js";

/**
* Database this view belongs to.
*/
get database() {
return this._db;
}
/**
* Name of the View.

@@ -35,0 +41,0 @@ */

@@ -346,2 +346,6 @@ /**

/**
* Database this vertex collection belongs to.
*/
get database(): Database;
/**
* Name of the collection.

@@ -578,2 +582,6 @@ */

/**
* Database this edge collection belongs to.
*/
get database(): Database;
/**
* Name of the collection.

@@ -813,2 +821,6 @@ */

/**
* Database this graph belongs to.
*/
get database(): Database;
/**
* Name of the graph.

@@ -815,0 +827,0 @@ */

@@ -18,2 +18,6 @@ import { Database } from "./database.js";

/**
* Database this job belongs to.
*/
get database(): Database;
/**
* The job's ID.

@@ -20,0 +24,0 @@ */

{
"name": "arangojs",
"version": "9.1.0",
"version": "9.2.0",
"engines": {

@@ -5,0 +5,0 @@ "node": ">=18"

@@ -39,3 +39,3 @@ # ArangoDB JavaScript Driver

"imports": {
"arangojs": "https://cdn.jsdelivr.net/npm/arangojs@9.0.0-preview.1/esm/index.js?+esm"
"arangojs": "https://cdn.jsdelivr.net/npm/arangojs@9.0.0/esm/index.js?+esm"
}

@@ -161,3 +161,3 @@ }

### Missing functions or unexpected server errors
### Unexpected server errors

@@ -167,3 +167,3 @@ Please make sure you are using the latest version of this driver and that the

Changes in the major version number of arangojs (e.g. 7.x.y -> 8.0.0) indicate
Changes in the major version number of arangojs (e.g. 8.x.y -> 9.0.0) indicate
backwards-incompatible changes in the arangojs API that may require changes in

@@ -176,17 +176,2 @@ your code when upgrading your version of arangojs.

**Note**: As of June 2018 ArangoDB 2.8 has reached its End of Life and is no
longer supported in arangojs 7 and later. If your code needs to work with
ArangoDB 2.8 you can continue using arangojs 6 and enable ArangoDB 2.8
compatibility mode by setting the config option `arangoVersion: 20800` to
enable the ArangoDB 2.8 compatibility mode in arangojs 6.
You can install an older version of arangojs using `npm` or `yarn`:
```sh
# for version 6.x.x
yarn add arangojs@6
# - or -
npm install --save arangojs@6
```
### No code intelligence when using require instead of import

@@ -261,19 +246,2 @@

### Node.js `ReferenceError: window is not defined`
If you compile your Node project using a build tool like Webpack, you may need
to tell it to
[target the correct environment](https://webpack.js.org/configuration/target/):
```diff
// webpack.config.js
+ "target": "node",
```
To support use in both browser and Node environments arangojs uses the
[`package.json` `browser` field](https://github.com/defunctzombie/package-browser-field-spec),
to substitute browser-specific implementations for certain modules.
Build tools like Webpack will respect this field when targetting a browser
environment and may need to be explicitly told you are targetting Node instead.
### Node.js with self-signed HTTPS certificates

@@ -316,2 +284,5 @@

This is a [known limitation](https://github.com/orgs/nodejs/discussions/44038#discussioncomment-5701073)
of Node.js at the time of this writing.
When using arangojs in the browser, self-signed HTTPS certificates need to

@@ -340,3 +311,4 @@ be trusted by the browser or use a trusted root certificate.

Please refer to the documentation of this method for additional examples.
Please refer to the [documentation of the `transaction.step` method](https://arangodb.github.io/arangojs/latest/classes/transaction.Transaction.html#step)
for additional examples.

@@ -343,0 +315,0 @@ ### Streaming transactions timeout in cluster

@@ -27,2 +27,14 @@ /// <reference types="node" resolution-mode="require"/>

/**
* Database this route belongs to.
*/
get database(): Database;
/**
* Path of this route.
*/
get path(): string;
/**
* Headers of this route.
*/
get headers(): Headers;
/**
* Creates a new route relative to this route that inherits any of its default

@@ -29,0 +41,0 @@ * HTTP headers.

@@ -62,2 +62,6 @@ import { Database } from "./database.js";

/**
* Database this transaction belongs to.
*/
get database(): Database;
/**
* Unique identifier of this transaction.

@@ -64,0 +68,0 @@ *

@@ -445,2 +445,6 @@ /**

/**
* Database this view belongs to.
*/
get database(): Database;
/**
* Name of the View.

@@ -447,0 +451,0 @@ */

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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 too big to display

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

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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 too big to display

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 too big to display

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

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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

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

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

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

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

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