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

arangojs

Package Overview
Dependencies
Maintainers
4
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 7.6.0 to 7.6.1

2

aql.d.ts

@@ -71,3 +71,3 @@ /**

*/
export declare type AqlValue = ArangoCollection | View | Graph | GeneratedAqlQuery | AqlLiteral | string | number | boolean | null | undefined | Record<string, unknown> | any[];
export declare type AqlValue = ArangoCollection | View | Graph | GeneratedAqlQuery | AqlLiteral | string | number | boolean | null | undefined | Record<string, any> | any[];
/**

@@ -74,0 +74,0 @@ * Indicates whether the given value is an {@link AqlQuery}.

@@ -17,2 +17,11 @@ # Changelog

## [7.6.1] - 2021-10-26
### Fixed
- Changed all uses of `Record<string, unknown>` to `Record<string, any>` [#750](https://github.com/arangodb/arangojs/issues/750)
This should allow using more specific types without having to implement
index signatures.
## [7.6.0] - 2021-10-20

@@ -1229,2 +1238,3 @@

[7.6.1]: https://github.com/arangodb/arangojs/compare/v7.6.0...v7.6.1
[7.6.0]: https://github.com/arangodb/arangojs/compare/v7.5.0...v7.6.0

@@ -1231,0 +1241,0 @@ [7.5.0]: https://github.com/arangodb/arangojs/compare/v7.4.0...v7.5.0

@@ -375,5 +375,7 @@ /**

* const result = await cursor.reduce((accumulator, currentBatch) => {
* accumulator[
* currentBatch[0] % 2 === 0 ? "even" : "odd"
* ].push(...currentBatch);
* if (currentBatch[0] % 2 === 0) {
* accumulator.even.push(...currentBatch);
* } else {
* accumulator.odd.push(...currentBatch);
* }
* return accumulator;

@@ -387,3 +389,3 @@ * }, { odd: [], even: [] });

* const even = [];
* for await (const item of cursor) {
* for await (const currentBatch of cursor) {
* if (currentBatch[0] % 2 === 0) {

@@ -702,3 +704,7 @@ * even.push(...currentBatch);

* const result = await cursor.reduce((accumulator, currentValue) => {
* accumulator[currentValue % 2 === 0 ? "even" : "odd"].push(currentValue);
* if (currentValue % 2 === 0) {
* accumulator.even.push(...currentValue);
* } else {
* accumulator.odd.push(...currentValue);
* }
* return accumulator;

@@ -712,3 +718,3 @@ * }, { odd: [], even: [] });

* const even = [];
* for await (const item of cursor) {
* for await (const currentValue of cursor) {
* if (currentValue % 2 === 0) {

@@ -715,0 +721,0 @@ * even.push(currentValue);

@@ -45,15 +45,15 @@ /**

*/
export declare type DocumentData<T extends Record<string, unknown> = any> = T & Partial<DocumentMetadata> & Partial<EdgeMetadata>;
export declare type DocumentData<T extends Record<string, any> = any> = T & Partial<DocumentMetadata> & Partial<EdgeMetadata>;
/**
* Type representing an object that can be stored in an edge collection.
*/
export declare type EdgeData<T extends Record<string, unknown> = any> = T & Partial<DocumentMetadata> & EdgeMetadata;
export declare type EdgeData<T extends Record<string, any> = any> = T & Partial<DocumentMetadata> & EdgeMetadata;
/**
* Type representing a document stored in a collection.
*/
export declare type Document<T extends Record<string, unknown> = any> = T & DocumentMetadata & Partial<EdgeMetadata>;
export declare type Document<T extends Record<string, any> = any> = T & DocumentMetadata & Partial<EdgeMetadata>;
/**
* Type representing an edge document stored in an edge collection.
*/
export declare type Edge<T extends Record<string, unknown> = any> = T & DocumentMetadata & EdgeMetadata;
export declare type Edge<T extends Record<string, any> = any> = T & DocumentMetadata & EdgeMetadata;
/**

@@ -66,3 +66,3 @@ * Type representing patch data for a given object type to represent a payload

*/
export declare type Patch<T = Record<string, unknown>> = {
export declare type Patch<T = Record<string, any>> = {
[K in keyof T]?: T[K] | Patch<T[K]>;

@@ -69,0 +69,0 @@ };

@@ -320,3 +320,3 @@ /**

*/
export declare class GraphVertexCollection<T extends Record<string, unknown> = any> implements ArangoCollection {
export declare class GraphVertexCollection<T extends Record<string, any> = any> implements ArangoCollection {
protected _db: Database;

@@ -553,3 +553,3 @@ protected _name: string;

*/
export declare class GraphEdgeCollection<T extends Record<string, unknown> = any> implements ArangoCollection {
export declare class GraphEdgeCollection<T extends Record<string, any> = any> implements ArangoCollection {
protected _db: Database;

@@ -877,3 +877,3 @@ protected _name: string;

*/
vertexCollection<T extends Record<string, unknown> = any>(collection: string | ArangoCollection): GraphVertexCollection<T>;
vertexCollection<T extends Record<string, any> = any>(collection: string | ArangoCollection): GraphVertexCollection<T>;
/**

@@ -990,3 +990,3 @@ * Fetches all vertex collections of this graph from the database and returns

*/
edgeCollection<T extends Record<string, unknown> = any>(collection: string | ArangoCollection): GraphEdgeCollection<T>;
edgeCollection<T extends Record<string, any> = any>(collection: string | ArangoCollection): GraphEdgeCollection<T>;
/**

@@ -993,0 +993,0 @@ * Fetches all edge collections of this graph from the database and returns

{
"name": "arangojs",
"version": "7.6.0",
"version": "7.6.1",
"engines": {

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

@@ -317,3 +317,3 @@ /**

*/
export declare class View<PropertiesOptions extends Record<string, unknown> = any, Properties extends Record<string, unknown> = any> {
export declare class View<PropertiesOptions extends Record<string, any> = any, Properties extends Record<string, any> = any> {
protected _name: string;

@@ -320,0 +320,0 @@ protected _db: Database;

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