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

arangojs

Package Overview
Dependencies
Maintainers
5
Versions
132
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.0.0-preview.1 to 9.0.0-preview.2

cjs/lib/linkedList.d.ts

4

cjs/collection.js

@@ -519,6 +519,6 @@ "use strict";

//#region indexes
indexes() {
indexes(withHidden = false) {
return this._db.request({
path: "/_api/index",
search: { collection: this._name },
search: { collection: this._name, withHidden: String(withHidden) },
}, (res) => res.parsedBody.indexes);

@@ -525,0 +525,0 @@ }

@@ -13,3 +13,3 @@ /// <reference types="node" />

*/
import { LinkedList } from "x3-linkedlist";
import { LinkedList } from "./lib/linkedList.js";
import { Database } from "./database.js";

@@ -16,0 +16,0 @@ import { ArangojsError, ArangojsResponse, RequestConfig, RequestFunction } from "./lib/request.js";

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

*/
const x3_linkedlist_1 = require("x3-linkedlist");
const linkedList_js_1 = require("./lib/linkedList.js");
const error_js_1 = require("./error.js");

@@ -67,3 +67,3 @@ const codes_js_1 = require("./lib/codes.js");

_retryOnConflict;
_queue = new x3_linkedlist_1.LinkedList();
_queue = new linkedList_js_1.LinkedList();
_databases = new Map();

@@ -76,3 +76,3 @@ _hosts = [];

_precaptureStackTraces;
_queueTimes = new x3_linkedlist_1.LinkedList();
_queueTimes = new linkedList_js_1.LinkedList();
_responseQueueTimeSamples;

@@ -106,3 +106,3 @@ /**

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

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

@@ -10,3 +10,3 @@ /**

*/
import { LinkedList } from "x3-linkedlist";
import { LinkedList } from "./lib/linkedList.js";
import { Database } from "./database.js";

@@ -13,0 +13,0 @@ /**

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

*/
const x3_linkedlist_1 = require("x3-linkedlist");
const linkedList_js_1 = require("./lib/linkedList.js");
/**

@@ -59,3 +59,3 @@ * The `BatchedArrayCursor` provides a batch-wise API to an {@link ArrayCursor}.

constructor(db, body, hostUrl, allowDirtyRead) {
const batches = new x3_linkedlist_1.LinkedList(body.result.length ? [new x3_linkedlist_1.LinkedList(body.result)] : []);
const batches = new linkedList_js_1.LinkedList(body.result.length ? [new linkedList_js_1.LinkedList(body.result)] : []);
this._db = db;

@@ -101,3 +101,3 @@ this._batches = batches;

});
this._batches.push(new x3_linkedlist_1.LinkedList(body.result));
this._batches.push(new linkedList_js_1.LinkedList(body.result));
this._hasMore = body.hasMore;

@@ -104,0 +104,0 @@ this._nextBatchId = body.nextBatchId;

@@ -514,6 +514,6 @@ /**

//#region indexes
indexes() {
indexes(withHidden = false) {
return this._db.request({
path: "/_api/index",
search: { collection: this._name },
search: { collection: this._name, withHidden: String(withHidden) },
}, (res) => res.parsedBody.indexes);

@@ -520,0 +520,0 @@ }

@@ -13,3 +13,3 @@ /// <reference types="node" resolution-mode="require"/>

*/
import { LinkedList } from "x3-linkedlist";
import { LinkedList } from "./lib/linkedList.js";
import { Database } from "./database.js";

@@ -16,0 +16,0 @@ import { ArangojsError, ArangojsResponse, RequestConfig, RequestFunction } from "./lib/request.js";

@@ -11,3 +11,3 @@ /**

*/
import { LinkedList } from "x3-linkedlist";
import { LinkedList } from "./lib/linkedList.js";
import { ArangoError, HttpError, isArangoError, isArangoErrorResponse, isSystemError, } from "./error.js";

@@ -100,3 +100,3 @@ import { ERROR_ARANGO_CONFLICT, ERROR_ARANGO_MAINTENANCE_MODE, } from "./lib/codes.js";

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

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

@@ -10,3 +10,3 @@ /**

*/
import { LinkedList } from "x3-linkedlist";
import { LinkedList } from "./lib/linkedList.js";
import { Database } from "./database.js";

@@ -13,0 +13,0 @@ /**

@@ -10,3 +10,3 @@ /**

*/
import { LinkedList } from "x3-linkedlist";
import { LinkedList } from "./lib/linkedList.js";
/**

@@ -13,0 +13,0 @@ * The `BatchedArrayCursor` provides a batch-wise API to an {@link ArrayCursor}.

{
"name": "arangojs",
"version": "9.0.0-preview.1",
"version": "9.0.0-preview.2",
"engines": {

@@ -61,5 +61,4 @@ "node": ">=18"

"dependencies": {
"@types/node": "^20.11.26",
"x3-linkedlist": "1.2.0"
"@types/node": "^20.11.26"
}
}

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

- [API Documentation](https://arangodb.github.io/arangojs/latest/modules/_index_.html)
- [API Documentation](https://arangodb.github.io/arangojs/latest/modules/index.html)

@@ -34,16 +34,15 @@ - [Changelog](https://arangodb.github.io/arangojs/CHANGELOG)

For use without a compiler, the npm release comes with a precompiled browser
build for evergreen browsers:
You can also use [jsDelivr CDN](https://www.jsdelivr.com) during development:
```js
var arangojs = require("arangojs/web");
```
You can also use [unpkg](https://unpkg.com) during development:
```html
< !-- note the path includes the version number (e.g. 8.0.0) -- >
<script src="https://unpkg.com/arangojs@8.0.0/web.js"></script>
<script>
var db = new arangojs.Database();
<script type="importmap">
{
"imports": {
"arangojs": "https://cdn.jsdelivr.net/npm/arangojs@9.0.0-preview.1/esm/index.js?+esm"
}
}
</script>
<script type="module">
import { Database } from "arangojs";
const db = new Database();
// ...

@@ -53,16 +52,8 @@ </script>

When loading the browser build with a script tag make sure to load the polyfill first:
```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.26.0/polyfill.js"></script>
<script src="https://unpkg.com/arangojs@8.0.0/web.js"></script>
```
## Basic usage example
Modern JavaScript/TypeScript with async/await:
Modern JavaScript/TypeScript with async/await and ES Modules:
```js
// TS: import { Database, aql } from "arangojs";
const { Database, aql } = require("arangojs");
import { Database, aql } from "arangojs";

@@ -104,3 +95,3 @@ const db = new Database();

Old-school JavaScript with promises:
Old-school JavaScript with promises and CommonJS:

@@ -298,3 +289,3 @@ ```js

```js
const { Agent, setGlobalDispatcher } = require("undici");
import { Agent, setGlobalDispatcher } from "undici";

@@ -316,3 +307,3 @@ setGlobalDispatcher(

```js
const { Agent, setGlobalDispatcher } = require("undici");
import { Agent, setGlobalDispatcher } from "undici";

@@ -373,1 +364,4 @@ setGlobalDispatcher(

LICENSE file.
Includes code from [x3-linkedlist](https://github.com/x3cion/x3-linkedlist)
used under the MIT license.

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

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 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

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