@loaders.gl/bson
Advanced tools
Comparing version 4.2.0-alpha.6 to 4.2.0-beta.1
@@ -1,2 +0,2 @@ | ||
import type { LoaderWithParser, LoaderOptions } from '@loaders.gl/loader-utils'; | ||
import type { LoaderOptions } from '@loaders.gl/loader-utils'; | ||
import type { ParseBSONOptions } from "./lib/parsers/parse-bson.js"; | ||
@@ -10,3 +10,3 @@ /** | ||
}; | ||
export declare const BSONLoader: LoaderWithParser<Record<string, unknown>, never, BSONLoaderOptions>; | ||
export declare const BSONLoader: any; | ||
//# sourceMappingURL=bson-loader.d.ts.map |
import { parseBSONSync } from "./lib/parsers/parse-bson.js"; | ||
// __VERSION__ is injected by babel-plugin-version-inline | ||
// @ts-ignore TS2304: Cannot find name '__VERSION__'. | ||
const VERSION = typeof "4.2.0-alpha.5" !== 'undefined' ? "4.2.0-alpha.5" : 'latest'; | ||
const VERSION = typeof "4.2.0-alpha.6" !== 'undefined' ? "4.2.0-alpha.6" : 'latest'; | ||
export const BSONLoader = { | ||
dataType: null, | ||
batchType: null, | ||
name: 'BSON', | ||
@@ -7,0 +9,0 @@ id: 'bson', |
@@ -1,2 +0,2 @@ | ||
import type { WriterWithEncoder, WriterOptions } from '@loaders.gl/loader-utils'; | ||
import type { WriterOptions } from '@loaders.gl/loader-utils'; | ||
import type { EncodeBSONOptions } from "./lib/encoders/encode-bson.js"; | ||
@@ -6,3 +6,14 @@ export type BSONWriterOptions = WriterOptions & { | ||
}; | ||
export declare const BSONWriter: WriterWithEncoder<Record<string, unknown>, never, BSONWriterOptions>; | ||
export declare const BSONWriter: { | ||
readonly name: "BSON"; | ||
readonly id: "bson"; | ||
readonly module: "bson"; | ||
readonly version: any; | ||
readonly extensions: ["bson"]; | ||
readonly options: { | ||
readonly bson: {}; | ||
}; | ||
readonly encode: (data: Record<string, unknown>, options?: WriterOptions) => Promise<ArrayBuffer>; | ||
readonly encodeSync: (data: Record<string, unknown>, options?: WriterOptions) => ArrayBuffer; | ||
}; | ||
//# sourceMappingURL=bson-writer.d.ts.map |
@@ -7,3 +7,3 @@ // loaders.gl | ||
// @ts-ignore TS2304: Cannot find name '__VERSION__'. | ||
const VERSION = typeof "4.2.0-alpha.5" !== 'undefined' ? "4.2.0-alpha.5" : 'latest'; | ||
const VERSION = typeof "4.2.0-alpha.6" !== 'undefined' ? "4.2.0-alpha.6" : 'latest'; | ||
export const BSONWriter = { | ||
@@ -10,0 +10,0 @@ name: 'BSON', |
{ | ||
"name": "@loaders.gl/bson", | ||
"version": "4.2.0-alpha.6", | ||
"version": "4.2.0-beta.1", | ||
"description": "Framework-independent loader for JSON and streaming JSON formats", | ||
@@ -43,5 +43,5 @@ "license": "MIT", | ||
"dependencies": { | ||
"@loaders.gl/gis": "4.2.0-alpha.6", | ||
"@loaders.gl/loader-utils": "4.2.0-alpha.6", | ||
"@loaders.gl/schema": "4.2.0-alpha.6", | ||
"@loaders.gl/gis": "4.2.0-beta.1", | ||
"@loaders.gl/loader-utils": "4.2.0-beta.1", | ||
"@loaders.gl/schema": "4.2.0-beta.1", | ||
"@types/bson": "4.2.0", | ||
@@ -53,3 +53,3 @@ "bson": "4.2.0" | ||
}, | ||
"gitHead": "37bd8ca71763529f18727ee4bf29dd176aa914ca" | ||
"gitHead": "c386a9196516fe3ff24847b40e6c77be039cf905" | ||
} |
@@ -20,3 +20,5 @@ // loaders.gl | ||
export const BSONLoader: LoaderWithParser<Record<string, unknown>, never, BSONLoaderOptions> = { | ||
export const BSONLoader = { | ||
dataType: null as unknown as Record<string, unknown>, | ||
batchType: null as never, | ||
name: 'BSON', | ||
@@ -35,3 +37,3 @@ id: 'bson', | ||
} | ||
}; | ||
} as const satisfies LoaderWithParser<Record<string, unknown>, never, BSONLoaderOptions>; | ||
@@ -38,0 +40,0 @@ async function parse(arrayBuffer: ArrayBuffer, options?: BSONLoaderOptions) { |
@@ -17,3 +17,3 @@ // loaders.gl | ||
export const BSONWriter: WriterWithEncoder<Record<string, unknown>, never, BSONWriterOptions> = { | ||
export const BSONWriter = { | ||
name: 'BSON', | ||
@@ -33,2 +33,2 @@ id: 'bson', | ||
} | ||
}; | ||
} as const satisfies WriterWithEncoder<Record<string, unknown>, never, BSONWriterOptions>; |
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 too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
368634
6917
+ Added@loaders.gl/gis@4.2.0-beta.1(transitive)
+ Added@loaders.gl/loader-utils@4.2.0-beta.1(transitive)
+ Added@loaders.gl/schema@4.2.0-beta.1(transitive)
+ Added@loaders.gl/worker-utils@4.2.0-beta.1(transitive)
- Removed@loaders.gl/gis@4.2.0-alpha.6(transitive)
- Removed@loaders.gl/loader-utils@4.2.0-alpha.6(transitive)
- Removed@loaders.gl/schema@4.2.0-alpha.6(transitive)
- Removed@loaders.gl/worker-utils@4.2.0-alpha.6(transitive)
Updated@loaders.gl/gis@4.2.0-beta.1