@loaders.gl/bson 4.0.0-beta.6 → 4.0.0-beta.8

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/LICENSE CHANGED
@@ -1,9 +1,6 @@
1
- Copyright (c) 2015 Uber Technologies, Inc.
2
-
3
- This software includes parts of PhiloGL (https://github.com/philogb/philogl)
4
- under MIT license. PhiloGL parts Copyright © 2013 Sencha Labs.
1
+ loaders.gl is licensed under the MIT license
5
2
 
6
- This software includes adaptations of postprocessing code from THREE.js (https://github.com/mrdoob/three.js/) under MIT license. Additional attribution given in specific source files. THREE.js parts Copyright © 2010-2018 three.js authors.
3
+ Copyright (c) vis.gl contributors
7
4
 
8
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
6
  of this software and associated documentation files (the "Software"), to deal
@@ -23,8 +20,12 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
21
  THE SOFTWARE.
25
22
 
23
+ ---
24
+
25
+ Copyright (c) 2015 Uber Technologies, Inc.
26
26
 
27
- loaders.gl includes certain files from Cesium (https://github.com/AnalyticalGraphicsInc/cesium) under the Apache 2 License:
27
+ loaders.gl includes certain files from Cesium (https://github.com/AnalyticalGraphicsInc/cesium)
28
+ under the Apache 2 License (found in the submodule: modules/3d-tiles):)
28
29
 
29
30
  Copyright 2011-2018 CesiumJS Contributors
30
31
 
@@ -38,4 +39,3 @@ distributed under the License is distributed on an "AS IS" BASIS,
38
39
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
39
40
  See the License for the specific language governing permissions and limitations under the License.
40
41
 
41
- Cesium-derived code can be found in the submodule: modules/3d-tiles
@@ -1 +1 @@
1
- {"version":3,"file":"bson-loader.d.ts","sourceRoot":"","sources":["../src/bson-loader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAC9E,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAO/D;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG;IAC9C,IAAI,CAAC,EAAE,gBAAgB,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,iBAAiB,CAc1F,CAAC"}
1
+ {"version":3,"file":"bson-loader.d.ts","sourceRoot":"","sources":["../src/bson-loader.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAC9E,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAO/D;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG;IAC9C,IAAI,CAAC,EAAE,gBAAgB,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,iBAAiB,CAc1F,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"bson-loader.js","names":["parseBSONSync","VERSION","__VERSION__","BSONLoader","name","id","module","version","extensions","mimeTypes","category","binary","parse","parseSync","options","bson","arrayBuffer","bsonOptions"],"sources":["../src/bson-loader.ts"],"sourcesContent":["// loaders.gl, MIT license\nimport type {LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils';\nimport type {ParseBSONOptions} from './lib/parsers/parse-bson';\nimport {parseBSONSync} from './lib/parsers/parse-bson';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\n/**\n * @param table -\n * @param bsonpaths -\n */\nexport type BSONLoaderOptions = LoaderOptions & {\n bson?: ParseBSONOptions;\n};\n\nexport const BSONLoader: LoaderWithParser<Record<string, unknown>, never, BSONLoaderOptions> = {\n name: 'BSON',\n id: 'bson',\n module: 'bson',\n version: VERSION,\n extensions: ['bson'],\n mimeTypes: ['application/bson'],\n category: 'json',\n binary: true,\n parse,\n parseSync,\n options: {\n bson: {}\n }\n};\n\nasync function parse(arrayBuffer: ArrayBuffer, options?: BSONLoaderOptions) {\n const bsonOptions = {...BSONLoader.options.bson, ...options?.bson};\n return parseBSONSync(arrayBuffer, bsonOptions);\n}\n\nfunction parseSync(arrayBuffer: ArrayBuffer, options?: BSONLoaderOptions) {\n const bsonOptions = {...BSONLoader.options.bson, ...options?.bson};\n return parseBSONSync(arrayBuffer, bsonOptions);\n}\n"],"mappings":"SAGQA,aAAa;AAIrB,MAAMC,OAAO,GAAG,OAAOC,WAAW,KAAK,WAAW,GAAGA,WAAW,GAAG,QAAQ;AAU3E,OAAO,MAAMC,UAA+E,GAAG;EAC7FC,IAAI,EAAE,MAAM;EACZC,EAAE,EAAE,MAAM;EACVC,MAAM,EAAE,MAAM;EACdC,OAAO,EAAEN,OAAO;EAChBO,UAAU,EAAE,CAAC,MAAM,CAAC;EACpBC,SAAS,EAAE,CAAC,kBAAkB,CAAC;EAC/BC,QAAQ,EAAE,MAAM;EAChBC,MAAM,EAAE,IAAI;EACZC,KAAK;EACLC,SAAS;EACTC,OAAO,EAAE;IACPC,IAAI,EAAE,CAAC;EACT;AACF,CAAC;AAED,eAAeH,KAAKA,CAACI,WAAwB,EAAEF,OAA2B,EAAE;EAC1E,MAAMG,WAAW,GAAG;IAAC,GAAGd,UAAU,CAACW,OAAO,CAACC,IAAI;IAAE,IAAGD,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEC,IAAI;EAAA,CAAC;EAClE,OAAOf,aAAa,CAACgB,WAAW,EAAEC,WAAW,CAAC;AAChD;AAEA,SAASJ,SAASA,CAACG,WAAwB,EAAEF,OAA2B,EAAE;EACxE,MAAMG,WAAW,GAAG;IAAC,GAAGd,UAAU,CAACW,OAAO,CAACC,IAAI;IAAE,IAAGD,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEC,IAAI;EAAA,CAAC;EAClE,OAAOf,aAAa,CAACgB,WAAW,EAAEC,WAAW,CAAC;AAChD"}
1
+ {"version":3,"file":"bson-loader.js","names":["parseBSONSync","VERSION","__VERSION__","BSONLoader","name","id","module","version","extensions","mimeTypes","category","binary","parse","parseSync","options","bson","arrayBuffer","bsonOptions"],"sources":["../src/bson-loader.ts"],"sourcesContent":["// loaders.gl, MIT license\n// Copyright (c) vis.gl contributors\nimport type {LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils';\nimport type {ParseBSONOptions} from './lib/parsers/parse-bson';\nimport {parseBSONSync} from './lib/parsers/parse-bson';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\n/**\n * @param table -\n * @param bsonpaths -\n */\nexport type BSONLoaderOptions = LoaderOptions & {\n bson?: ParseBSONOptions;\n};\n\nexport const BSONLoader: LoaderWithParser<Record<string, unknown>, never, BSONLoaderOptions> = {\n name: 'BSON',\n id: 'bson',\n module: 'bson',\n version: VERSION,\n extensions: ['bson'],\n mimeTypes: ['application/bson'],\n category: 'json',\n binary: true,\n parse,\n parseSync,\n options: {\n bson: {}\n }\n};\n\nasync function parse(arrayBuffer: ArrayBuffer, options?: BSONLoaderOptions) {\n const bsonOptions = {...BSONLoader.options.bson, ...options?.bson};\n return parseBSONSync(arrayBuffer, bsonOptions);\n}\n\nfunction parseSync(arrayBuffer: ArrayBuffer, options?: BSONLoaderOptions) {\n const bsonOptions = {...BSONLoader.options.bson, ...options?.bson};\n return parseBSONSync(arrayBuffer, bsonOptions);\n}\n"],"mappings":"SAIQA,aAAa;AAIrB,MAAMC,OAAO,GAAG,OAAOC,WAAW,KAAK,WAAW,GAAGA,WAAW,GAAG,QAAQ;AAU3E,OAAO,MAAMC,UAA+E,GAAG;EAC7FC,IAAI,EAAE,MAAM;EACZC,EAAE,EAAE,MAAM;EACVC,MAAM,EAAE,MAAM;EACdC,OAAO,EAAEN,OAAO;EAChBO,UAAU,EAAE,CAAC,MAAM,CAAC;EACpBC,SAAS,EAAE,CAAC,kBAAkB,CAAC;EAC/BC,QAAQ,EAAE,MAAM;EAChBC,MAAM,EAAE,IAAI;EACZC,KAAK;EACLC,SAAS;EACTC,OAAO,EAAE;IACPC,IAAI,EAAE,CAAC;EACT;AACF,CAAC;AAED,eAAeH,KAAKA,CAACI,WAAwB,EAAEF,OAA2B,EAAE;EAC1E,MAAMG,WAAW,GAAG;IAAC,GAAGd,UAAU,CAACW,OAAO,CAACC,IAAI;IAAE,IAAGD,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEC,IAAI;EAAA,CAAC;EAClE,OAAOf,aAAa,CAACgB,WAAW,EAAEC,WAAW,CAAC;AAChD;AAEA,SAASJ,SAASA,CAACG,WAAwB,EAAEF,OAA2B,EAAE;EACxE,MAAMG,WAAW,GAAG;IAAC,GAAGd,UAAU,CAACW,OAAO,CAACC,IAAI;IAAE,IAAGD,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEC,IAAI;EAAA,CAAC;EAClE,OAAOf,aAAa,CAACgB,WAAW,EAAEC,WAAW,CAAC;AAChD"}
@@ -1 +1 @@
1
- {"version":3,"file":"bson-writer.d.ts","sourceRoot":"","sources":["../src/bson-writer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,MAAM,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,4BAA4B,CAAC;AAOlE,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG;IAC9C,IAAI,CAAC,EAAE,iBAAiB,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,iBAAiB,CAehF,CAAC"}
1
+ {"version":3,"file":"bson-writer.d.ts","sourceRoot":"","sources":["../src/bson-writer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,MAAM,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,4BAA4B,CAAC;AAOlE,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG;IAC9C,IAAI,CAAC,EAAE,iBAAiB,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,iBAAiB,CAehF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"bson-writer.js","names":["encodeBSONSync","VERSION","__VERSION__","BSONWriter","name","id","module","version","extensions","options","bson","encode","data","encodeSync"],"sources":["../src/bson-writer.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {Writer, WriterOptions} from '@loaders.gl/loader-utils';\nimport type {EncodeBSONOptions} from './lib/encoders/encode-bson';\nimport {encodeBSONSync} from './lib/encoders/encode-bson';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nexport type BSONWriterOptions = WriterOptions & {\n bson?: EncodeBSONOptions\n}\n\nexport const BSONWriter: Writer<Record<string, unknown>, never, BSONWriterOptions> = {\n name: 'BSON',\n id: 'bson',\n module: 'bson',\n version: VERSION,\n extensions: ['bson'],\n options: {\n bson: {}\n },\n async encode(data: Record<string, unknown>, options?: WriterOptions): Promise<ArrayBuffer> {\n return encodeBSONSync(data, {}); // options\n },\n encodeSync(data: Record<string, unknown>, options?: WriterOptions): ArrayBuffer {\n return encodeBSONSync(data, {}); // options\n }\n};\n"],"mappings":"SAIQA,cAAc;AAItB,MAAMC,OAAO,GAAG,OAAOC,WAAW,KAAK,WAAW,GAAGA,WAAW,GAAG,QAAQ;AAM3E,OAAO,MAAMC,UAAqE,GAAG;EACnFC,IAAI,EAAE,MAAM;EACZC,EAAE,EAAE,MAAM;EACVC,MAAM,EAAE,MAAM;EACdC,OAAO,EAAEN,OAAO;EAChBO,UAAU,EAAE,CAAC,MAAM,CAAC;EACpBC,OAAO,EAAE;IACPC,IAAI,EAAE,CAAC;EACT,CAAC;EACD,MAAMC,MAAMA,CAACC,IAA6B,EAAEH,OAAuB,EAAwB;IACzF,OAAOT,cAAc,CAACY,IAAI,EAAE,CAAC,CAAC,CAAC;EACjC,CAAC;EACDC,UAAUA,CAACD,IAA6B,EAAEH,OAAuB,EAAe;IAC9E,OAAOT,cAAc,CAACY,IAAI,EAAE,CAAC,CAAC,CAAC;EACjC;AACF,CAAC"}
1
+ {"version":3,"file":"bson-writer.js","names":["encodeBSONSync","VERSION","__VERSION__","BSONWriter","name","id","module","version","extensions","options","bson","encode","data","encodeSync"],"sources":["../src/bson-writer.ts"],"sourcesContent":["// loaders.gl, MIT license\n// Copyright (c) vis.gl contributors\n\nimport type {Writer, WriterOptions} from '@loaders.gl/loader-utils';\nimport type {EncodeBSONOptions} from './lib/encoders/encode-bson';\nimport {encodeBSONSync} from './lib/encoders/encode-bson';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nexport type BSONWriterOptions = WriterOptions & {\n bson?: EncodeBSONOptions\n}\n\nexport const BSONWriter: Writer<Record<string, unknown>, never, BSONWriterOptions> = {\n name: 'BSON',\n id: 'bson',\n module: 'bson',\n version: VERSION,\n extensions: ['bson'],\n options: {\n bson: {}\n },\n async encode(data: Record<string, unknown>, options?: WriterOptions): Promise<ArrayBuffer> {\n return encodeBSONSync(data, {}); // options\n },\n encodeSync(data: Record<string, unknown>, options?: WriterOptions): ArrayBuffer {\n return encodeBSONSync(data, {}); // options\n }\n};\n"],"mappings":"SAKQA,cAAc;AAItB,MAAMC,OAAO,GAAG,OAAOC,WAAW,KAAK,WAAW,GAAGA,WAAW,GAAG,QAAQ;AAM3E,OAAO,MAAMC,UAAqE,GAAG;EACnFC,IAAI,EAAE,MAAM;EACZC,EAAE,EAAE,MAAM;EACVC,MAAM,EAAE,MAAM;EACdC,OAAO,EAAEN,OAAO;EAChBO,UAAU,EAAE,CAAC,MAAM,CAAC;EACpBC,OAAO,EAAE;IACPC,IAAI,EAAE,CAAC;EACT,CAAC;EACD,MAAMC,MAAMA,CAACC,IAA6B,EAAEH,OAAuB,EAAwB;IACzF,OAAOT,cAAc,CAACY,IAAI,EAAE,CAAC,CAAC,CAAC;EACjC,CAAC;EACDC,UAAUA,CAACD,IAA6B,EAAEH,OAAuB,EAAe;IAC9E,OAAOT,cAAc,CAACY,IAAI,EAAE,CAAC,CAAC,CAAC;EACjC;AACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,YAAY,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAC;AACrD,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAC;AACrD,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["BSONLoader","BSONWriter"],"sources":["../src/index.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nexport type {BSONLoaderOptions} from './bson-loader';\nexport {BSONLoader} from './bson-loader';\nexport {BSONWriter} from './bson-writer';\n"],"mappings":"SAGQA,UAAU;AAAA,SACVC,UAAU"}
1
+ {"version":3,"file":"index.js","names":["BSONLoader","BSONWriter"],"sources":["../src/index.ts"],"sourcesContent":["// loaders.gl, MIT license\n// Copyright (c) vis.gl contributors\n\nexport type {BSONLoaderOptions} from './bson-loader';\nexport {BSONLoader} from './bson-loader';\nexport {BSONWriter} from './bson-writer';\n"],"mappings":"SAIQA,UAAU;AAAA,SACVC,UAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"encode-bson.d.ts","sourceRoot":"","sources":["../../../src/lib/encoders/encode-bson.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,MAAM,CAAC;AAG3C,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC;AAEjD,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9B,OAAO,CAAC,EAAE,iBAAiB,GAC1B,WAAW,CAIb"}
1
+ {"version":3,"file":"encode-bson.d.ts","sourceRoot":"","sources":["../../../src/lib/encoders/encode-bson.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,MAAM,CAAC;AAG3C,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC;AAEjD,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9B,OAAO,CAAC,EAAE,iBAAiB,GAC1B,WAAW,CAIb"}
@@ -1 +1 @@
1
- {"version":3,"file":"encode-bson.js","names":["serialize","encodeBSONSync","value","options","uint8Array","buffer"],"sources":["../../../src/lib/encoders/encode-bson.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {SerializeOptions} from 'bson';\nimport {serialize} from 'bson';\n\nexport type EncodeBSONOptions = SerializeOptions;\n\nexport function encodeBSONSync(\n value: Record<string, unknown>,\n options?: EncodeBSONOptions\n): ArrayBuffer {\n const uint8Array = serialize(value);\n // TODO - make sure the uint8array occupies the entire buffer.\n return uint8Array.buffer;\n}\n"],"mappings":"AAGA,SAAQA,SAAS,QAAO,MAAM;AAI9B,OAAO,SAASC,cAAcA,CAC5BC,KAA8B,EAC9BC,OAA2B,EACd;EACb,MAAMC,UAAU,GAAGJ,SAAS,CAACE,KAAK,CAAC;EAEnC,OAAOE,UAAU,CAACC,MAAM;AAC1B"}
1
+ {"version":3,"file":"encode-bson.js","names":["serialize","encodeBSONSync","value","options","uint8Array","buffer"],"sources":["../../../src/lib/encoders/encode-bson.ts"],"sourcesContent":["// loaders.gl, MIT license\n// Copyright (c) vis.gl contributors\n\nimport type {SerializeOptions} from 'bson';\nimport {serialize} from 'bson';\n\nexport type EncodeBSONOptions = SerializeOptions;\n\nexport function encodeBSONSync(\n value: Record<string, unknown>,\n options?: EncodeBSONOptions\n): ArrayBuffer {\n const uint8Array = serialize(value);\n // TODO - make sure the uint8array occupies the entire buffer.\n return uint8Array.buffer;\n}\n"],"mappings":"AAIA,SAAQA,SAAS,QAAO,MAAM;AAI9B,OAAO,SAASC,cAAcA,CAC5BC,KAA8B,EAC9BC,OAA2B,EACd;EACb,MAAMC,UAAU,GAAGJ,SAAS,CAACE,KAAK,CAAC;EAEnC,OAAOE,UAAU,CAACC,MAAM;AAC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"parse-bson.d.ts","sourceRoot":"","sources":["../../../src/lib/parsers/parse-bson.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,MAAM,CAAC;AAG7C,MAAM,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AAElD,wBAAgB,aAAa,CAC3B,KAAK,EAAE,WAAW,EAClB,OAAO,CAAC,EAAE,gBAAgB,GACzB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAGzB"}
1
+ {"version":3,"file":"parse-bson.d.ts","sourceRoot":"","sources":["../../../src/lib/parsers/parse-bson.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,MAAM,CAAC;AAG7C,MAAM,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AAElD,wBAAgB,aAAa,CAC3B,KAAK,EAAE,WAAW,EAClB,OAAO,CAAC,EAAE,gBAAgB,GACzB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAGzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"parse-bson.js","names":["deserialize","parseBSONSync","value","options","parsedData","Uint8Array"],"sources":["../../../src/lib/parsers/parse-bson.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {DeserializeOptions} from 'bson';\nimport {deserialize} from 'bson';\n\nexport type ParseBSONOptions = DeserializeOptions;\n\nexport function parseBSONSync(\n value: ArrayBuffer,\n options?: ParseBSONOptions\n): Record<string, unknown> {\n const parsedData = deserialize(new Uint8Array(value), options);\n return parsedData;\n}\n"],"mappings":"AAGA,SAAQA,WAAW,QAAO,MAAM;AAIhC,OAAO,SAASC,aAAaA,CAC3BC,KAAkB,EAClBC,OAA0B,EACD;EACzB,MAAMC,UAAU,GAAGJ,WAAW,CAAC,IAAIK,UAAU,CAACH,KAAK,CAAC,EAAEC,OAAO,CAAC;EAC9D,OAAOC,UAAU;AACnB"}
1
+ {"version":3,"file":"parse-bson.js","names":["deserialize","parseBSONSync","value","options","parsedData","Uint8Array"],"sources":["../../../src/lib/parsers/parse-bson.ts"],"sourcesContent":["// loaders.gl, MIT license\n// Copyright (c) vis.gl contributors\n\nimport type {DeserializeOptions} from 'bson';\nimport {deserialize} from 'bson';\n\nexport type ParseBSONOptions = DeserializeOptions;\n\nexport function parseBSONSync(\n value: ArrayBuffer,\n options?: ParseBSONOptions\n): Record<string, unknown> {\n const parsedData = deserialize(new Uint8Array(value), options);\n return parsedData;\n}\n"],"mappings":"AAIA,SAAQA,WAAW,QAAO,MAAM;AAIhC,OAAO,SAASC,aAAaA,CAC3BC,KAAkB,EAClBC,OAA0B,EACD;EACzB,MAAMC,UAAU,GAAGJ,WAAW,CAAC,IAAIK,UAAU,CAACH,KAAK,CAAC,EAAEC,OAAO,CAAC;EAC9D,OAAOC,UAAU;AACnB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/bson",
3
- "version": "4.0.0-beta.6",
3
+ "version": "4.0.0-beta.8",
4
4
  "description": "Framework-independent loader for JSON and streaming JSON formats",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -42,11 +42,11 @@
42
42
  "build-bundle": "ocular-bundle ./src/index.ts"
43
43
  },
44
44
  "dependencies": {
45
- "@loaders.gl/gis": "4.0.0-beta.6",
46
- "@loaders.gl/loader-utils": "4.0.0-beta.6",
47
- "@loaders.gl/schema": "4.0.0-beta.6",
45
+ "@loaders.gl/gis": "4.0.0-beta.8",
46
+ "@loaders.gl/loader-utils": "4.0.0-beta.8",
47
+ "@loaders.gl/schema": "4.0.0-beta.8",
48
48
  "@types/bson": "4.2.0",
49
49
  "bson": "4.2.0"
50
50
  },
51
- "gitHead": "2840f605b7a551e2ffef5f960231d989a0414c50"
51
+ "gitHead": "ec3d1747b4c01c52a235455d6462680e711b4e19"
52
52
  }
@@ -1,4 +1,5 @@
1
1
  // loaders.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
2
3
  import type {LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils';
3
4
  import type {ParseBSONOptions} from './lib/parsers/parse-bson';
4
5
  import {parseBSONSync} from './lib/parsers/parse-bson';
@@ -1,4 +1,5 @@
1
1
  // loaders.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
2
3
 
3
4
  import type {Writer, WriterOptions} from '@loaders.gl/loader-utils';
4
5
  import type {EncodeBSONOptions} from './lib/encoders/encode-bson';
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  // loaders.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
2
3
 
3
4
  export type {BSONLoaderOptions} from './bson-loader';
4
5
  export {BSONLoader} from './bson-loader';
@@ -1,4 +1,5 @@
1
1
  // loaders.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
2
3
 
3
4
  import type {SerializeOptions} from 'bson';
4
5
  import {serialize} from 'bson';
@@ -1,4 +1,5 @@
1
1
  // loaders.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
2
3
 
3
4
  import type {DeserializeOptions} from 'bson';
4
5
  import {deserialize} from 'bson';