@loaders.gl/bson
Advanced tools
Comparing version 3.4.0-alpha.4 to 4.0.0-alpha.6
@@ -10,3 +10,3 @@ import type { LoaderWithParser, LoaderOptions } from '@loaders.gl/loader-utils'; | ||
}; | ||
export declare const BSONLoader: LoaderWithParser; | ||
export declare const BSONLoader: LoaderWithParser<Record<string, unknown>, never, BSONLoaderOptions>; | ||
//# sourceMappingURL=bson-loader.d.ts.map |
@@ -1,3 +0,7 @@ | ||
import type { Writer } from '@loaders.gl/loader-utils'; | ||
export declare const BSONWriter: Writer; | ||
import type { Writer, WriterOptions } from '@loaders.gl/loader-utils'; | ||
import type { EncodeBSONOptions } from './lib/encoders/encode-bson'; | ||
export type BSONWriterOptions = WriterOptions & { | ||
bson?: EncodeBSONOptions; | ||
}; | ||
export declare const BSONWriter: Writer<Record<string, unknown>, never, BSONWriterOptions>; | ||
//# sourceMappingURL=bson-writer.d.ts.map |
@@ -6,3 +6,2 @@ "use strict"; | ||
const encode_bson_1 = require("./lib/encoders/encode-bson"); | ||
// import type {Writer} from '@loaders.gl/loader-utils'; | ||
// __VERSION__ is injected by babel-plugin-version-inline | ||
@@ -18,5 +17,3 @@ // @ts-ignore TS2304: Cannot find name '__VERSION__'. | ||
options: { | ||
image: { | ||
mimeType: 'application/bson' | ||
} | ||
bson: {} | ||
}, | ||
@@ -23,0 +20,0 @@ async encode(data, options) { |
@@ -14,3 +14,3 @@ "use strict"; | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | ||
var VERSION = typeof "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
var VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
var DEFAULT_BSON_LOADER_OPTIONS = { | ||
@@ -17,0 +17,0 @@ bson: {} |
@@ -11,3 +11,3 @@ "use strict"; | ||
var _encodeBson = require("./lib/encoders/encode-bson"); | ||
var VERSION = typeof "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
var VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
var BSONWriter = { | ||
@@ -20,5 +20,3 @@ name: 'BSON', | ||
options: { | ||
image: { | ||
mimeType: 'application/bson' | ||
} | ||
bson: {} | ||
}, | ||
@@ -25,0 +23,0 @@ encode: function encode(data, options) { |
import { parseBSONSync } from './lib/parsers/parse-bson'; | ||
const VERSION = typeof "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
const VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
const DEFAULT_BSON_LOADER_OPTIONS = { | ||
@@ -4,0 +4,0 @@ bson: {} |
import { encodeBSONSync } from './lib/encoders/encode-bson'; | ||
const VERSION = typeof "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
const VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
export const BSONWriter = { | ||
@@ -10,5 +10,3 @@ name: 'BSON', | ||
options: { | ||
image: { | ||
mimeType: 'application/bson' | ||
} | ||
bson: {} | ||
}, | ||
@@ -15,0 +13,0 @@ async encode(data, options) { |
{ | ||
"name": "@loaders.gl/bson", | ||
"version": "3.4.0-alpha.4", | ||
"version": "4.0.0-alpha.6", | ||
"description": "Framework-independent loader for JSON and streaming JSON formats", | ||
@@ -37,9 +37,9 @@ "license": "MIT", | ||
"dependencies": { | ||
"@loaders.gl/gis": "3.4.0-alpha.4", | ||
"@loaders.gl/loader-utils": "3.4.0-alpha.4", | ||
"@loaders.gl/schema": "3.4.0-alpha.4", | ||
"@loaders.gl/gis": "4.0.0-alpha.6", | ||
"@loaders.gl/loader-utils": "4.0.0-alpha.6", | ||
"@loaders.gl/schema": "4.0.0-alpha.6", | ||
"@types/bson": "4.2.0", | ||
"bson": "4.2.0" | ||
}, | ||
"gitHead": "f039a523df8b908a91f26c5ba8c4cfc1924b6140" | ||
"gitHead": "acc1985050dfaa0f1f0c066f8da5bce7454a046c" | ||
} |
@@ -22,3 +22,3 @@ // loaders.gl, MIT license | ||
export const BSONLoader: LoaderWithParser = { | ||
export const BSONLoader: LoaderWithParser<Record<string, unknown>, never, BSONLoaderOptions> = { | ||
name: 'BSON', | ||
@@ -25,0 +25,0 @@ id: 'bson', |
// loaders.gl, MIT license | ||
import type {Writer, WriterOptions} from '@loaders.gl/loader-utils'; | ||
import type {EncodeBSONOptions} from './lib/encoders/encode-bson'; | ||
import {encodeBSONSync} from './lib/encoders/encode-bson'; | ||
// import type {Writer} from '@loaders.gl/loader-utils'; | ||
@@ -11,3 +11,7 @@ // __VERSION__ is injected by babel-plugin-version-inline | ||
export const BSONWriter: Writer = { | ||
export type BSONWriterOptions = WriterOptions & { | ||
bson?: EncodeBSONOptions | ||
} | ||
export const BSONWriter: Writer<Record<string, unknown>, never, BSONWriterOptions> = { | ||
name: 'BSON', | ||
@@ -19,5 +23,3 @@ id: 'bson', | ||
options: { | ||
image: { | ||
mimeType: 'application/bson' | ||
} | ||
bson: {} | ||
}, | ||
@@ -24,0 +26,0 @@ async encode(data: Record<string, unknown>, options?: WriterOptions): Promise<ArrayBuffer> { |
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
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
289028
6263
+ Added@loaders.gl/gis@4.0.0-alpha.6(transitive)
+ Added@loaders.gl/loader-utils@4.0.0-alpha.6(transitive)
+ Added@loaders.gl/schema@4.0.0-alpha.6(transitive)
+ Added@loaders.gl/worker-utils@4.0.0-alpha.6(transitive)
- Removed@loaders.gl/gis@3.4.0-alpha.4(transitive)
- Removed@loaders.gl/loader-utils@3.4.0-alpha.4(transitive)
- Removed@loaders.gl/schema@3.4.0-alpha.4(transitive)
- Removed@loaders.gl/worker-utils@3.4.0-alpha.4(transitive)