worldbrain / storex-backend-dexie Goto Github PK
View Code? Open in Web Editor NEWIndexedDB in-browser storage engine for Storex using Dexie
License: MIT License
IndexedDB in-browser storage engine for Storex using Dexie
License: MIT License
There is a _processFieldsForWrites
function which handles calling preprocessing logic for fields when writing data. It is set up to run on createObject
method (https://github.com/WorldBrain/storex-backend-dexie/blob/master/ts/index.ts#L140), but not on updateObjects
method.
npm install (or yarn) on my Windows development system yields the following errors. What am I missing? I followed the instructions in the storex repo. Thanks!
C:\Users\saro\app\storex-backend-dexie>npm install
[email protected] postinstall C:\Users\saro\app\storex-backend-dexie\node_modules\sinon
node scripts/support-sinon.js
Have some ❤️ for Sinon? You can support the project via Open Collective:
@worldbrain/[email protected] prepare C:\Users\saro\app\storex-backend-dexie
tsc
ts/index.ts:248:40 - error TS2694: Namespace '"C:/Users/saro/app/storex-backend-dexie/node_modules/@worldbrain/storex/lib/types/backend"' has no exported member 'OperationBatch'.
248 async executeBatch(batch : backend.OperationBatch) {
~~~~~~~~~~~~~~
ts/index.ts:259:25 - error TS2694: Namespace '"C:/Users/saro/app/storex-backend-dexie/node_modules/@worldbrain/storex/lib/types/backend"' has no exported member 'OperationBatch'.
259 batch : backend.OperationBatch,
~~~~~~~~~~~~~~
ts/index.ts:398:28 - error TS2554: Expected 2 arguments, but got 3.
398 const dissection = dissectCreateObjectOperation(step, registry, {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
399 generatePlaceholder: (() => {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
409 })()
~~~~~~~~~~~~~~~~
410 })
~~~~~~~~~~
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @worldbrain/[email protected] prepare: tsc
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @worldbrain/[email protected] prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\saro\AppData\Roaming\npm-cache_logs\2019-02-25T16_01_57_282Z-debug.log
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.