arangojs 7.8.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +264 -3
- package/CONTRIBUTING.md +1 -1
- package/MIGRATING.md +126 -2
- package/README.md +7 -13
- package/analyzer.d.ts +531 -253
- package/analyzer.d.ts.map +1 -1
- package/analyzer.js +9 -8
- package/analyzer.js.map +1 -1
- package/aql.d.ts +122 -139
- package/aql.d.ts.map +1 -1
- package/aql.js +146 -148
- package/aql.js.map +1 -1
- package/collection.d.ts +311 -310
- package/collection.d.ts.map +1 -1
- package/collection.js +163 -96
- package/collection.js.map +1 -1
- package/connection.d.ts +65 -52
- package/connection.d.ts.map +1 -1
- package/connection.js +142 -140
- package/connection.js.map +1 -1
- package/cursor.d.ts +108 -26
- package/cursor.d.ts.map +1 -1
- package/cursor.js +24 -23
- package/cursor.js.map +1 -1
- package/database.d.ts +298 -330
- package/database.d.ts.map +1 -1
- package/database.js +178 -252
- package/database.js.map +1 -1
- package/documents.d.ts +3 -4
- package/documents.d.ts.map +1 -1
- package/documents.js +0 -1
- package/documents.js.map +1 -1
- package/error.d.ts +3 -6
- package/error.d.ts.map +1 -1
- package/error.js +5 -7
- package/error.js.map +1 -1
- package/foxx-manifest.d.ts +7 -8
- package/foxx-manifest.d.ts.map +1 -1
- package/foxx-manifest.js +1 -1
- package/foxx-manifest.js.map +1 -1
- package/graph.d.ts +38 -56
- package/graph.d.ts.map +1 -1
- package/graph.js +59 -63
- package/graph.js.map +1 -1
- package/index.d.ts +6 -8
- package/index.d.ts.map +1 -1
- package/index.js +1 -6
- package/index.js.map +1 -1
- package/indexes.d.ts +348 -127
- package/indexes.d.ts.map +1 -1
- package/indexes.js +1 -3
- package/indexes.js.map +1 -1
- package/lib/blob.d.ts +0 -2
- package/lib/blob.d.ts.map +1 -1
- package/lib/blob.js +0 -1
- package/lib/blob.js.map +1 -1
- package/lib/btoa.d.ts +1 -3
- package/lib/btoa.d.ts.map +1 -1
- package/lib/btoa.js +3 -5
- package/lib/btoa.js.map +1 -1
- package/lib/btoa.web.d.ts +1 -3
- package/lib/btoa.web.d.ts.map +1 -1
- package/lib/btoa.web.js +4 -6
- package/lib/btoa.web.js.map +1 -1
- package/lib/codes.d.ts +2 -2
- package/lib/codes.d.ts.map +1 -1
- package/lib/codes.js +3 -3
- package/lib/codes.js.map +1 -1
- package/lib/errback.d.ts +0 -2
- package/lib/errback.d.ts.map +1 -1
- package/lib/errback.js.map +1 -1
- package/lib/joinPath.d.ts +0 -2
- package/lib/joinPath.d.ts.map +1 -1
- package/lib/joinPath.js +0 -2
- package/lib/joinPath.js.map +1 -1
- package/lib/joinPath.web.d.ts +1 -3
- package/lib/joinPath.web.d.ts.map +1 -1
- package/lib/joinPath.web.js +7 -4
- package/lib/joinPath.web.js.map +1 -1
- package/lib/multipart.d.ts +0 -4
- package/lib/multipart.d.ts.map +1 -1
- package/lib/multipart.js +16 -37
- package/lib/multipart.js.map +1 -1
- package/lib/multipart.web.d.ts +0 -2
- package/lib/multipart.web.d.ts.map +1 -1
- package/lib/multipart.web.js +0 -2
- package/lib/multipart.web.js.map +1 -1
- package/lib/normalizeUrl.d.ts +0 -2
- package/lib/normalizeUrl.d.ts.map +1 -1
- package/lib/normalizeUrl.js +0 -2
- package/lib/normalizeUrl.js.map +1 -1
- package/lib/omit.d.ts +1 -3
- package/lib/omit.d.ts.map +1 -1
- package/lib/omit.js +1 -2
- package/lib/omit.js.map +1 -1
- package/lib/querystringify.d.ts +4 -0
- package/lib/querystringify.d.ts.map +1 -0
- package/lib/querystringify.js +20 -0
- package/lib/querystringify.js.map +1 -0
- package/lib/querystringify.web.d.ts +2 -0
- package/lib/querystringify.web.d.ts.map +1 -0
- package/lib/querystringify.web.js +30 -0
- package/lib/querystringify.web.js.map +1 -0
- package/lib/request.d.ts +0 -1
- package/lib/request.d.ts.map +1 -1
- package/lib/request.js +6 -3
- package/lib/request.js.map +1 -1
- package/lib/request.node.d.ts +2 -8
- package/lib/request.node.d.ts.map +1 -1
- package/lib/request.node.js +16 -7
- package/lib/request.node.js.map +1 -1
- package/lib/request.web.d.ts +2 -3
- package/lib/request.web.d.ts.map +1 -1
- package/lib/request.web.js +26 -29
- package/lib/request.web.js.map +1 -1
- package/lib/xhr.d.ts +1 -3
- package/lib/xhr.d.ts.map +1 -1
- package/lib/xhr.js +0 -2
- package/lib/xhr.js.map +1 -1
- package/package.json +5 -6
- package/route.d.ts +1 -2
- package/route.d.ts.map +1 -1
- package/route.js +1 -2
- package/route.js.map +1 -1
- package/transaction.d.ts +31 -6
- package/transaction.d.ts.map +1 -1
- package/transaction.js +13 -6
- package/transaction.js.map +1 -1
- package/view.d.ts +237 -181
- package/view.d.ts.map +1 -1
- package/view.js +17 -25
- package/view.js.map +1 -1
- package/web.js +1 -1
- package/web.js.map +1 -1
- package/lib/error.d.ts +0 -18
- package/lib/error.d.ts.map +0 -1
- package/lib/error.js +0 -18
- package/lib/error.js.map +0 -1
package/indexes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexes.js","sourceRoot":"","sources":["../src/indexes.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAubH;;;GAGG;AACH,SAAgB,YAAY,CAC1B,QAAuB,EACvB,cAAsB;IAEtB,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QAChC,IAAI,QAAQ,CAAC,EAAE,EAAE;YACf,OAAO,YAAY,CAAC,QAAQ,CAAC,EAAE,EAAE,cAAc,CAAC,CAAC;SAClD;QACD,MAAM,IAAI,KAAK,CACb,iEAAiE,CAClE,CAAC;KACH;IACD,IAAI,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QAC1B,MAAM,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC5C,MAAM,cAAc,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC7C,IAAI,cAAc,KAAK,cAAc,EAAE;YACrC,MAAM,IAAI,KAAK,CACb,aAAa,QAAQ,qCAAqC,cAAc,GAAG,CAC5E,CAAC;SACH;QACD,OAAO,CAAC,cAAc,EAAE,GAAG,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC5C;IACD,OAAO,GAAG,cAAc,IAAI,QAAQ,EAAE,CAAC;AACzC,CAAC;AAvBD,oCAuBC","sourcesContent":["/**\n * ```ts\n * import type {\n * FulltextIndex,\n * GeoIndex,\n * HashIndex,\n * PersistentIndex,\n * PrimaryIndex,\n * SkiplistIndex,\n * TtlIndex,\n * } from \"arangojs/indexes\";\n * ```\n *\n * The \"indexes\" module provides index-related types for TypeScript.\n *\n * @packageDocumentation\n */\n\n/**\n * (MMFiles only.) Options for creating a hash index.\n *\n * When using the RocksDB storage engine, this index type behaves identically\n * to {@link EnsurePersistentIndexOptions}.\n *\n * @deprecated Hash indexes have been deprecated in ArangoDB 3.9 and should be\n * replaced with persistent indexes.\n */\nexport type EnsureHashIndexOptions = {\n /**\n * Type of this index.\n */\n type: \"hash\";\n /**\n * An array of attribute paths.\n */\n fields: string[];\n /**\n * A unique name for this index.\n */\n name?: string;\n /**\n * If set to `true`, a unique index will be created.\n *\n * Default: `false`\n */\n unique?: boolean;\n /**\n * If set to `true`, the index will omit documents that do not contain at\n * least one of the attribute paths in `fields` and these documents will be\n * ignored for uniqueness checks.\n *\n * Default: `false`\n */\n sparse?: boolean;\n /**\n * If set to `false`, array values will not be deduplicated.\n *\n * Default: `true`\n */\n deduplicate?: boolean;\n /**\n * If set to `false`, index selectivity estimates will be disabled for this\n * index.\n *\n * Default: `true`\n */\n estimates?: boolean;\n /**\n * If set to `true`, the index will be created in the background to reduce\n * the write-lock duration for the collection during index creation.\n *\n * Default: `false`\n */\n inBackground?: boolean;\n};\n\n/**\n * (MMFiles only.) Options for creating a skiplist index.\n *\n * When using the RocksDB storage engine, this index type behaves identically\n * to {@link EnsurePersistentIndexOptions}.\n *\n * @deprecated Skiplist indexes have been deprecated in ArangoDB 3.9 and should\n * be replaced with persistent indexes.\n */\nexport type EnsureSkiplistIndexOptions = {\n /**\n * Type of this index.\n */\n type: \"skiplist\";\n /**\n * An array of attribute paths.\n */\n fields: string[];\n /**\n * A unique name for this index.\n */\n name?: string;\n /**\n * If set to `true`, a unique index will be created.\n *\n * Default: `false`\n */\n unique?: boolean;\n /**\n * If set to `true`, the index will omit documents that do not contain at\n * least one of the attribute paths in `fields` and these documents will be\n * ignored for uniqueness checks.\n *\n * Default: `false`\n */\n sparse?: boolean;\n /**\n * If set to `false`, array values will not be deduplicated.\n *\n * Default: `true`\n */\n deduplicate?: boolean;\n /**\n * If set to `false`, index selectivity estimates will be disabled for this\n * index.\n *\n * Default: `true`\n */\n estimates?: boolean;\n /**\n * If set to `true`, the index will be created in the background to reduce\n * the write-lock duration for the collection during index creation.\n *\n * Default: `false`\n */\n inBackground?: boolean;\n};\n\n/**\n * Options for creating a persistent index.\n */\nexport type EnsurePersistentIndexOptions = {\n /**\n * Type of this index.\n */\n type: \"persistent\";\n /**\n * An array of attribute paths.\n */\n fields: string[];\n /**\n * A unique name for this index.\n */\n name?: string;\n /**\n * If set to `true`, a unique index will be created.\n *\n * Default: `false`\n */\n unique?: boolean;\n /**\n * If set to `true`, the index will omit documents that do not contain at\n * least one of the attribute paths in `fields` and these documents will be\n * ignored for uniqueness checks.\n *\n * Default: `false`\n */\n sparse?: boolean;\n /**\n * If set to `false`, index selectivity estimates will be disabled for this\n * index.\n *\n * Default: `true`\n */\n estimates?: boolean;\n /**\n * If set to `true`, the index will be created in the background to reduce\n * the write-lock duration for the collection during index creation.\n *\n * Default: `false`\n */\n inBackground?: boolean;\n};\n\n/**\n * Options for creating a geo index.\n */\nexport type EnsureGeoIndexOptions =\n | {\n type: \"geo\";\n /**\n * If set to `true`, `fields` must be an array containing a single attribute\n * path and the attribute value must be an array with two values, the first\n * of which will be interpreted as the longitude and the second of which will\n * be interpreted as the latitude of the document.\n *\n * Default: `false`\n */\n geoJson?: false;\n /**\n * Attribute paths for the document's latitude and longitude values.\n */\n fields: [string, string];\n /**\n * A unique name for this index.\n */\n name?: string;\n /**\n * If set to `true`, the index will be created in the background to reduce\n * the write-lock duration for the collection during index creation.\n *\n * Default: `false`\n */\n inBackground?: boolean;\n }\n | {\n type: \"geo\";\n /**\n * If set to `true`, `fields` must be an array containing a single attribute\n * path and the attribute value must be an array with two values, the first\n * of which will be interpreted as the longitude and the second of which will\n * be interpreted as the latitude of the document.\n *\n * Default: `false`\n */\n geoJson?: boolean;\n /**\n * An array containing the attribute path for an array containing two values,\n * the first of which will be interpreted as the latitude, the second as the\n * longitude. If `geoJson` is set to `true`, the order is reversed to match\n * the GeoJSON format.\n */\n fields: [string];\n /**\n * A unique name for this index.\n */\n name?: string;\n /**\n * If set to `true`, the index will be created in the background to reduce\n * the write-lock duration for the collection during index creation.\n *\n * Default: `false`\n */\n inBackground?: boolean;\n };\n\n/**\n * Options for creating a fulltext index.\n */\nexport type EnsureFulltextIndexOptions = {\n /**\n * Type of this index.\n */\n type: \"fulltext\";\n /**\n * An array containing exactly one attribute path.\n */\n fields: [string];\n /**\n * A unique name for this index.\n */\n name?: string;\n /**\n * Minimum character length of words to index.\n */\n minLength?: number;\n /**\n * If set to `true`, the index will be created in the background to reduce\n * the write-lock duration for the collection during index creation.\n *\n * Default: `false`\n */\n inBackground?: boolean;\n};\n\n/**\n * Options for creating a TTL index.\n */\nexport type EnsureTtlIndexOptions = {\n /**\n * Type of this index.\n */\n type: \"ttl\";\n /**\n * An array containing exactly one attribute path.\n */\n fields: [string];\n /**\n * A unique name for this index.\n */\n name?: string;\n /**\n * Duration in seconds after the attribute value at which the document will\n * be considered as expired.\n */\n expireAfter: number;\n /**\n * If set to `true`, the index will be created in the background to reduce\n * the write-lock duration for the collection during index creation.\n *\n * Default: `false`\n */\n inBackground?: boolean;\n};\n\n/**\n * Options for creating a ZKD index.\n */\nexport type EnsureZkdIndexOptions = {\n /**\n * Type of this index.\n */\n type: \"zkd\";\n /**\n * An array containing attribute paths for the dimensions.\n */\n fields: string[];\n /**\n * Data type of the dimension attributes.\n */\n fieldValueTypes: \"double\";\n /**\n * A unique name for this index.\n */\n name?: string;\n /**\n * If set to `true`, the index will be created in the background to reduce\n * the write-lock duration for the collection during index creation.\n *\n * Default: `false`\n */\n inBackground?: boolean;\n};\n\n/**\n * Shared attributes of all index types.\n */\nexport type GenericIndex = {\n /**\n * A unique name for this index.\n */\n name?: string;\n /**\n * A unique identifier for this index.\n */\n id: string;\n /**\n * Whether documents not containing at least one of the attribute paths\n * are omitted by this index.\n */\n sparse: boolean;\n /**\n * Whether this index enforces uniqueness for values of its attribute paths.\n */\n unique: boolean;\n};\n\n/**\n * An object representing a persistent index.\n */\nexport type PersistentIndex = GenericIndex & {\n type: \"persistent\";\n fields: string[];\n};\n\n/**\n * An object representing a skiplist index.\n */\nexport type SkiplistIndex = GenericIndex & {\n type: \"skiplist\";\n fields: string[];\n};\n\n/**\n * An object representing a hash index.\n */\nexport type HashIndex = GenericIndex & {\n type: \"hash\";\n fields: string[];\n selectivityEstimate: number;\n};\n\n/**\n * An object representing a primary index.\n */\nexport type PrimaryIndex = GenericIndex & {\n type: \"primary\";\n fields: string[];\n selectivityEstimate: number;\n};\n\n/**\n * An object representing a fulltext index.\n */\nexport type FulltextIndex = GenericIndex & {\n type: \"fulltext\";\n fields: [string];\n minLength: number;\n};\n\n/**\n * An object representing a geo index.\n */\nexport type GeoIndex = GenericIndex & {\n type: \"geo\";\n fields: [string] | [string, string];\n geoJson: boolean;\n bestIndexedLevel: number;\n worstIndexedLevel: number;\n maxNumCoverCells: number;\n};\n\n/**\n * An object representing a TTL index.\n */\nexport type TtlIndex = GenericIndex & {\n type: \"ttl\";\n fields: [string];\n expireAfter: number;\n selectivityEstimate: number;\n};\n\n/**\n * An object representing a TTL index.\n */\nexport type ZkdIndex = GenericIndex & {\n type: \"zkd\";\n fields: string[];\n fieldValueTypes: \"double\";\n};\n\n/**\n * An object representing an index.\n */\nexport type Index =\n | GeoIndex\n | FulltextIndex\n | PersistentIndex\n | PrimaryIndex\n | HashIndex\n | SkiplistIndex\n | TtlIndex\n | ZkdIndex;\n\nexport type ObjectWithId = {\n [key: string]: any;\n id: string;\n};\n\nexport type ObjectWithName = {\n [key: string]: any;\n name: string;\n};\n\n/**\n * Index name, id or object with a `name` or `id` property.\n */\nexport type IndexSelector = ObjectWithId | ObjectWithName | string;\n\n/**\n * @internal\n * @hidden\n */\nexport function _indexHandle(\n selector: IndexSelector,\n collectionName: string\n): string {\n if (typeof selector !== \"string\") {\n if (selector.id) {\n return _indexHandle(selector.id, collectionName);\n }\n throw new Error(\n \"Index handle must be a string or an object with an id attribute\"\n );\n }\n if (selector.includes(\"/\")) {\n const [head, ...tail] = selector.split(\"/\");\n const normalizedHead = head.normalize(\"NFC\");\n if (normalizedHead !== collectionName) {\n throw new Error(\n `Index ID \"${selector}\" does not match collection name \"${collectionName}\"`\n );\n }\n return [normalizedHead, ...tail].join(\"/\");\n }\n return `${collectionName}/${selector}`;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"indexes.js","sourceRoot":"","sources":["../src/indexes.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAypBH;;GAEG;AACH,SAAgB,YAAY,CAC1B,QAAuB,EACvB,cAAsB;IAEtB,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QAChC,IAAI,QAAQ,CAAC,EAAE,EAAE;YACf,OAAO,YAAY,CAAC,QAAQ,CAAC,EAAE,EAAE,cAAc,CAAC,CAAC;SAClD;QACD,MAAM,IAAI,KAAK,CACb,iEAAiE,CAClE,CAAC;KACH;IACD,IAAI,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QAC1B,MAAM,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC5C,MAAM,cAAc,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC7C,IAAI,cAAc,KAAK,cAAc,EAAE;YACrC,MAAM,IAAI,KAAK,CACb,aAAa,QAAQ,qCAAqC,cAAc,GAAG,CAC5E,CAAC;SACH;QACD,OAAO,CAAC,cAAc,EAAE,GAAG,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC5C;IACD,OAAO,GAAG,cAAc,IAAI,QAAQ,EAAE,CAAC;AACzC,CAAC;AAvBD,oCAuBC","sourcesContent":["/**\n * ```ts\n * import type {\n * FulltextIndex,\n * GeoIndex,\n * PersistentIndex,\n * PrimaryIndex,\n * TtlIndex,\n * ZkdIndex,\n * } from \"arangojs/indexes\";\n * ```\n *\n * The \"indexes\" module provides index-related types for TypeScript.\n *\n * @packageDocumentation\n */\n\nimport { AnalyzerFeature } from \"./analyzer\";\nimport { Compression, Direction, TierConsolidationPolicy } from \"./view\";\n\n/**\n * Options for creating a persistent index.\n */\nexport type EnsurePersistentIndexOptions = {\n /**\n * Type of this index.\n */\n type: \"persistent\";\n /**\n * An array of attribute paths.\n */\n fields: string[];\n /**\n * A unique name for this index.\n */\n name?: string;\n /**\n * If set to `true`, a unique index will be created.\n *\n * Default: `false`\n */\n unique?: boolean;\n /**\n * If set to `true`, the index will omit documents that do not contain at\n * least one of the attribute paths in `fields` and these documents will be\n * ignored for uniqueness checks.\n *\n * Default: `false`\n */\n sparse?: boolean;\n /**\n * If set to `false`, inserting duplicate index values from the same\n * document will lead to a unique constraint error if this is a unique index.\n *\n * Default: `true`\n */\n deduplicate?: boolean;\n /**\n * If set to `false`, index selectivity estimates will be disabled for this\n * index.\n *\n * Default: `true`\n */\n estimates?: boolean;\n /**\n * If set to `true`, the index will be created in the background to reduce\n * the write-lock duration for the collection during index creation.\n *\n * Default: `false`\n */\n inBackground?: boolean;\n /**\n * If set to `true`, an in-memory hash cache will be put in front of the\n * persistent index.\n *\n * Default: `false`\n */\n cacheEnabled?: boolean;\n /**\n * An array of attribute paths that will be stored in the index but can not\n * be used for index lookups or sorting but can avoid full document lookups.\n */\n storedValues?: string[];\n};\n\n/**\n * Options for creating a geo index.\n */\nexport type EnsureGeoIndexOptions =\n | {\n type: \"geo\";\n /**\n * If set to `true`, `fields` must be an array containing a single attribute\n * path and the attribute value must be an array with two values, the first\n * of which will be interpreted as the longitude and the second of which will\n * be interpreted as the latitude of the document.\n *\n * Default: `false`\n */\n geoJson?: false;\n /**\n * If set to `true`, the index will use pre-3.10 rules for parsing\n * GeoJSON polygons. This option is always implicitly `true` when using\n * ArangoDB 3.9 or lower.\n */\n legacyPolygons?: boolean;\n /**\n * Attribute paths for the document's latitude and longitude values.\n */\n fields: [string, string];\n /**\n * A unique name for this index.\n */\n name?: string;\n /**\n * If set to `true`, the index will be created in the background to reduce\n * the write-lock duration for the collection during index creation.\n *\n * Default: `false`\n */\n inBackground?: boolean;\n }\n | {\n type: \"geo\";\n /**\n * If set to `true`, `fields` must be an array containing a single attribute\n * path and the attribute value must be an array with two values, the first\n * of which will be interpreted as the longitude and the second of which will\n * be interpreted as the latitude of the document.\n *\n * Default: `false`\n */\n geoJson?: boolean;\n /**\n * If set to `true`, the index will use pre-3.10 rules for parsing\n * GeoJSON polygons. This option is always implicitly `true` when using\n * ArangoDB 3.9 or lower.\n */\n legacyPolygons?: boolean;\n /**\n * An array containing the attribute path for an array containing two values,\n * the first of which will be interpreted as the latitude, the second as the\n * longitude. If `geoJson` is set to `true`, the order is reversed to match\n * the GeoJSON format.\n */\n fields: [string];\n /**\n * A unique name for this index.\n */\n name?: string;\n /**\n * If set to `true`, the index will be created in the background to reduce\n * the write-lock duration for the collection during index creation.\n *\n * Default: `false`\n */\n inBackground?: boolean;\n };\n\n/**\n * Options for creating a fulltext index.\n *\n * @deprecated Fulltext indexes have been deprecated in ArangoDB 3.10 and\n * should be replaced with ArangoSearch.\n */\nexport type EnsureFulltextIndexOptions = {\n /**\n * Type of this index.\n */\n type: \"fulltext\";\n /**\n * An array containing exactly one attribute path.\n */\n fields: [string];\n /**\n * A unique name for this index.\n */\n name?: string;\n /**\n * Minimum character length of words to index.\n */\n minLength?: number;\n /**\n * If set to `true`, the index will be created in the background to reduce\n * the write-lock duration for the collection during index creation.\n *\n * Default: `false`\n */\n inBackground?: boolean;\n};\n\n/**\n * Options for creating a TTL index.\n */\nexport type EnsureTtlIndexOptions = {\n /**\n * Type of this index.\n */\n type: \"ttl\";\n /**\n * An array containing exactly one attribute path.\n */\n fields: [string];\n /**\n * A unique name for this index.\n */\n name?: string;\n /**\n * Duration in seconds after the attribute value at which the document will\n * be considered as expired.\n */\n expireAfter: number;\n /**\n * If set to `true`, the index will be created in the background to reduce\n * the write-lock duration for the collection during index creation.\n *\n * Default: `false`\n */\n inBackground?: boolean;\n};\n\n/**\n * Options for creating a ZKD index.\n */\nexport type EnsureZkdIndexOptions = {\n /**\n * Type of this index.\n */\n type: \"zkd\";\n /**\n * An array containing attribute paths for the dimensions.\n */\n fields: string[];\n /**\n * Data type of the dimension attributes.\n */\n fieldValueTypes: \"double\";\n /**\n * A unique name for this index.\n */\n name?: string;\n /**\n * If set to `true`, a unique index will be created.\n *\n * Default: `false`\n */\n unique?: boolean;\n /**\n * If set to `true`, the index will be created in the background to reduce\n * the write-lock duration for the collection during index creation.\n *\n * Default: `false`\n */\n inBackground?: boolean;\n};\n\n/**\n * (Enterprise Edition only.) Options for a nested field in an inverted index.\n */\nexport type InvertedIndexNestedFieldOptions = {\n /**\n * An attribute path.\n */\n name: string;\n /**\n * Name of the Analyzer to apply to the values of this field.\n *\n * Defaults to the `analyzer` specified on the parent options or on the index\n * itself.\n */\n analyzer?: string;\n /**\n * List of Analyzer features to enable for this field's Analyzer.\n *\n * Defaults to the features of the Analyzer.\n */\n features?: AnalyzerFeature[];\n /**\n * If set to `true` array values will be indexed using the same behavior as\n * ArangoSearch Views. This option only applies when using the index in a\n * SearchAlias View.\n *\n * Defaults to the value of `searchField` specified on the index itself.\n */\n searchField?: boolean;\n /**\n * Sub-objects to index to allow querying for co-occurring values.\n */\n nested?: (string | InvertedIndexNestedFieldOptions)[];\n};\n\n/**\n * Options for an attribute path in an inverted index.\n */\nexport type InvertedIndexFieldOptions = {\n /**\n * An attribute path.\n */\n name: string;\n /**\n * Name of the Analyzer to apply to the values of this field.\n *\n * Defaults to the `analyzer` specified on the index itself.\n */\n analyzer?: string;\n /**\n * List of Analyzer features to enable for this field's Analyzer.\n *\n * Defaults to the features of the Analyzer.\n */\n features?: AnalyzerFeature[];\n /**\n * If set to `true`, all document attributes are indexed, excluding any\n * sub-attributes configured in the `fields` array. The `analyzer` and\n * `features` properties apply to the sub-attributes. This option only\n * applies when using the index in a SearchAlias View.\n *\n * Defaults to the value of `includeAllFields` specified on the index itself.\n */\n includeAllFields?: boolean;\n /**\n * If set to `true` array values will be indexed using the same behavior as\n * ArangoSearch Views. This option only applies when using the index in a\n * SearchAlias View.\n *\n * Defaults to the value of `searchField` specified on the index itself.\n */\n searchField?: boolean;\n /**\n * If set to `true`, the position of values in array values are tracked and\n * need to be specified in queries. Otherwise all values in an array are\n * treated as equivalent. This option only applies when using the index in a\n * SearchAlias View.\n *\n * Defaults to the value of `trackListPositions` specified on the index\n * itself.\n */\n trackListPositions?: boolean;\n /**\n * (Enterprise Edition only.) Sub-objects to index to allow querying for\n * co-occurring values.\n */\n nested?: (string | InvertedIndexNestedFieldOptions)[];\n};\n\n/**\n * Options for defining a stored value on an inverted index.\n */\nexport type InvertedIndexStoredValueOptions = {\n /**\n * The attribute paths to store.\n */\n fields: string[];\n /**\n * How the attribute values should be compressed.\n *\n * Default: `\"lz4\"`\n */\n compression?: Compression;\n};\n\n/**\n * Options for defining a primary sort field on an inverted index.\n */\nexport type InvertedIndexPrimarySortFieldOptions = {\n /**\n * The attribute path to sort by.\n */\n field: string;\n /**\n * The sorting direction.\n */\n direction: Direction;\n};\n\n/**\n * Options for creating an inverted index.\n */\nexport type EnsureInvertedIndexOptions = {\n /**\n * Type of this index.\n */\n type: \"inverted\";\n /**\n * An array of attribute paths or objects specifying options for the fields.\n */\n fields: (string | InvertedIndexFieldOptions)[];\n /**\n * A unique name for this index.\n */\n name?: string;\n /**\n * If set to `true` array values will by default be indexed using the same\n * behavior as ArangoSearch Views. This option only applies when using the\n * index in a SearchAlias View.\n *\n * Default: `false`\n */\n searchField?: boolean;\n /**\n * An array of attribute paths that will be stored in the index but can not\n * be used for index lookups or sorting but can avoid full document lookups.\n */\n storedValues?: InvertedIndexStoredValueOptions[];\n /**\n * Primary sort order to optimize AQL queries using a matching sort order.\n */\n primarySort?: {\n /**\n * An array of fields to sort the index by.\n */\n fields: InvertedIndexPrimarySortFieldOptions[];\n /**\n * How the primary sort data should be compressed.\n *\n * Default: `\"lz4\"`\n */\n compression?: Compression;\n };\n /**\n * Name of the default Analyzer to apply to the values of indexed fields.\n *\n * Default: `\"identity\"`\n */\n analyzer?: string;\n /**\n * List of Analyzer features to enable for the default Analyzer.\n *\n * Defaults to the Analyzer's features.\n */\n features?: AnalyzerFeature[];\n /**\n * If set to `true`, all document attributes are indexed, excluding any\n * sub-attributes configured in the `fields` array. The `analyzer` and\n * `features` properties apply to the sub-attributes. This option only\n * applies when using the index in a SearchAlias View.\n *\n * Default: `false`\n */\n includeAllFields?: boolean;\n /**\n * If set to `true`, the position of values in array values are tracked and\n * need to be specified in queries. Otherwise all values in an array are\n * treated as equivalent. This option only applies when using the index in a\n * SearchAlias View.\n *\n * Default: `false`\n */\n trackListPositions?: boolean;\n /**\n * The number of threads to use for indexing the fields.\n *\n * Default: `2`\n */\n parallelism?: number;\n /**\n * Wait at least this many commits between removing unused files in the\n * ArangoSearch data directory.\n *\n * Default: `2`\n */\n cleanupIntervalStep?: number;\n /**\n * Wait at least this many milliseconds between committing View data store\n * changes and making documents visible to queries.\n *\n * Default: `1000`\n */\n commitIntervalMsec?: number;\n /**\n * Wait at least this many milliseconds between applying\n * `consolidationPolicy` to consolidate View data store and possibly release\n * space on the filesystem.\n *\n * Default: `1000`\n */\n consolidationIntervalMsec?: number;\n /**\n * The consolidation policy to apply for selecting which segments should be\n * merged.\n *\n * Default: `{ type: \"tier\" }`\n */\n consolidationPolicy?: TierConsolidationPolicy;\n /**\n * Maximum number of writers (segments) cached in the pool.\n *\n * Default: `64`\n */\n writeBufferIdle?: number;\n /**\n * Maximum number of concurrent active writers (segments) that perform a\n * transaction.\n *\n * Default: `0` (disabled)\n */\n writeBufferActive?: number;\n /**\n * Maximum memory byte size per writer (segment) before a writer (segment)\n * flush is triggered.\n *\n * Default: `33554432` (32 MiB)\n */\n writeBufferSizeMax?: number;\n /**\n * If set to `true`, the index will be created in the background to reduce\n * the write-lock duration for the collection during index creation.\n *\n * Default: `false`\n */\n inBackground?: boolean;\n};\n\n/**\n * Shared attributes of all index types.\n */\nexport type GenericIndex = {\n /**\n * A unique name for this index.\n */\n name: string;\n /**\n * A unique identifier for this index.\n */\n id: string;\n /**\n * Whether documents not containing at least one of the attribute paths\n * are omitted by this index.\n */\n sparse: boolean;\n /**\n * Whether this index enforces uniqueness for values of its attribute paths.\n */\n unique: boolean;\n};\n\n/**\n * An object representing a persistent index.\n */\nexport type PersistentIndex = GenericIndex & {\n type: \"persistent\";\n fields: string[];\n cacheEnabled: boolean;\n deduplicate: boolean;\n estimates: boolean;\n storedValues?: string[];\n};\n\n/**\n * An object representing a primary index.\n */\nexport type PrimaryIndex = GenericIndex & {\n type: \"primary\";\n fields: string[];\n selectivityEstimate: number;\n};\n\n/**\n * An object representing a fulltext index.\n *\n * @deprecated Fulltext indexes have been deprecated in ArangoDB 3.10 and\n * should be replaced with ArangoSearch.\n */\nexport type FulltextIndex = GenericIndex & {\n type: \"fulltext\";\n fields: [string];\n minLength: number;\n};\n\n/**\n * An object representing a geo index.\n */\nexport type GeoIndex = GenericIndex & {\n type: \"geo\";\n fields: [string] | [string, string];\n geoJson: boolean;\n legacyPolygons: boolean;\n bestIndexedLevel: number;\n worstIndexedLevel: number;\n maxNumCoverCells: number;\n};\n\n/**\n * An object representing a TTL index.\n */\nexport type TtlIndex = GenericIndex & {\n type: \"ttl\";\n fields: [string];\n expireAfter: number;\n selectivityEstimate: number;\n};\n\n/**\n * An object representing a ZKD index.\n */\nexport type ZkdIndex = GenericIndex & {\n type: \"zkd\";\n fields: string[];\n fieldValueTypes: \"double\";\n};\n\n/**\n * (Enterprise Edition only.) An object representing a nested field in an\n * inverted index.\n */\nexport type InvertedIndexNestedField = {\n name: string;\n analyzer?: string;\n features?: AnalyzerFeature[];\n searchField?: boolean;\n nested?: InvertedIndexNestedField[];\n};\n\n/**\n * An object representing an inverted index.\n */\nexport type InvertedIndex = GenericIndex & {\n type: \"inverted\";\n fields: {\n name: string;\n analyzer?: string;\n features?: AnalyzerFeature[];\n includeAllFields?: boolean;\n searchField?: boolean;\n trackListPositions?: boolean;\n nested?: InvertedIndexNestedField[];\n }[];\n searchField: boolean;\n storedValues: {\n fields: string[];\n compression: Compression;\n }[];\n primarySort: {\n fields: {\n field: string;\n direction: Direction;\n }[];\n compression: Compression;\n };\n analyzer: string;\n features: AnalyzerFeature[];\n includeAllFields: boolean;\n trackListPositions: boolean;\n parallelism: number;\n cleanupIntervalStep: number;\n commitIntervalMsec: number;\n consolidationIntervalMsec: number;\n consolidationPolicy: Required<TierConsolidationPolicy>;\n writeBufferIdle: number;\n writeBufferActive: number;\n writeBufferSizeMax: number;\n};\n\n/**\n * An object representing an index.\n */\nexport type Index =\n | GeoIndex\n | FulltextIndex\n | PersistentIndex\n | PrimaryIndex\n | TtlIndex\n | ZkdIndex\n | InvertedIndex;\n\nexport type ObjectWithId = {\n [key: string]: any;\n id: string;\n};\n\nexport type ObjectWithName = {\n [key: string]: any;\n name: string;\n};\n\n/**\n * Index name, id or object with a `name` or `id` property.\n */\nexport type IndexSelector = ObjectWithId | ObjectWithName | string;\n\n/**\n * @internal\n */\nexport function _indexHandle(\n selector: IndexSelector,\n collectionName: string\n): string {\n if (typeof selector !== \"string\") {\n if (selector.id) {\n return _indexHandle(selector.id, collectionName);\n }\n throw new Error(\n \"Index handle must be a string or an object with an id attribute\"\n );\n }\n if (selector.includes(\"/\")) {\n const [head, ...tail] = selector.split(\"/\");\n const normalizedHead = head.normalize(\"NFC\");\n if (normalizedHead !== collectionName) {\n throw new Error(\n `Index ID \"${selector}\" does not match collection name \"${collectionName}\"`\n );\n }\n return [normalizedHead, ...tail].join(\"/\");\n }\n return `${collectionName}/${selector}`;\n}\n"]}
|
package/lib/blob.d.ts
CHANGED
package/lib/blob.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blob.d.ts","sourceRoot":"","sources":["../../src/lib/blob.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"blob.d.ts","sourceRoot":"","sources":["../../src/lib/blob.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,WAAW,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;IACpC,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChE,MAAM,IAAI,GAAG,CAAC;IACd,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CACzB"}
|
package/lib/blob.js
CHANGED
package/lib/blob.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blob.js","sourceRoot":"","sources":["../../src/lib/blob.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"blob.js","sourceRoot":"","sources":["../../src/lib/blob.ts"],"names":[],"mappings":";AAAA;;;;;GAKG","sourcesContent":["/**\n * Blob type, equivalent to `Buffer` for browser-like environments.\n *\n * @packageDocumentation\n * @internal\n */\n\n/**\n * @internal\n */\nexport interface Blob {\n readonly size: number;\n readonly type: string;\n arrayBuffer(): Promise<ArrayBuffer>;\n slice(start?: number, end?: number, contentType?: string): Blob;\n stream(): any;\n text(): Promise<string>;\n}\n"]}
|
package/lib/btoa.d.ts
CHANGED
package/lib/btoa.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"btoa.d.ts","sourceRoot":"","sources":["../../src/lib/btoa.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"btoa.d.ts","sourceRoot":"","sources":["../../src/lib/btoa.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,UAEvC"}
|
package/lib/btoa.js
CHANGED
|
@@ -4,16 +4,14 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
* @internal
|
|
7
|
-
* @hidden
|
|
8
7
|
*/
|
|
9
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
9
|
+
exports.base64Encode = void 0;
|
|
11
10
|
/**
|
|
12
11
|
* @internal
|
|
13
|
-
* @hidden
|
|
14
12
|
*/
|
|
15
|
-
function
|
|
13
|
+
function base64Encode(str) {
|
|
16
14
|
return Buffer.from(str).toString("base64");
|
|
17
15
|
}
|
|
18
|
-
exports.
|
|
16
|
+
exports.base64Encode = base64Encode;
|
|
19
17
|
//# sourceMappingURL=btoa.js.map
|
package/lib/btoa.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"btoa.js","sourceRoot":"","sources":["../../src/lib/btoa.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"btoa.js","sourceRoot":"","sources":["../../src/lib/btoa.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH;;GAEG;AACH,SAAgB,YAAY,CAAC,GAAW;IACtC,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAC7C,CAAC;AAFD,oCAEC","sourcesContent":["/**\n * Node.js implementation of browser `btoa` function.\n *\n * @packageDocumentation\n * @internal\n */\n\n/**\n * @internal\n */\nexport function base64Encode(str: string) {\n return Buffer.from(str).toString(\"base64\");\n}\n"]}
|
package/lib/btoa.web.d.ts
CHANGED
|
@@ -4,11 +4,9 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
* @internal
|
|
7
|
-
* @hidden
|
|
8
7
|
*/
|
|
9
8
|
/**
|
|
10
9
|
* @internal
|
|
11
|
-
* @hidden
|
|
12
10
|
*/
|
|
13
|
-
export declare function
|
|
11
|
+
export declare function base64Encode(str: string): string;
|
|
14
12
|
//# sourceMappingURL=btoa.web.d.ts.map
|
package/lib/btoa.web.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"btoa.web.d.ts","sourceRoot":"","sources":["../../src/lib/btoa.web.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"btoa.web.d.ts","sourceRoot":"","sources":["../../src/lib/btoa.web.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEhD"}
|
package/lib/btoa.web.js
CHANGED
|
@@ -5,16 +5,14 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @packageDocumentation
|
|
7
7
|
* @internal
|
|
8
|
-
* @hidden
|
|
9
8
|
*/
|
|
10
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
10
|
+
exports.base64Encode = void 0;
|
|
12
11
|
/**
|
|
13
12
|
* @internal
|
|
14
|
-
* @hidden
|
|
15
13
|
*/
|
|
16
|
-
function
|
|
17
|
-
return
|
|
14
|
+
function base64Encode(str) {
|
|
15
|
+
return btoa(str);
|
|
18
16
|
}
|
|
19
|
-
exports.
|
|
17
|
+
exports.base64Encode = base64Encode;
|
|
20
18
|
//# sourceMappingURL=btoa.web.js.map
|
package/lib/btoa.web.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"btoa.web.js","sourceRoot":"","sources":["../../src/lib/btoa.web.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"btoa.web.js","sourceRoot":"","sources":["../../src/lib/btoa.web.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH;;GAEG;AACH,SAAgB,YAAY,CAAC,GAAW;IACtC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;AACnB,CAAC;AAFD,oCAEC","sourcesContent":["/**\n * Wrapper around browser `btoa` function to allow substituting a\n * Node.js-specific implementation.\n *\n * @packageDocumentation\n * @internal\n */\n\n/**\n * @internal\n */\nexport function base64Encode(str: string): string {\n return btoa(str);\n}\n"]}
|
package/lib/codes.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Error codes handled by arangojs.
|
|
3
3
|
*
|
|
4
|
-
* See also
|
|
4
|
+
* See also [ArangoDB error documentation](https://www.arangodb.com/docs/stable/appendix-error-codes.html).
|
|
5
5
|
*
|
|
6
6
|
* @packageDocumentation
|
|
7
7
|
* @internal
|
|
8
|
-
* @hidden
|
|
9
8
|
*/
|
|
10
9
|
export declare const TRANSACTION_NOT_FOUND = 10;
|
|
10
|
+
export declare const ERROR_ARANGO_MAINTENANCE_MODE = 503;
|
|
11
11
|
export declare const ERROR_ARANGO_CONFLICT = 1200;
|
|
12
12
|
export declare const ANALYZER_NOT_FOUND = 1202;
|
|
13
13
|
export declare const DOCUMENT_NOT_FOUND = 1202;
|
package/lib/codes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codes.d.ts","sourceRoot":"","sources":["../../src/lib/codes.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"codes.d.ts","sourceRoot":"","sources":["../../src/lib/codes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,eAAO,MAAM,6BAA6B,MAAM,CAAC;AACjD,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAC1C,eAAO,MAAM,kBAAkB,OAAO,CAAC;AACvC,eAAO,MAAM,kBAAkB,OAAO,CAAC;AACvC,eAAO,MAAM,oBAAoB,OAAO,CAAC;AACzC,eAAO,MAAM,cAAc,OAAO,CAAC;AACnC,eAAO,MAAM,kBAAkB,OAAO,CAAC;AACvC,eAAO,MAAM,eAAe,OAAO,CAAC"}
|
package/lib/codes.js
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Error codes handled by arangojs.
|
|
4
4
|
*
|
|
5
|
-
* See also
|
|
5
|
+
* See also [ArangoDB error documentation](https://www.arangodb.com/docs/stable/appendix-error-codes.html).
|
|
6
6
|
*
|
|
7
7
|
* @packageDocumentation
|
|
8
8
|
* @internal
|
|
9
|
-
* @hidden
|
|
10
9
|
*/
|
|
11
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.GRAPH_NOT_FOUND = exports.DATABASE_NOT_FOUND = exports.VIEW_NOT_FOUND = exports.COLLECTION_NOT_FOUND = exports.DOCUMENT_NOT_FOUND = exports.ANALYZER_NOT_FOUND = exports.ERROR_ARANGO_CONFLICT = exports.TRANSACTION_NOT_FOUND = void 0;
|
|
11
|
+
exports.GRAPH_NOT_FOUND = exports.DATABASE_NOT_FOUND = exports.VIEW_NOT_FOUND = exports.COLLECTION_NOT_FOUND = exports.DOCUMENT_NOT_FOUND = exports.ANALYZER_NOT_FOUND = exports.ERROR_ARANGO_CONFLICT = exports.ERROR_ARANGO_MAINTENANCE_MODE = exports.TRANSACTION_NOT_FOUND = void 0;
|
|
13
12
|
exports.TRANSACTION_NOT_FOUND = 10;
|
|
13
|
+
exports.ERROR_ARANGO_MAINTENANCE_MODE = 503;
|
|
14
14
|
exports.ERROR_ARANGO_CONFLICT = 1200;
|
|
15
15
|
exports.ANALYZER_NOT_FOUND = 1202;
|
|
16
16
|
exports.DOCUMENT_NOT_FOUND = 1202;
|
package/lib/codes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codes.js","sourceRoot":"","sources":["../../src/lib/codes.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"codes.js","sourceRoot":"","sources":["../../src/lib/codes.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEU,QAAA,qBAAqB,GAAG,EAAE,CAAC;AAC3B,QAAA,6BAA6B,GAAG,GAAG,CAAC;AACpC,QAAA,qBAAqB,GAAG,IAAI,CAAC;AAC7B,QAAA,kBAAkB,GAAG,IAAI,CAAC;AAC1B,QAAA,kBAAkB,GAAG,IAAI,CAAC;AAC1B,QAAA,oBAAoB,GAAG,IAAI,CAAC;AAC5B,QAAA,cAAc,GAAG,IAAI,CAAC;AACtB,QAAA,kBAAkB,GAAG,IAAI,CAAC;AAC1B,QAAA,eAAe,GAAG,IAAI,CAAC","sourcesContent":["/**\n * Error codes handled by arangojs.\n *\n * See also [ArangoDB error documentation](https://www.arangodb.com/docs/stable/appendix-error-codes.html).\n *\n * @packageDocumentation\n * @internal\n */\n\nexport const TRANSACTION_NOT_FOUND = 10;\nexport const ERROR_ARANGO_MAINTENANCE_MODE = 503;\nexport const ERROR_ARANGO_CONFLICT = 1200;\nexport const ANALYZER_NOT_FOUND = 1202;\nexport const DOCUMENT_NOT_FOUND = 1202;\nexport const COLLECTION_NOT_FOUND = 1203;\nexport const VIEW_NOT_FOUND = 1203;\nexport const DATABASE_NOT_FOUND = 1228;\nexport const GRAPH_NOT_FOUND = 1924;\n"]}
|
package/lib/errback.d.ts
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
* @internal
|
|
6
|
-
* @hidden
|
|
7
6
|
*/
|
|
8
7
|
/**
|
|
9
8
|
* Type representing a Node.js error-first callback.
|
|
@@ -11,7 +10,6 @@
|
|
|
11
10
|
* @param T - Type of the optional result value.
|
|
12
11
|
*
|
|
13
12
|
* @internal
|
|
14
|
-
* @hidden
|
|
15
13
|
*/
|
|
16
14
|
export declare type Errback<T = never> = (err: Error | null, result?: T) => void;
|
|
17
15
|
//# sourceMappingURL=errback.d.ts.map
|
package/lib/errback.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errback.d.ts","sourceRoot":"","sources":["../../src/lib/errback.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH
|
|
1
|
+
{"version":3,"file":"errback.d.ts","sourceRoot":"","sources":["../../src/lib/errback.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH;;;;;;GAMG;AACH,oBAAY,OAAO,CAAC,CAAC,GAAG,KAAK,IAAI,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,EAAE,MAAM,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC"}
|
package/lib/errback.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errback.js","sourceRoot":"","sources":["../../src/lib/errback.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Errback utility type.\n *\n * @packageDocumentation\n * @internal\n
|
|
1
|
+
{"version":3,"file":"errback.js","sourceRoot":"","sources":["../../src/lib/errback.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Errback utility type.\n *\n * @packageDocumentation\n * @internal\n */\n/**\n * Type representing a Node.js error-first callback.\n *\n * @param T - Type of the optional result value.\n *\n * @internal\n */\nexport type Errback<T = never> = (err: Error | null, result?: T) => void;\n"]}
|
package/lib/joinPath.d.ts
CHANGED
package/lib/joinPath.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"joinPath.d.ts","sourceRoot":"","sources":["../../src/lib/joinPath.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"joinPath.d.ts","sourceRoot":"","sources":["../../src/lib/joinPath.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH;;GAEG;AACH,eAAO,MAAM,QAAQ,gCAAa,CAAC"}
|
package/lib/joinPath.js
CHANGED
|
@@ -4,14 +4,12 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
* @internal
|
|
7
|
-
* @hidden
|
|
8
7
|
*/
|
|
9
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
9
|
exports.joinPath = void 0;
|
|
11
10
|
const path_1 = require("path");
|
|
12
11
|
/**
|
|
13
12
|
* @internal
|
|
14
|
-
* @hidden
|
|
15
13
|
*/
|
|
16
14
|
exports.joinPath = path_1.posix.join;
|
|
17
15
|
//# sourceMappingURL=joinPath.js.map
|
package/lib/joinPath.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"joinPath.js","sourceRoot":"","sources":["../../src/lib/joinPath.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"joinPath.js","sourceRoot":"","sources":["../../src/lib/joinPath.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,+BAA6B;AAE7B;;GAEG;AACU,QAAA,QAAQ,GAAG,YAAK,CAAC,IAAI,CAAC","sourcesContent":["/**\n * Wrapper around the browser-compatible implementation of the path module.\n *\n * @packageDocumentation\n * @internal\n */\n\nimport { posix } from \"path\";\n\n/**\n * @internal\n */\nexport const joinPath = posix.join;\n"]}
|
package/lib/joinPath.web.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"joinPath.web.d.ts","sourceRoot":"","sources":["../../src/lib/joinPath.web.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"joinPath.web.d.ts","sourceRoot":"","sources":["../../src/lib/joinPath.web.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH;;GAEG;AACH,wBAAgB,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAElD"}
|
package/lib/joinPath.web.js
CHANGED
|
@@ -4,13 +4,16 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
* @internal
|
|
7
|
-
* @hidden
|
|
8
7
|
*/
|
|
9
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.joinPath = void 0;
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
11
|
+
const { join } = require("path-browserify");
|
|
10
12
|
/**
|
|
11
13
|
* @internal
|
|
12
|
-
* @hidden
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
function joinPath(...path) {
|
|
16
|
+
return join(...path);
|
|
17
|
+
}
|
|
18
|
+
exports.joinPath = joinPath;
|
|
16
19
|
//# sourceMappingURL=joinPath.web.js.map
|
package/lib/joinPath.web.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"joinPath.web.js","sourceRoot":"","sources":["../../src/lib/joinPath.web.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"joinPath.web.js","sourceRoot":"","sources":["../../src/lib/joinPath.web.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,8DAA8D;AAC9D,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAE5C;;GAEG;AACH,SAAgB,QAAQ,CAAC,GAAG,IAAc;IACxC,OAAO,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;AACvB,CAAC;AAFD,4BAEC","sourcesContent":["/**\n * Wrapper around the browser-specific implementation of the path module.\n *\n * @packageDocumentation\n * @internal\n */\n\n// eslint-disable-next-line @typescript-eslint/no-var-requires\nconst { join } = require(\"path-browserify\");\n\n/**\n * @internal\n */\nexport function joinPath(...path: string[]): string {\n return join(...path);\n}\n"]}
|
package/lib/multipart.d.ts
CHANGED
|
@@ -3,20 +3,17 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
* @internal
|
|
6
|
-
* @hidden
|
|
7
6
|
*/
|
|
8
7
|
/// <reference types="node" />
|
|
9
8
|
import { Headers } from "../connection";
|
|
10
9
|
/**
|
|
11
10
|
* @internal
|
|
12
|
-
* @hidden
|
|
13
11
|
*/
|
|
14
12
|
export declare type Fields = {
|
|
15
13
|
[key: string]: any;
|
|
16
14
|
};
|
|
17
15
|
/**
|
|
18
16
|
* @internal
|
|
19
|
-
* @hidden
|
|
20
17
|
*/
|
|
21
18
|
export interface MultipartRequest {
|
|
22
19
|
headers?: Headers;
|
|
@@ -24,7 +21,6 @@ export interface MultipartRequest {
|
|
|
24
21
|
}
|
|
25
22
|
/**
|
|
26
23
|
* @internal
|
|
27
|
-
* @hidden
|
|
28
24
|
*/
|
|
29
25
|
export declare function toForm(fields: Fields): Promise<MultipartRequest>;
|
|
30
26
|
//# sourceMappingURL=multipart.d.ts.map
|
package/lib/multipart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multipart.d.ts","sourceRoot":"","sources":["../../src/lib/multipart.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"multipart.d.ts","sourceRoot":"","sources":["../../src/lib/multipart.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAexC;;GAEG;AACH,oBAAY,MAAM,GAAG;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,wBAAsB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAkBtE"}
|
package/lib/multipart.js
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
* @internal
|
|
7
|
-
* @hidden
|
|
8
7
|
*/
|
|
9
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
9
|
exports.toForm = void 0;
|
|
@@ -13,44 +12,24 @@ const stream_1 = require("stream");
|
|
|
13
12
|
const Multipart = require("multi-part");
|
|
14
13
|
/**
|
|
15
14
|
* @internal
|
|
16
|
-
* @hidden
|
|
17
15
|
*/
|
|
18
|
-
function toForm(fields) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
(typeof value === "object" || typeof value === "function")) {
|
|
29
|
-
value = JSON.stringify(value);
|
|
30
|
-
}
|
|
31
|
-
form.append(key, value);
|
|
32
|
-
}
|
|
33
|
-
const stream = form.stream();
|
|
34
|
-
const bufs = [];
|
|
35
|
-
stream.on("data", (buf) => bufs.push(buf));
|
|
36
|
-
stream.on("end", () => {
|
|
37
|
-
bufs.push(Buffer.from("\r\n"));
|
|
38
|
-
const body = Buffer.concat(bufs);
|
|
39
|
-
const boundary = form.getBoundary();
|
|
40
|
-
const headers = {
|
|
41
|
-
"content-type": `multipart/form-data; boundary=${boundary}`,
|
|
42
|
-
"content-length": String(body.length),
|
|
43
|
-
};
|
|
44
|
-
resolve({ body, headers });
|
|
45
|
-
});
|
|
46
|
-
stream.on("error", (e) => {
|
|
47
|
-
reject(e);
|
|
48
|
-
});
|
|
16
|
+
async function toForm(fields) {
|
|
17
|
+
const form = new Multipart();
|
|
18
|
+
for (const key of Object.keys(fields)) {
|
|
19
|
+
let value = fields[key];
|
|
20
|
+
if (value === undefined)
|
|
21
|
+
continue;
|
|
22
|
+
if (!(value instanceof stream_1.Readable) &&
|
|
23
|
+
!(value instanceof global.Buffer) &&
|
|
24
|
+
(typeof value === "object" || typeof value === "function")) {
|
|
25
|
+
value = JSON.stringify(value);
|
|
49
26
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
27
|
+
form.append(key, value);
|
|
28
|
+
}
|
|
29
|
+
const body = await form.buffer();
|
|
30
|
+
const headers = form.getHeaders();
|
|
31
|
+
delete headers["transfer-encoding"];
|
|
32
|
+
return { body, headers };
|
|
54
33
|
}
|
|
55
34
|
exports.toForm = toForm;
|
|
56
35
|
//# sourceMappingURL=multipart.js.map
|
package/lib/multipart.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multipart.js","sourceRoot":"","sources":["../../src/lib/multipart.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"multipart.js","sourceRoot":"","sources":["../../src/lib/multipart.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,mCAAkC;AAalC,8DAA8D;AAC9D,MAAM,SAAS,GAAG,OAAO,CAAC,YAAY,CAAqB,CAAC;AAiB5D;;GAEG;AACI,KAAK,UAAU,MAAM,CAAC,MAAc;IACzC,MAAM,IAAI,GAAG,IAAI,SAAS,EAAE,CAAC;IAC7B,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;QACrC,IAAI,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QACxB,IAAI,KAAK,KAAK,SAAS;YAAE,SAAS;QAClC,IACE,CAAC,CAAC,KAAK,YAAY,iBAAQ,CAAC;YAC5B,CAAC,CAAC,KAAK,YAAY,MAAM,CAAC,MAAM,CAAC;YACjC,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,UAAU,CAAC,EAC1D;YACA,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;SAC/B;QACD,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;KACzB;IACD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC;IACjC,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;IAClC,OAAO,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACpC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AAC3B,CAAC;AAlBD,wBAkBC","sourcesContent":["/**\n * Utility function for constructing a multipart form in Node.js.\n *\n * @packageDocumentation\n * @internal\n */\n\nimport { Readable } from \"stream\";\nimport { Headers } from \"../connection\";\n\ndeclare class MultiPart {\n append(\n field: string,\n value: any,\n options?: { filename?: string; contentType?: string }\n ): this;\n getHeaders(): Headers;\n buffer(): Promise<Buffer>;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-var-requires\nconst Multipart = require(\"multi-part\") as typeof MultiPart;\n\n/**\n * @internal\n */\nexport type Fields = {\n [key: string]: any;\n};\n\n/**\n * @internal\n */\nexport interface MultipartRequest {\n headers?: Headers;\n body: Buffer;\n}\n\n/**\n * @internal\n */\nexport async function toForm(fields: Fields): Promise<MultipartRequest> {\n const form = new Multipart();\n for (const key of Object.keys(fields)) {\n let value = fields[key];\n if (value === undefined) continue;\n if (\n !(value instanceof Readable) &&\n !(value instanceof global.Buffer) &&\n (typeof value === \"object\" || typeof value === \"function\")\n ) {\n value = JSON.stringify(value);\n }\n form.append(key, value);\n }\n const body = await form.buffer();\n const headers = form.getHeaders();\n delete headers[\"transfer-encoding\"];\n return { body, headers };\n}\n"]}
|
package/lib/multipart.web.d.ts
CHANGED
|
@@ -3,13 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
* @internal
|
|
6
|
-
* @hidden
|
|
7
6
|
*/
|
|
8
7
|
import { Errback } from "./errback";
|
|
9
8
|
import { Fields, MultipartRequest } from "./multipart";
|
|
10
9
|
/**
|
|
11
10
|
* @internal
|
|
12
|
-
* @hidden
|
|
13
11
|
*/
|
|
14
12
|
export declare function toForm(fields: Fields, callback: Errback<MultipartRequest>): void;
|
|
15
13
|
//# sourceMappingURL=multipart.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multipart.web.d.ts","sourceRoot":"","sources":["../../src/lib/multipart.web.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"multipart.web.d.ts","sourceRoot":"","sources":["../../src/lib/multipart.web.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAKvD;;GAEG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,gBAAgB,CAAC,QAoBzE"}
|
package/lib/multipart.web.js
CHANGED
package/lib/multipart.web.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multipart.web.js","sourceRoot":"","sources":["../../src/lib/multipart.web.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"multipart.web.js","sourceRoot":"","sources":["../../src/lib/multipart.web.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAQH;;GAEG;AACH,SAAgB,MAAM,CAAC,MAAc,EAAE,QAAmC;IACxE,IAAI,IAAI,CAAC;IACT,IAAI;QACF,IAAI,GAAG,IAAI,QAAQ,EAAE,CAAC;QACtB,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;YACrC,IAAI,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;YACxB,IAAI,KAAK,KAAK,SAAS;gBAAE,SAAS;YAClC,IACE,CAAC,CAAC,KAAK,YAAY,IAAI,CAAC;gBACxB,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,UAAU,CAAC,EAC1D;gBACA,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;aAC/B;YACD,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;SACzB;KACF;IAAC,OAAO,CAAM,EAAE;QACf,QAAQ,CAAC,CAAC,CAAC,CAAC;QACZ,OAAO;KACR;IACD,QAAQ,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AACjC,CAAC;AApBD,wBAoBC","sourcesContent":["/**\n * Utility function for constructing a multipart form in the browser.\n *\n * @packageDocumentation\n * @internal\n */\n\nimport { Errback } from \"./errback\";\nimport { Fields, MultipartRequest } from \"./multipart\";\n\ndeclare const FormData: any;\ndeclare const Blob: any;\n\n/**\n * @internal\n */\nexport function toForm(fields: Fields, callback: Errback<MultipartRequest>) {\n let form;\n try {\n form = new FormData();\n for (const key of Object.keys(fields)) {\n let value = fields[key];\n if (value === undefined) continue;\n if (\n !(value instanceof Blob) &&\n (typeof value === \"object\" || typeof value === \"function\")\n ) {\n value = JSON.stringify(value);\n }\n form.append(key, value);\n }\n } catch (e: any) {\n callback(e);\n return;\n }\n callback(null, { body: form });\n}\n"]}
|
package/lib/normalizeUrl.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeUrl.d.ts","sourceRoot":"","sources":["../../src/lib/normalizeUrl.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"normalizeUrl.d.ts","sourceRoot":"","sources":["../../src/lib/normalizeUrl.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAMhD"}
|
package/lib/normalizeUrl.js
CHANGED
|
@@ -4,13 +4,11 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
* @internal
|
|
7
|
-
* @hidden
|
|
8
7
|
*/
|
|
9
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
9
|
exports.normalizeUrl = void 0;
|
|
11
10
|
/**
|
|
12
11
|
* @internal
|
|
13
|
-
* @hidden
|
|
14
12
|
*/
|
|
15
13
|
function normalizeUrl(url) {
|
|
16
14
|
const raw = url.match(/^(tcp|ssl|tls)((?::|\+).+)/);
|
package/lib/normalizeUrl.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeUrl.js","sourceRoot":"","sources":["../../src/lib/normalizeUrl.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"normalizeUrl.js","sourceRoot":"","sources":["../../src/lib/normalizeUrl.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH;;GAEG;AACH,SAAgB,YAAY,CAAC,GAAW;IACtC,MAAM,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;IACpD,IAAI,GAAG;QAAE,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;IAC9D,MAAM,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,qCAAqC,CAAC,CAAC;IAC9D,IAAI,IAAI;QAAE,GAAG,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,MAAM,WAAW,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IACzD,OAAO,GAAG,CAAC;AACb,CAAC;AAND,oCAMC","sourcesContent":["/**\n * Utility function for normalizing URLs.\n *\n * @packageDocumentation\n * @internal\n */\n\n/**\n * @internal\n */\nexport function normalizeUrl(url: string): string {\n const raw = url.match(/^(tcp|ssl|tls)((?::|\\+).+)/);\n if (raw) url = (raw[1] === \"tcp\" ? \"http\" : \"https\") + raw[2];\n const unix = url.match(/^(?:(http|https)\\+)?unix:\\/\\/(\\/.+)/);\n if (unix) url = `${unix[1] || \"http\"}://unix:${unix[2]}`;\n return url;\n}\n"]}
|
package/lib/omit.d.ts
CHANGED
|
@@ -3,11 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
* @internal
|
|
6
|
-
* @hidden
|
|
7
6
|
*/
|
|
8
7
|
/**
|
|
9
8
|
* @internal
|
|
10
|
-
* @hidden
|
|
11
9
|
*/
|
|
12
|
-
export declare function omit<T>(obj: T, keys: (keyof T)[]): T;
|
|
10
|
+
export declare function omit<T extends {}>(obj: T, keys: (keyof T)[]): T;
|
|
13
11
|
//# sourceMappingURL=omit.d.ts.map
|
package/lib/omit.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omit.d.ts","sourceRoot":"","sources":["../../src/lib/omit.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"omit.d.ts","sourceRoot":"","sources":["../../src/lib/omit.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AAEH,wBAAgB,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,CAO/D"}
|