Merge pull request #173 from appy-one/feature/dual-cjs-esm-dist

Dual CommonJS and ESM modules distributions
This commit is contained in:
Ewout Stortenbeker 2022-11-07 12:10:30 +01:00 committed by GitHub
commit decd55d3d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
852 changed files with 25256 additions and 815 deletions

View file

@ -4,7 +4,7 @@
# AceBase realtime database
A fast, low memory, transactional, index & query enabled NoSQL database engine and server for node.js and browser with realtime data change notifications. Supports storing of JSON objects, arrays, numbers, strings, booleans, dates and binary (ArrayBuffer) data.
A fast, low memory, transactional, index & query enabled NoSQL database engine and server for node.js and browser with realtime data change notifications. Supports storing of JSON objects, arrays, numbers, strings, booleans, dates, bigints and binary (ArrayBuffer) data.
Inspired by (and largely compatible with) the Firebase realtime database, with additional functionality and less data sharding/duplication. Capable of storing up to 2^48 (281 trillion) object nodes in a binary database file that can theoretically grow to a max filesize of 8 petabytes.
@ -79,11 +79,13 @@ AceBase is easy to set up and runs anywhere: in the cloud, NAS, local server, yo
* [Info](#transaction-logging)
* Multi-process support
* [Info](#multi-process-support)
* [CommonJS and ESM packages](#commonjs-and-esm-packages)
* [Upgrade notices](#upgrade-notices)
* [Known issues](#known-issues)
* [Authors](#authors)
* [Contributing](#contributing)
* [Sponsoring](#sponsoring)
## Getting Started
AceBase is split up into multiple packages:
@ -2201,6 +2203,15 @@ AceBase supports running in multiple processes by using interprocess communicati
If you are using pm2 to run your app in a cluster, or run your app in a cloud-based cluster (eg Kubernetes, Docker Swarm), AceBase instances will need some other way to communicate with eachother. This is now possible using an AceBase IPC Server, which allows fast communication using websockets. See [AceBase IPC Server](https://github.com/appy-one/acebase-ipc-server) for more info!
## CommonJS and ESM packages
The TypeScript sources are compiled to both CommonJS and ESM module systems. The sources loaded depend on whether you `import` or `require` acebase:
| Statement | Module system | Target |
|--------------------------------------------|---------------|--------|
| import { AceBase } from 'acebase' | ESM | ES2020 |
| const { AceBase } = require('acebase') | CommonJS | ES2017 |
See https://github.com/appy-one/acebase/discussions/98 for more info.
## Upgrade notices
* v0.9.68 - To get the used updating context in data event handlers, read from `snap.context()` instead of `snap.ref.context()`. This is to prevent further updates on `snap.ref` to use the same context. If you need to reuse the event context for new updates, you will have to manually set it: `snap.ref.context(snap.context()).update(...)`

47
create-package-files Normal file
View file

@ -0,0 +1,47 @@
#!/bin/bash
# Create CommonJS package.json
cat >dist/cjs/package.json <<JSON
{
"type": "commonjs",
"types": "../types/index.d.ts",
"browser": {
"./index.js": "./browser.js",
"./ipc/index.js": "./ipc/browser.js",
"./promise-fs/index.js": "./promise-fs/browser.js",
"./storage/binary/index.js": "./storage/binary/browser.js",
"./storage/mssql/index.js": "./storage/mssql/browser.js",
"./storage/sqlite/index.js": "./storage/sqlite/browser.js",
"./data-index/index.js": "./data-index/browser.js",
"./btree/index.js": "./btree/browser.js"
}
}
JSON
# Write typings to support Node16 module resolution
cat >dist/cjs/index.d.ts <<TYPESCRIPT
export * from '../types';
TYPESCRIPT
# Create ESM package.json
cat >dist/esm/package.json <<JSON
{
"type": "module",
"types": "../types/index.d.ts",
"browser": {
"./index.js": "./browser.js",
"./ipc/index.js": "./ipc/browser.js",
"./promise-fs/index.js": "./promise-fs/browser.js",
"./storage/binary/index.js": "./storage/binary/browser.js",
"./storage/mssql/index.js": "./storage/mssql/browser.js",
"./storage/sqlite/index.js": "./storage/sqlite/browser.js",
"./data-index/index.js": "./data-index/browser.js",
"./btree/index.js": "./btree/browser.js"
}
}
JSON
# Write typings to support Node16 module resolution
cat >dist/esm/index.d.ts <<TYPESCRIPT
export * from '../types';
TYPESCRIPT

229
dist/browser.js vendored
View file

@ -673,7 +673,7 @@ class LiveDataProxy {
};
const localMutationsEmitter = new simple_event_emitter_1.SimpleEventEmitter();
const addOnChangeHandler = (target, callback) => {
const isObject = val => val !== null && typeof val === 'object';
const isObject = (val) => val !== null && typeof val === 'object';
const mutationsHandler = async (details) => {
var _a;
const { snap, origin } = details;
@ -757,7 +757,7 @@ class LiveDataProxy {
return addOnChangeHandler(target, args.callback);
}
else if (flag === 'subscribe' || flag === 'observe') {
const subscribe = subscriber => {
const subscribe = (subscriber) => {
const currentValue = getTargetValue(cache, target);
subscriber.next(currentValue);
const subscription = addOnChangeHandler(target, (value /*, previous, isRemote, context */) => {
@ -1198,7 +1198,7 @@ function createProxy(context) {
context.flag('write', context.target);
return action();
};
const cleanArrayValues = values => values.map(value => {
const cleanArrayValues = (values) => values.map((value) => {
value = unproxyValue(value);
removeVoidProperties(value);
return value;
@ -1485,7 +1485,7 @@ class OrderedCollectionProxy {
*/
getArrayObservable() {
const Observable = (0, optional_observable_1.getObservable)();
return new Observable(subscriber => {
return new Observable((subscriber => {
const subscription = this.getObservable().subscribe(( /*value*/) => {
const newArray = this.getArray();
subscriber.next(newArray);
@ -1493,7 +1493,7 @@ class OrderedCollectionProxy {
return function unsubscribe() {
subscription.unsubscribe();
};
});
}));
}
/**
* Gets an ordered array representation of the items in your object collection. The items in the array
@ -1511,7 +1511,8 @@ class OrderedCollectionProxy {
// };
return arr;
}
add(item, index, from) {
add(newItem, index, from) {
const item = newItem;
const arr = this.getArray();
let minOrder = Number.POSITIVE_INFINITY, maxOrder = Number.NEGATIVE_INFINITY;
for (let i = 0; i < arr.length; i++) {
@ -2262,7 +2263,7 @@ class DataReference {
throw new Error(`Cannot observe wildcard path "/${this.path}"`);
}
const Observable = (0, optional_observable_1.getObservable)();
return new Observable(observer => {
return new Observable((observer => {
let cache, resolved = false;
let promise = this.get(options).then(snap => {
resolved = true;
@ -2307,7 +2308,7 @@ class DataReference {
return () => {
this.off('mutated', updateCache);
};
});
}));
}
async forEach(callbackOrOptions, callback) {
let options;
@ -3088,7 +3089,7 @@ class ObservableShim {
}
exports.ObservableShim = ObservableShim;
},{"rxjs":27}],15:[function(require,module,exports){
},{"rxjs":57}],15:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PartialArray = void 0;
@ -3730,7 +3731,7 @@ class SchemaDefinition {
// }
// };
// Resulting ts: "{name:string,born:Date,instrument:'guitar'|'piano',address?:{street:string}}"
const toTS = obj => {
const toTS = (obj) => {
return '{' + Object.keys(obj)
.map(key => {
let val = obj[key];
@ -3972,7 +3973,7 @@ function Colorize(str, style) {
return str;
}
const openCodes = [], closeCodes = [];
const addStyle = style => {
const addStyle = (style) => {
if (style === ColorStyle.reset) {
openCodes.push(ResetCode.all);
}
@ -4162,19 +4163,19 @@ class EventStream {
constructor(eventPublisherCallback) {
const subscribers = [];
let noMoreSubscribersCallback;
let activationState;
const _stoppedState = 'stopped (no more subscribers)';
let activationState; // TODO: refactor to string only: STATE_INIT, STATE_STOPPED, STATE_ACTIVATED, STATE_CANCELED
const STATE_STOPPED = 'stopped (no more subscribers)';
this.subscribe = (callback, activationCallback) => {
if (typeof callback !== 'function') {
throw new TypeError('callback must be a function');
}
else if (activationState === _stoppedState) {
else if (activationState === STATE_STOPPED) {
throw new Error('stream can\'t be used anymore because all subscribers were stopped');
}
const sub = {
callback,
activationCallback: function (activated, cancelReason) {
activationCallback && activationCallback(activated, cancelReason);
activationCallback === null || activationCallback === void 0 ? void 0 : activationCallback(activated, cancelReason);
this.subscription._setActivationState(activated, cancelReason);
},
subscription: new EventSubscription(function stop() {
@ -4185,11 +4186,11 @@ class EventStream {
subscribers.push(sub);
if (typeof activationState !== 'undefined') {
if (activationState === true) {
activationCallback && activationCallback(true);
activationCallback === null || activationCallback === void 0 ? void 0 : activationCallback(true);
sub.subscription._setActivationState(true);
}
else if (typeof activationState === 'string') {
activationCallback && activationCallback(false, activationState);
activationCallback === null || activationCallback === void 0 ? void 0 : activationCallback(false, activationState);
sub.subscription._setActivationState(false, activationState);
}
}
@ -4198,8 +4199,8 @@ class EventStream {
const checkActiveSubscribers = () => {
let ret;
if (subscribers.length === 0) {
ret = noMoreSubscribersCallback && noMoreSubscribersCallback();
activationState = _stoppedState;
ret = noMoreSubscribersCallback === null || noMoreSubscribersCallback === void 0 ? void 0 : noMoreSubscribersCallback();
activationState = STATE_STOPPED;
}
return Promise.resolve(ret);
};
@ -4220,8 +4221,8 @@ class EventStream {
};
/**
* For publishing side: adds a value that will trigger callbacks to all subscribers
* @param {any} val
* @returns {boolean} returns whether there are subscribers left
* @param val
* @returns returns whether there are subscribers left
*/
const publish = (val) => {
subscribers.forEach(sub => {
@ -4244,7 +4245,8 @@ class EventStream {
activationState = true;
noMoreSubscribersCallback = allSubscriptionsStoppedCallback;
subscribers.forEach(sub => {
sub.activationCallback && sub.activationCallback(true);
var _a;
(_a = sub.activationCallback) === null || _a === void 0 ? void 0 : _a.call(sub, true);
});
};
/**
@ -4253,7 +4255,8 @@ class EventStream {
const cancel = (reason) => {
activationState = reason;
subscribers.forEach(sub => {
sub.activationCallback && sub.activationCallback(false, reason || new Error('unknown reason'));
var _a;
(_a = sub.activationCallback) === null || _a === void 0 ? void 0 : _a.call(sub, false, reason || new Error('unknown reason'));
});
subscribers.splice(0); // Clear all
};
@ -4562,9 +4565,10 @@ const deserialize2 = (data) => {
}
else if (dataType === 'array') {
// partial ("sparse") array, deserialize children into a copy
const arr = data;
const copy = {};
for (const index in data) {
copy[index] = (0, exports.deserialize2)(data[index]);
for (const index in arr) {
copy[index] = (0, exports.deserialize2)(arr[index]);
}
delete copy['.type'];
return new partial_array_1.PartialArray(copy);
@ -4619,7 +4623,7 @@ function get(mappings, path) {
return false; // Can't be a match
}
return mkeys.every((mkey, index) => {
if (mkey === '*' || mkey[0] === '$') {
if (mkey === '*' || (typeof mkey === 'string' && mkey[0] === '$')) {
return true; // wildcard
}
return mkey === keys[index];
@ -4664,14 +4668,14 @@ function mapDeep(mappings, entryPath) {
let isMatch = true;
if (keys.length === 0 && startPath !== null) {
// Only match first node's children if mapping pattern is "*" or "$variable"
isMatch = mkeys.length === 1 && (mkeys[0] === '*' || mkeys[0][0] === '$');
isMatch = mkeys.length === 1 && (mkeys[0] === '*' || (typeof mkeys[0] === 'string' && mkeys[0][0] === '$'));
}
else {
mkeys.every((mkey, index) => {
if (index >= keys.length) {
return false; // stop .every loop
}
else if (mkey === '*' || mkey[0] === '$' || mkey === keys[index]) {
else if ((mkey === '*' || (typeof mkey === 'string' && mkey[0] === '$')) || mkey === keys[index]) {
return true; // continue .every loop
}
else {
@ -4725,7 +4729,7 @@ function process(db, mappings, path, obj, action) {
}
const key = keys[0];
let children = [];
if (key === '*' || key[0] === '$') {
if (key === '*' || (typeof key === 'string' && key[0] === '$')) {
// Include all children
if (parent instanceof Array) {
children = parent.map((val, index) => ({ key: index, val }));
@ -4900,19 +4904,19 @@ class TypeMappings {
};
}
/**
* (for internal use)
* @internal (for internal use)
* Serializes any child in given object that has a type mapping
* @param {string} path | path to the object's location
* @param {object} obj | object to serialize
* @param path | path to the object's location
* @param obj object to serialize
*/
serialize(path, obj) {
return process(this.db, this[_mappings], path, obj, 'serialize');
}
/**
* (for internal use)
* @internal (for internal use)
* Deserialzes any child in given object that has a type mapping
* @param {string} path | path to the object's location
* @param {object} obj | object to deserialize
* @param path path to the object's location
* @param obj object to deserialize
*/
deserialize(path, obj) {
return process(this.db, this[_mappings], path, obj, 'deserialize');
@ -5147,7 +5151,7 @@ function cloneObject(original, stack) {
if (((_a = original === null || original === void 0 ? void 0 : original.constructor) === null || _a === void 0 ? void 0 : _a.name) === 'DataSnapshot') {
throw new TypeError(`Object to clone is a DataSnapshot (path "${original.ref.path}")`);
}
const checkAndFixTypedArray = obj => {
const checkAndFixTypedArray = (obj) => {
if (obj !== null && typeof obj === 'object'
&& typeof obj.constructor === 'function' && typeof obj.constructor.name === 'string'
&& ['Buffer', 'Uint8Array', 'Int8Array', 'Uint16Array', 'Int16Array', 'Uint32Array', 'Int32Array', 'BigUint64Array', 'BigInt64Array'].includes(obj.constructor.name)) {
@ -5193,7 +5197,7 @@ function cloneObject(original, stack) {
return clone;
}
exports.cloneObject = cloneObject;
const isTypedArray = val => typeof val === 'object' && ['ArrayBuffer', 'Buffer', 'Uint8Array', 'Uint16Array', 'Uint32Array', 'Int8Array', 'Int16Array', 'Int32Array'].includes(val.constructor.name);
const isTypedArray = (val) => typeof val === 'object' && ['ArrayBuffer', 'Buffer', 'Uint8Array', 'Uint16Array', 'Uint32Array', 'Int8Array', 'Int16Array', 'Int32Array'].includes(val.constructor.name);
// CONSIDER: updating isTypedArray to: const isTypedArray = val => typeof val === 'object' && 'buffer' in val && 'byteOffset' in val && 'byteLength' in val;
function valuesAreEqual(val1, val2) {
if (val1 === val2) {
@ -5279,7 +5283,7 @@ function compareValues(oldVal, newVal, sortedResults = false) {
else if (typeof oldVal === 'object') {
// Do key-by-key comparison of objects
const isArray = oldVal instanceof Array;
const getKeys = obj => {
const getKeys = (obj) => {
let keys = Object.keys(obj).filter(key => !voids.includes(obj[key]));
if (isArray) {
keys = keys.map((v) => parseInt(v));
@ -5352,9 +5356,7 @@ function defer(fn) {
exports.defer = defer;
}).call(this)}).call(this,require("buffer").Buffer)
},{"./partial-array":15,"./path-reference":17,"./process":18,"buffer":27}],27:[function(require,module,exports){
},{}],28:[function(require,module,exports){
},{"./partial-array":15,"./path-reference":17,"./process":18,"buffer":57}],27:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BrowserAceBase = void 0;
@ -5401,7 +5403,7 @@ class BrowserAceBase extends acebase_local_1.AceBase {
}
exports.BrowserAceBase = BrowserAceBase;
},{"./acebase-local":29,"./storage/custom/indexed-db":46}],29:[function(require,module,exports){
},{"./acebase-local":28,"./storage/custom/indexed-db":47}],28:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AceBase = exports.AceBaseLocalSettings = exports.IndexedDBStorageSettings = exports.LocalStorageSettings = void 0;
@ -5487,7 +5489,7 @@ class AceBase extends acebase_core_1.AceBaseBase {
}
exports.AceBase = AceBase;
},{"./api-local":30,"./storage/binary":40,"./storage/custom/indexed-db/settings":47,"./storage/custom/local-storage":49,"acebase-core":12}],30:[function(require,module,exports){
},{"./api-local":29,"./storage/binary":43,"./storage/custom/indexed-db/settings":48,"./storage/custom/local-storage":50,"acebase-core":12}],29:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LocalApi = void 0;
@ -5654,7 +5656,7 @@ class LocalApi extends acebase_core_1.Api {
if (['null', 'undefined'].includes(from)) {
from = null;
}
const children = [];
const children = []; // Array<{ key: string | number; type: string; value: any; address?: any }>;
let n = 0, stop = false, more = false; //stop = skip + limit,
await this.storage.getChildren(path)
.next(childInfo => {
@ -5685,7 +5687,8 @@ class LocalApi extends acebase_core_1.Api {
};
switch (type) {
case 'children': {
return getChildren(path, args.limit, args.skip, args.from);
const result = await getChildren(path, args.limit, args.skip, args.from);
return result;
}
case 'info': {
const info = {
@ -5783,7 +5786,7 @@ class LocalApi extends acebase_core_1.Api {
}
exports.LocalApi = LocalApi;
},{"./node-value-types":39,"./query":42,"./storage/binary":40,"./storage/custom":45,"./storage/mssql":40,"./storage/sqlite":40,"acebase-core":12}],31:[function(require,module,exports){
},{"./node-value-types":39,"./query":42,"./storage/binary":43,"./storage/custom":46,"./storage/mssql":55,"./storage/sqlite":56,"acebase-core":12}],30:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AsyncTaskBatch = void 0;
@ -5863,7 +5866,7 @@ class AsyncTaskBatch {
}
exports.AsyncTaskBatch = AsyncTaskBatch;
},{}],32:[function(require,module,exports){
},{}],31:[function(require,module,exports){
"use strict";
/**
________________________________________________________________________________
@ -5943,12 +5946,43 @@ var storage_1 = require("./storage");
Object.defineProperty(exports, "StorageSettings", { enumerable: true, get: function () { return storage_1.StorageSettings; } });
Object.defineProperty(exports, "SchemaValidationError", { enumerable: true, get: function () { return storage_1.SchemaValidationError; } });
},{"./acebase-browser":28,"./acebase-local":29,"./storage":52,"./storage/binary":40,"./storage/custom":45,"./storage/mssql":40,"./storage/sqlite":40,"acebase-core":12}],33:[function(require,module,exports){
},{"./acebase-browser":27,"./acebase-local":28,"./storage":53,"./storage/binary":43,"./storage/custom":46,"./storage/mssql":55,"./storage/sqlite":56,"acebase-core":12}],32:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IPCPeer = void 0;
exports.ArrayIndex = exports.GeoIndex = exports.FullTextIndex = exports.DataIndex = void 0;
const not_supported_1 = require("../not-supported");
/**
* Not supported in browser context
*/
class DataIndex extends not_supported_1.NotSupported {
}
exports.DataIndex = DataIndex;
/**
* Not supported in browser context
*/
class FullTextIndex extends not_supported_1.NotSupported {
}
exports.FullTextIndex = FullTextIndex;
/**
* Not supported in browser context
*/
class GeoIndex extends not_supported_1.NotSupported {
}
exports.GeoIndex = GeoIndex;
/**
* Not supported in browser context
*/
class ArrayIndex extends not_supported_1.NotSupported {
}
exports.ArrayIndex = ArrayIndex;
},{"../not-supported":40}],33:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RemoteIPCPeer = exports.IPCPeer = void 0;
const acebase_core_1 = require("acebase-core");
const ipc_1 = require("./ipc");
const not_supported_1 = require("../not-supported");
/**
* Browser tabs IPC. Database changes and events will be synchronized automatically.
* Locking of resources will be done by the election of a single locking master:
@ -6078,8 +6112,14 @@ class IPCPeer extends ipc_1.AceBaseIPCPeer {
}
}
exports.IPCPeer = IPCPeer;
/**
* Not supported in browser context
*/
class RemoteIPCPeer extends not_supported_1.NotSupported {
}
exports.RemoteIPCPeer = RemoteIPCPeer;
},{"./ipc":34,"acebase-core":12}],34:[function(require,module,exports){
},{"../not-supported":40,"./ipc":34,"acebase-core":12}],34:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AceBaseIPCPeer = exports.AceBaseIPCPeerExitingError = void 0;
@ -7050,7 +7090,14 @@ function getValueType(value) {
exports.getValueType = getValueType;
},{"acebase-core":12}],40:[function(require,module,exports){
// Not supported in current environment
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NotSupported = void 0;
class NotSupported {
constructor(context = 'browser') { throw new Error(`This feature is not supported in ${context} context`); }
}
exports.NotSupported = NotSupported;
},{}],41:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
@ -7791,7 +7838,25 @@ function query(api, path, query, options = { snapshots: false, include: undefine
}
exports.query = query;
},{"./async-task-batch":31,"./data-index":40,"./node-errors":36,"./node-value-types":39,"acebase-core":12}],43:[function(require,module,exports){
},{"./async-task-batch":30,"./data-index":32,"./node-errors":36,"./node-value-types":39,"acebase-core":12}],43:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AceBaseStorage = exports.AceBaseStorageSettings = void 0;
const not_supported_1 = require("../../not-supported");
/**
* Not supported in browser context
*/
class AceBaseStorageSettings extends not_supported_1.NotSupported {
}
exports.AceBaseStorageSettings = AceBaseStorageSettings;
/**
* Not supported in browser context
*/
class AceBaseStorage extends not_supported_1.NotSupported {
}
exports.AceBaseStorage = AceBaseStorage;
},{"../../not-supported":40}],44:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createIndex = void 0;
@ -7868,7 +7933,7 @@ async function createIndex(context, path, key, options) {
}
exports.createIndex = createIndex;
},{"../data-index":40,"../promise-fs":41,"acebase-core":12}],44:[function(require,module,exports){
},{"../data-index":32,"../promise-fs":41,"acebase-core":12}],45:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomStorageHelpers = void 0;
@ -7937,7 +8002,7 @@ class CustomStorageHelpers {
}
exports.CustomStorageHelpers = CustomStorageHelpers;
},{"acebase-core":12}],45:[function(require,module,exports){
},{"acebase-core":12}],46:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomStorage = exports.CustomStorageNodeInfo = exports.CustomStorageNodeAddress = exports.CustomStorageSettings = exports.CustomStorageTransaction = exports.ICustomStorageNode = exports.ICustomStorageNodeMetaData = exports.CustomStorageHelpers = void 0;
@ -9151,7 +9216,7 @@ class CustomStorage extends index_1.Storage {
}
exports.CustomStorage = CustomStorage;
},{"../../node-address":35,"../../node-errors":36,"../../node-info":37,"../../node-lock":38,"../../node-value-types":39,"../index":52,"./helpers":44,"acebase-core":12}],46:[function(require,module,exports){
},{"../../node-address":35,"../../node-errors":36,"../../node-info":37,"../../node-lock":38,"../../node-value-types":39,"../index":53,"./helpers":45,"acebase-core":12}],47:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createIndexedDBInstance = void 0;
@ -9229,7 +9294,7 @@ function createIndexedDBInstance(dbname, init = {}) {
}
exports.createIndexedDBInstance = createIndexedDBInstance;
},{"..":45,"../../..":32,"./settings":47,"./transaction":48,"acebase-core":12}],47:[function(require,module,exports){
},{"..":46,"../../..":31,"./settings":48,"./transaction":49,"acebase-core":12}],48:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IndexedDBStorageSettings = void 0;
@ -9273,7 +9338,7 @@ class IndexedDBStorageSettings extends __1.StorageSettings {
}
exports.IndexedDBStorageSettings = IndexedDBStorageSettings;
},{"../..":52}],48:[function(require,module,exports){
},{"../..":53}],49:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IndexedDBStorageTransaction = void 0;
@ -9500,7 +9565,7 @@ class IndexedDBStorageTransaction extends __1.CustomStorageTransaction {
}
exports.IndexedDBStorageTransaction = IndexedDBStorageTransaction;
},{"..":45}],49:[function(require,module,exports){
},{"..":46}],50:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createLocalStorageInstance = exports.LocalStorageTransaction = exports.LocalStorageSettings = void 0;
@ -9541,7 +9606,7 @@ function createLocalStorageInstance(dbname, init = {}) {
}
exports.createLocalStorageInstance = createLocalStorageInstance;
},{"..":45,"../../..":32,"./settings":50,"./transaction":51}],50:[function(require,module,exports){
},{"..":46,"../../..":31,"./settings":51,"./transaction":52}],51:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LocalStorageSettings = void 0;
@ -9583,7 +9648,7 @@ class LocalStorageSettings extends __1.StorageSettings {
}
exports.LocalStorageSettings = LocalStorageSettings;
},{"../..":52}],51:[function(require,module,exports){
},{"../..":53}],52:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LocalStorageTransaction = void 0;
@ -9677,7 +9742,7 @@ class LocalStorageTransaction extends __1.CustomStorageTransaction {
}
exports.LocalStorageTransaction = LocalStorageTransaction;
},{"..":45}],52:[function(require,module,exports){
},{"..":46}],53:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Storage = exports.StorageSettings = exports.SchemaValidationError = void 0;
@ -11748,12 +11813,50 @@ class Storage extends acebase_core_1.SimpleEventEmitter {
}
exports.Storage = Storage;
},{"../data-index":40,"../ipc":33,"../node-errors":36,"../node-info":37,"../node-value-types":39,"../promise-fs":41,"./indexes":53,"acebase-core":12}],53:[function(require,module,exports){
},{"../data-index":32,"../ipc":33,"../node-errors":36,"../node-info":37,"../node-value-types":39,"../promise-fs":41,"./indexes":54,"acebase-core":12}],54:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createIndex = void 0;
var create_index_1 = require("./create-index");
Object.defineProperty(exports, "createIndex", { enumerable: true, get: function () { return create_index_1.createIndex; } });
},{"./create-index":43}]},{},[32])(32)
},{"./create-index":44}],55:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MSSQLStorage = exports.MSSQLStorageSettings = void 0;
const not_supported_1 = require("../../not-supported");
/**
* Not supported in browser context
*/
class MSSQLStorageSettings extends not_supported_1.NotSupported {
}
exports.MSSQLStorageSettings = MSSQLStorageSettings;
/**
* Not supported in browser context
*/
class MSSQLStorage extends not_supported_1.NotSupported {
}
exports.MSSQLStorage = MSSQLStorage;
},{"../../not-supported":40}],56:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SQLiteStorage = exports.SQLiteStorageSettings = void 0;
const not_supported_1 = require("../../not-supported");
/**
* Not supported in browser context
*/
class SQLiteStorageSettings extends not_supported_1.NotSupported {
}
exports.SQLiteStorageSettings = SQLiteStorageSettings;
/**
* Not supported in browser context
*/
class SQLiteStorage extends not_supported_1.NotSupported {
}
exports.SQLiteStorage = SQLiteStorage;
},{"../../not-supported":40}],57:[function(require,module,exports){
},{}]},{},[31])(31)
});

2
dist/browser.min.js vendored

File diff suppressed because one or more lines are too long

1
dist/cjs/acebase-browser.js.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"acebase-browser.js","sourceRoot":"","sources":["../../src/acebase-browser.ts"],"names":[],"mappings":";;;AAAA,mDAAgE;AAChE,4DAAsE;AAGtE,MAAM,0BAA0B,GAAG;;;;;;;;6DAQ0B,CAAC;AAE9D,MAAa,cAAe,SAAQ,uBAAO;IACvC;;;;OAIG;IACH,YAAY,IAAY,EAAE,QAAoE;QAC1F,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,OAAO,QAAQ,CAAC,OAAO,KAAK,QAAQ,EAAE;YACtE,oDAAoD;YACpD,gDAAgD;YAChD,EAAE;YACF,iEAAiE;YACjE,qEAAqE;YACrE,+DAA+D;YAC/D,kDAAkD;YAClD,iFAAiF;YAEjF,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;SAC/C;QACD,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACtB,IAAI,CAAC,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,YAAY,KAAK,IAAI,CAAC;IAC7D,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,aAAa,CAAC,MAAc,EAAE,OAA0C,EAAE;QAC7E,OAAO,IAAA,oCAAuB,EAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACjD,CAAC;CACJ;AA/BD,wCA+BC"}

1
dist/cjs/acebase-local.js.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"acebase-local.js","sourceRoot":"","sources":["../../src/acebase-local.ts"],"names":[],"mappings":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
const children = []; // Array<{ key: string | number; type: string; value: any; address?: any }>;
let n = 0, stop = false, more = false; //stop = skip + limit,
await this.storage.getChildren(path)
.next(childInfo => {
@ -195,7 +195,8 @@ class LocalApi extends acebase_core_1.Api {
};
switch (type) {
case 'children': {
return getChildren(path, args.limit, args.skip, args.from);
const result = await getChildren(path, args.limit, args.skip, args.from);
return result;
}
case 'info': {
const info = {

1
dist/cjs/api-local.js.map vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/cjs/async-task-batch.js.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"async-task-batch.js","sourceRoot":"","sources":["../../src/async-task-batch.ts"],"names":[],"mappings":";;;AAAA,MAAa,cAAc;IASvB;;;;;;;OAOG;IACH,YAAmB,QAAQ,IAAI,EAAS,OAA2C;QAAhE,UAAK,GAAL,KAAK,CAAO;QAAS,YAAO,GAAP,OAAO,CAAoC;QAhB3E,UAAK,GAAG,CAAC,CAAC;QACV,cAAS,GAAG,EAAwD,CAAC;QACrE,YAAO,GAAG,CAAC,CAAC;QACZ,YAAO,GAAG,EAAW,CAAC;QAGtB,SAAI,GAAG,KAAK,CAAC;IAUkE,CAAC;IAEhF,KAAK,CAAC,OAAO,CAAC,IAAwB,EAAE,KAAa;;QACzD,IAAI;YACA,IAAI,CAAC,OAAO,EAAE,CAAC;YACf,MAAM,MAAM,GAAG,MAAM,IAAI,EAAE,CAAC;YAC5B,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC;YAC7B,IAAI,CAAC,OAAO,EAAE,CAAC;YAEf,IAAI,IAAI,CAAC,OAAO,KAAK,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;gBACnD,WAAW;gBACX,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;gBACjB,MAAA,IAAI,CAAC,YAAY,qDAAG,IAAI,CAAC,OAAO,CAAC,CAAC;aACrC;iBACI,IAAI,IAAI,CAAC,SAAS,CAAC,MAA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OAAO,CAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACzC,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC;YAC5B,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC;QAChC,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;CACJ;AA5ED,wCA4EC"}

View file

1
dist/cjs/binary.js.map vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/cjs/browser.js.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../../src/browser.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;EAiBE;;;AAEF,+CAG0D;AAgCtD,8FAnCK,4BAAa,OAmCL;AADb,6FAlCoB,2BAAY,OAkCpB;AAKZ,kGAvCkC,gCAAiB,OAuClC;AACjB,8FAxCqD,4BAAa,OAwCrD;AACb,6FAzCoE,2BAAY,OAyCpE;AASZ,mFAlDkF,iBAAE,OAkDlF;AACF,4FAnDsF,0BAAW,OAmDtF;AAfX,mGAnCA,iCAAkB,OAmCA;AAalB,iGAhDoB,+BAAgB,OAgDpB;AAZhB,oGApCsC,kCAAmB,OAoCtC;AACnB,4FArC2D,0BAAW,OAqC3D;AAcX,6FAjDmB,2BAAY,OAiDnB;AAhDhB,mDAAuD;AACvD,uDAAmD;AAoD7B,wFApDb,gCAAc,OAoDM;AAnD7B,6CAAyG;AAEzG,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,gCAAc;IACvB,oBAAoB,EAApB,oCAAoB;IACpB,aAAa,EAAb,4BAAa;IACb,YAAY,EAAZ,2BAAY;IACZ,iBAAiB,EAAjB,gCAAiB;IACjB,aAAa,EAAb,4BAAa;IACb,YAAY,EAAZ,2BAAY;IACZ,qBAAqB,EAArB,8BAAqB;IACrB,wBAAwB,EAAxB,iCAAwB;IACxB,oBAAoB,EAApB,6BAAoB;IACpB,EAAE,EAAF,iBAAE;IACF,WAAW,EAAX,0BAAW;IACX,kBAAkB,EAAlB,iCAAkB;CACrB,CAAC;AAEF,oCAAoC;AACnC,MAAc,CAAC,OAAO,GAAG,OAAO,CAAC;AAClC,iDAAiD;AAChD,MAAc,CAAC,OAAO,GAAG,gCAAc,CAAC;AAEzC,qCAAqC;AACrC,kBAAe,OAAO,CAAC;AA8BvB,iDAIyB;AAHrB,qHAAA,oBAAoB,OAAA;AACpB,qHAAA,oBAAoB,OAAA;AACpB,yHAAA,wBAAwB,OAAA;AAG5B,2CAA0D;AAAjD,gHAAA,sBAAsB,OAAA;AAC/B,2CAAyD;AAAhD,+GAAA,qBAAqB,OAAA;AAC9B,yCAAuD;AAA9C,6GAAA,oBAAoB,OAAA;AAE7B,2CAM0B;AALtB,kHAAA,wBAAwB,OAAA;AACxB,+GAAA,qBAAqB,OAAA;AACrB,8GAAA,oBAAoB,OAAA;AACpB,4GAAA,kBAAkB,OAAA;AAClB,oHAAA,0BAA0B,OAAA;AAG9B,qCAKmB;AAJf,0GAAA,eAAe,OAAA;AAGf,gHAAA,qBAAqB,OAAA"}

View file

@ -1,3 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=local-storage-like.js.map
//# sourceMappingURL=binary-pointer.js.map

1
dist/cjs/btree/binary-pointer.js.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"binary-pointer.js","sourceRoot":"","sources":["../../../src/btree/binary-pointer.ts"],"names":[],"mappings":""}

1
dist/cjs/btree/binary-reader.js.map vendored Normal file

File diff suppressed because one or more lines are too long

3
dist/cjs/btree/binary-reference.js vendored Normal file
View file

@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=binary-reference.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"binary-reference.js","sourceRoot":"","sources":["../../../src/btree/binary-reference.ts"],"names":[],"mappings":""}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"version":3,"file":"binary-tree-leaf-entry-extdata.js","sourceRoot":"","sources":["../../../src/btree/binary-tree-leaf-entry-extdata.ts"],"names":[],"mappings":";;AA0BA,oEAAoE;AACpE,iDAAiD;AAEjD,qCAAqC;AACrC,UAAU;AACV,SAAS;AACT,gCAAgC;AAChC,yCAAyC;AACzC,4CAA4C;AAC5C,wCAAwC;AACxC,gDAAgD;AAChD,UAAU;AACV,0BAA0B;AAC1B,2EAA2E;AAC3E,oFAAoF;AACpF,gFAAgF;AAChF,iDAAiD;AACjD,qCAAqC;AACrC,YAAY;AACZ,QAAQ;AACR,UAAU;AACV,+FAA+F;AAC/F,UAAU;AACV,eAAe;AACf,iFAAiF;AACjF,QAAQ;AACR,IAAI"}

View file

@ -0,0 +1 @@
{"version":3,"file":"binary-tree-leaf-entry-value.js","sourceRoot":"","sources":["../../../src/btree/binary-tree-leaf-entry-value.ts"],"names":[],"mappings":";;;AAGA,MAAa,6BAA6B;IACtC;;;;OAIG;IACH,YAAmB,aAAqC,EAAS,QAA4B;QAA1E,kBAAa,GAAb,aAAa,CAAwB;QAAS,aAAQ,GAAR,QAAQ,CAAoB;IAC7F,CAAC;IAED,6CAA6C;IAC7C,IAAI,KAAK;QACL,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;CACJ;AAbD,sEAaC"}

View file

@ -0,0 +1 @@
{"version":3,"file":"binary-tree-leaf-entry.js","sourceRoot":"","sources":["../../../src/btree/binary-tree-leaf-entry.ts"],"names":[],"mappings":";;;AAIA,MAAa,wBAAwB;IAMjC;;;OAGG;IACH,YAAmB,GAAqB,EAAS,MAAuC;QAArE,QAAG,GAAH,GAAG,CAAkB;QAAS,WAAM,GAAN,MAAM,CAAiC;QACpF,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,IAAI,KAAK;QACL,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;IAED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cAAc,GAAG,QAAQ,GAAG,CAAC;YAC9B,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACjE,CAAC,CAAC,CAAC,CAAC;IACZ,CAAC;IAED,cAAc,CAAC,GAAqB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,IAAA,2BAAQ,EAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IACrE,CAAC;IAED,SAAS,CAAC,GAAqB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;IAClD,CAAC;CACJ;AAhFD,kDAgFC"}

View file

@ -0,0 +1 @@
{"version":3,"file":"binary-tree-node-entry.js","sourceRoot":"","sources":["../../../src/btree/binary-tree-node-entry.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAIlD,MAAa,wBAAwB;IAQjC,YAAmB,GAAqB;QAArB,QAAG,GAAH,GAAG,CAAkB;QAPxC,kBAAa,GAAW,IAAI,CAAC;IAQ7B,CAAC;IAED,KAAK,CAAC,UAAU;QACZ,MAAM,IAAI,8BAAa,CAAC,uBAAuB,EAAE,+BAA+B,CAAC,CAAC;IACtF,CAAC;CACJ;AAdD,4DAcC"}

View file

@ -0,0 +1 @@
{"version":3,"file":"binary-tree-node-info.js","sourceRoot":"","sources":["../../../src/btree/binary-tree-node-info.ts"],"names":[],"mappings":";;;AAIA,MAAa,uBAAuB;IA+ChC,YAAY,IAAsC;QAC9C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,KA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;AAlBD,kDAkBC"}

View file

@ -0,0 +1 @@
{"version":3,"file":"binary-tree-transaction-operation.js","sourceRoot":"","sources":["../../../src/btree/binary-tree-transaction-operation.ts"],"names":[],"mappings":";;;AAKA,MAAa,mCAAmC;IAoB5C,YAAY,SAA8C;QACtD,iIAAiI;QACjI,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC;QAC3B,IAAI,CAAC,GAAG,GAAG,SAAS,CAAC,GAAG,CAAC;QACzB,IAAI,SAAS,CAAC,IAAI,KAAK,KAAK,IAAI,SAAS,CAAC,IAAI,KAAK,QAAQ,EAAE;YACzD,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC,aAAa,CAAC;SAChD;QACD,IAAI,SAAS,CAAC,IAAI,KAAK,KAAK,EAAE;YAC1B,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC;SACtC;QACD,IAAI,SAAS,CAAC,IAAI,KAAK,QAAQ,EAAE;YAC7B,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC;YACnC,IAAI,CAAC,YAAY,GAAG,SAAS,CAAC,YAAY,CAAC;SAC9C;IACL,CAAC;IAjCD,MAAM,CAAC,GAAG,CAAC,GAAqB,EAAE,aAAqC,EAAE,QAA4B;QACjG,OAAO,IAAI,mCAAmC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClG,CAAC;IAED,MAAM,CAAC,MAAM,CAAC,GAAqB,EAAE,QAAuC,EAAE,YAA2C,EAAE,QAA4B;QACnJ,OAAO,IAAI,mCAAmC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC9G,CAAC;IAED,MAAM,CAAC,MAAM,CAAC,GAAqB,EAAE,aAAqC;QACtE,OAAO,IAAI,mCAAmC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,aAAa,EAAE,CAAC,CAAC;IAC3F,CAAC;CAwBJ;AAnCD,kFAmCC"}

1
dist/cjs/btree/binary-tree.js.map vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/cjs/btree/binary-writer.js.map vendored Normal file

File diff suppressed because one or more lines are too long

17
dist/cjs/btree/browser.js vendored Normal file
View file

@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BinaryBPlusTree = exports.BPlusTree = void 0;
const not_supported_1 = require("../not-supported");
/**
* Not supported in browser context
*/
class BPlusTree extends not_supported_1.NotSupported {
}
exports.BPlusTree = BPlusTree;
/**
* Not supported in browser context
*/
class BinaryBPlusTree extends not_supported_1.NotSupported {
}
exports.BinaryBPlusTree = BinaryBPlusTree;
//# sourceMappingURL=browser.js.map

1
dist/cjs/btree/browser.js.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../../../src/btree/browser.ts"],"names":[],"mappings":";;;AAAA,oDAAgD;AAEhD;;GAEG;AACH,MAAa,SAAU,SAAQ,4BAAY;CAAG;AAA9C,8BAA8C;AAC9C;;GAEG;AACH,MAAa,eAAgB,SAAQ,4BAAY;CAAG;AAApD,0CAAoD"}

1
dist/cjs/btree/config.js.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/btree/config.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,IAAI,CAAC;AACzB,QAAA,2BAA2B,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,8DAA8D;AACrG,QAAA,qBAAqB,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC"}

1
dist/cjs/btree/entry-key-type.js.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"entry-key-type.js","sourceRoot":"","sources":["../../../src/btree/entry-key-type.ts"],"names":[],"mappings":""}

1
dist/cjs/btree/index.js.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/btree/index.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAe3C,6FAfK,4BAAY,OAeL;AAdhB,+CAA4E;AASxE,gGATK,6BAAe,OASL;AAMf,2GAfsB,wCAA0B,OAetB;AAd9B,yDAAyD;AASrD,oGATK,sCAAmB,OASL;AARvB,qEAAoE;AAShE,yGATK,iDAAwB,OASL;AAR5B,mDAA+C;AAU3C,6FAVK,4BAAY,OAUL;AAThB,iCAAmC;AAI/B,0FAJK,gBAAS,OAIL;AAHb,iDAAkD;AAO9C,iGAPK,+BAAgB,OAOL"}

View file

@ -0,0 +1 @@
{"version":3,"file":"leaf-entry-metadata.js","sourceRoot":"","sources":["../../../src/btree/leaf-entry-metadata.ts"],"names":[],"mappings":""}

View file

@ -0,0 +1 @@
{"version":3,"file":"leaf-entry-recordpointer.js","sourceRoot":"","sources":["../../../src/btree/leaf-entry-recordpointer.ts"],"names":[],"mappings":""}

1
dist/cjs/btree/tree-builder.js.map vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"version":3,"file":"tree-leaf-entry-value.js","sourceRoot":"","sources":["../../../src/btree/tree-leaf-entry-value.ts"],"names":[],"mappings":";;;AAGA,MAAa,uBAAuB;IAChC;;;OAGG;IACH,YAAmB,aAAqC,EAAS,QAA4B;QAA1E,kBAAa,GAAb,aAAa,CAAwB;QAAS,aAAQ,GAAR,QAAQ,CAAoB;IAC7F,CAAC;IAED,6CAA6C;IAC7C,IAAI,KAAK;QACL,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;CACJ;AAZD,0DAYC"}

1
dist/cjs/btree/tree-leaf-entry.js.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"tree-leaf-entry.js","sourceRoot":"","sources":["../../../src/btree/tree-leaf-entry.ts"],"names":[],"mappings":";;;AAEA,mEAAkE;AAElE,MAAa,kBAAkB;IAG3B,YAAmB,IAAmB,EAAS,GAAqB,EAAE,KAA+B;QAAlF,SAAI,GAAJ,IAAI,CAAe;QAAS,QAAG,GAAH,GAAG,CAAkB;QAChE,IAAI,OAAO,KAAK,KAAK,WAAW,IAAI,CAAC,CAAC,KAAK,YAAY,+CAAuB,CAAC,EAAE;YAC7E,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;SAC3E;QACD,IAAI,CAAC,MAAM,GAAG,OAAO,KAAK,KAAK,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAC9D,CAAC;CACJ;AATD,gDASC"}

1
dist/cjs/btree/tree-leaf.js.map vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/cjs/btree/tree-node-entry.js.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"tree-node-entry.js","sourceRoot":"","sources":["../../../src/btree/tree-node-entry.ts"],"names":[],"mappings":";;;AAIA,MAAa,kBAAkB;IAG3B,YAAmB,IAAmB,EAAS,GAAqB;QAAjD,SAAI,GAAJ,IAAI,CAAe;QAAS,QAAG,GAAH,GAAG,CAAkB;QAFpE,YAAO,GAAkC,IAAI,CAAC;IAG9C,CAAC;CACJ;AALD,gDAKC"}

View file

@ -173,6 +173,7 @@ class BPlusTreeNode {
// * Written by BPlusTreeNode.toBinary
// ** Written by BPlusTreeLeaf.toBinary
// *** including free bytes (BUT excluding size of ext_data blocks for leafs)
var _a;
const bytes = [];
const startIndex = writer.length; //bytes.length;
// byte_length:
@ -235,7 +236,7 @@ class BPlusTreeNode {
});
}
// Add node pointers added by the child
'pointers' in child && child.pointers.forEach(pointer => {
(_a = child.pointers) === null || _a === void 0 ? void 0 : _a.forEach(pointer => {
// pointer.index += index; // DISABLED: indexes must already be ok now we're using 1 bytes array
pointers.push(pointer);
});

1
dist/cjs/btree/tree-node.js.map vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/cjs/btree/tree.js.map vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/cjs/btree/tx.js.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"tx.js","sourceRoot":"","sources":["../../../src/btree/tx.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,eAAgB,SAAQ,8BAAa;IAI9C,YAAY,IAAY,EAAE,GAAW,EAAE,aAAqB;QACxD,KAAK,CAAC,IAAI,EAAE,GAAG,EAAE,aAAa,CAAC,CAAC;QAJpC,sBAAiB,GAA+B,IAAI,CAAC;QACrD,mBAAc,GAA+B,IAAI,CAAC;IAIlD,CAAC;CACJ;AAPD,0CAOC;AAED,MAAa,EAAE;IAKX;QACI,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;IAC7B,CAAC;IAED,0BAA0B;IAC1B,GAAG,CAAC,MAAiB,EAAE,QAAmB;QACtC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,qBAAqB,CAAC,CAAC;QAChE,OAAO,QAAQ,KAAK,UAAU,IAAI,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACrE,MAAM,CAAC,GAAG,MAAM,YAAY,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;QACxD,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,GAAQ,EAAE,EAAE;YACxB,OAAO,CAAC,KAAK,CAAC,iBAAiB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC;YACnE,WAAW;YACX,MAAM,KAAK,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;YACtD,OAAO,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC;iBACpB,IAAI,CAAC,GAAG,EAAE;gBACX,sBAAsB;gBACl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C,EAAE;gBACpB,MAAM,IAAI,SAAS,CAAC,8BAA8B,GAAG,GAAG,CAAC,CAAC;aAC7D;YACD,IAAI,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE;gBACvC,MAAM,IAAI,SAAS,CAAC,aAAa,GAAG,6CAA6C,gBAAgB,EAAE,CAAC,CAAC;aACxG;QACL,CAAC,CAAC,CAAC;KACN;IACD,OAAM,GAAG,EAAE;QACP,OAAO,GAAG,CAAC;KACd;AACL,CAAC;AA5BD,gDA4BC;AAEM,MAAM,cAAc,GAAG,CAAC,WAAsB,EAAE,IAAe,EAAE,EAAE;IACtE,MAAM,CAAC,GAAG,GAAG,CAAC;IACd,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,OAAO,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE;QACxB,WAAW,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;QAClD,KAAK,IAAI,CAAC,CAAC;KACd;AACL,CAAC,CAAC;AAPW,QAAA,cAAc,kBAOzB"}

View file

@ -0,0 +1 @@
{"version":3,"file":"array-index-query-hint.js","sourceRoot":"","sources":["../../../src/data-index/array-index-query-hint.ts"],"names":[],"mappings":";;;AAAA,6CAA8C;AAE9C,MAAa,mBAAoB,SAAQ,2BAAc;IACnD,MAAM,KAAK,KAAK;QACZ,OAAO,MAAM,CAAC,MAAM,CAAC;YACjB,YAAY,EAAE,SAAS;SAC1B,CAAC,CAAC;IACP,CAAC;IAED,YAAY,IAAe,EAAE,KAAc;QACvC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACvB,CAAC;IAED,IAAI,WAAW;QACX,MAAM,GAAG,GAAG,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;QAC5E,QAAQ,IAAI,CAAC,IAAI,EAAE;YACf,KAAK,mBAAmB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;gBACzC,OAAO,SAAS,GAAG,2EAA2E,CAAC;aAClG;YACD,OAAO,CAAC,CAAC;gBACL,OAAO,aAAa,CAAC;aACxB;SACJ;IACL,CAAC;CACJ;AAtBD,kDAsBC"}

File diff suppressed because one or more lines are too long

29
dist/cjs/data-index/browser.js vendored Normal file
View file

@ -0,0 +1,29 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ArrayIndex = exports.GeoIndex = exports.FullTextIndex = exports.DataIndex = void 0;
const not_supported_1 = require("../not-supported");
/**
* Not supported in browser context
*/
class DataIndex extends not_supported_1.NotSupported {
}
exports.DataIndex = DataIndex;
/**
* Not supported in browser context
*/
class FullTextIndex extends not_supported_1.NotSupported {
}
exports.FullTextIndex = FullTextIndex;
/**
* Not supported in browser context
*/
class GeoIndex extends not_supported_1.NotSupported {
}
exports.GeoIndex = GeoIndex;
/**
* Not supported in browser context
*/
class ArrayIndex extends not_supported_1.NotSupported {
}
exports.ArrayIndex = ArrayIndex;
//# sourceMappingURL=browser.js.map

1
dist/cjs/data-index/browser.js.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../../../src/data-index/browser.ts"],"names":[],"mappings":";;;AAAA,oDAAgD;AAEhD;;GAEG;AACH,MAAa,SAAU,SAAQ,4BAAY;CAAG;AAA9C,8BAA8C;AAC9C;;GAEG;AACH,MAAa,aAAc,SAAQ,4BAAY;CAAG;AAAlD,sCAAkD;AAClD;;GAEG;AACH,MAAa,QAAS,SAAQ,4BAAY;CAAG;AAA7C,4BAA6C;AAC7C;;GAEG;AACH,MAAa,UAAW,SAAQ,4BAAY;CAAG;AAA/C,gCAA+C"}

1
dist/cjs/data-index/data-index.js.map vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"version":3,"file":"fulltext-index-query-hint.js","sourceRoot":"","sources":["../../../src/data-index/fulltext-index-query-hint.ts"],"names":[],"mappings":";;;AAAA,6CAA8C;AAE9C,MAAa,sBAAuB,SAAQ,2BAAc;IACtD,MAAM,KAAK,KAAK;QACZ,OAAO,MAAM,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,SAAS;SACzB,CAAC,CAAC;IACP,CAAC;IAED,YAAY,IAAuC,EAAE,KAAc;QAC/D,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACvB,CAAC;IAED,IAAI,WAAW;QACX,QAAQ,IAAI,CAAC,IAAI,EAAE;YACf,KAAK,sBAAsB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;gBAC3C,OAAO,SAAS,IAAI,CAAC,KAAK,4EAA4E,CAAC;aAC1G;YACD,KAAK,sBAAsB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;gBAC3C,OAAO,SAAS,IAAI,CAAC,KAAK,mKAAmK,CAAC;aACjM;YACD,KAAK,sBAAsB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;gBAC3C,OAAO,SAAS,IAAI,CAAC,KAAK,8IAA8I,CAAC;aAC5K;YACD,OAAO,CAAC,CAAC;gBACL,OAAO,aAAa,CAAC;aACxB;SACJ;IACL,CAAC;CACJ;AA7BD,wDA6BC"}

File diff suppressed because one or more lines are too long

1
dist/cjs/data-index/geo-index.js.map vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/cjs/data-index/index.js.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data-index/index.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AAKhC,0FALA,sBAAS,OAKA;AAJlB,qDAAiD;AAI7B,8FAJX,8BAAa,OAIW;AAHjC,2CAAuC;AAGJ,yFAH1B,oBAAQ,OAG0B;AAF3C,+CAA2C;AAEE,2FAFpC,wBAAU,OAEoC;AACvD,iDAAoD;AAA3C,kHAAA,iBAAiB,OAAA;AAE1B,sBAAS,CAAC,eAAe,GAAG;IACxB,MAAM,EAAE,sBAAS;IACjB,QAAQ,EAAE,8BAAa;IACvB,GAAG,EAAE,oBAAQ;IACb,KAAK,EAAE,wBAAU;CACpB,CAAC"}

View file

@ -1 +1 @@
{"version":3,"file":"options.js","sourceRoot":"","sources":["../ts/data-index/options.ts"],"names":[],"mappings":""}
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/data-index/options.ts"],"names":[],"mappings":""}

1
dist/cjs/data-index/query-hint.js.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"query-hint.js","sourceRoot":"","sources":["../../../src/data-index/query-hint.ts"],"names":[],"mappings":";;;AAAA,MAAa,cAAc;IACvB,YAAmB,IAAY,EAAS,KAAc;QAAnC,SAAI,GAAJ,IAAI,CAAQ;QAAS,UAAK,GAAL,KAAK,CAAS;IAAI,CAAC;CAC9D;AAFD,wCAEC"}

View file

@ -0,0 +1 @@
{"version":3,"file":"query-results.js","sourceRoot":"","sources":["../../../src/data-index/query-results.ts"],"names":[],"mappings":";;;AAKA,MAAa,gBAAgB;IAEzB,YAAmB,GAAoB,EAAS,IAAY,EAAS,KAAqB,EAAS,QAAuB;QAAvG,QAAG,GAAH,GAAG,CAAiB;QAAS,SAAI,GAAJ,IAAI,CAAQ;QAAS,UAAK,GAAL,KAAK,CAAgB;QAAS,aAAQ,GAAR,QAAQ,CAAe;IAAI,CAAC;CAClI;AAHD,4CAGC;AAED,MAAa,iBAAkB,SAAQ,KAAuB;IAwF1D,YAAY,GAAG,IAAW;QACtB,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QA/EZ,UAAK,GAAG,EAAsB,CAAC;QAC/B,UAAK,GAAG,IAAuB,CAAC;IA+EvC,CAAC;IAxFD,MAAM,CAAC,WAAW,CAAC,OAA+C,EAAE,SAAiB;QACjF,MAAM,GAAG,GAAG,IAAI,iBAAiB,CAAC,OAAO,CAA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O,GAAG,CAAC,CAAC;QACZ,UAAK,GAAG,EAAuB,CAAC;QAChC,WAAM,GAAG,IAAW,CAAC;QAE5B;;WAEG;QACI,YAAO,GAAG,CAAC,CAAC;QAGf,IAAI,KAAK,EAAE;YACP,IAAI,CAAC,KAAK,EAAE,CAAC;SAChB;IACL,CAAC;IAED,KAAK;QACD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC9B,CAAC;IAED,IAAI,CAAC,SAAc,IAAI;QACnB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAC1B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAED,IAAI,QAAQ,KAAK,OAAO,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;CACzD;AA3BD,0CA2BC"}

Some files were not shown because too many files have changed in this diff Show more