@powersync/web 1.8.0 → 1.8.2
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/README.md +1 -1
- package/dist/index.umd.js +13 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/worker/SharedSyncImplementation.umd.js +3 -3
- package/dist/worker/SharedSyncImplementation.umd.js.map +1 -1
- package/dist/worker/WASQLiteDB.umd.js +1 -1
- package/dist/worker/WASQLiteDB.umd.js.map +1 -1
- package/dist/worker/node_modules_crypto-browserify_index_js.umd.js +12 -1
- package/dist/worker/node_modules_crypto-browserify_index_js.umd.js.map +1 -1
- package/lib/package.json +5 -4
- package/lib/src/db/PowerSyncDatabase.js +0 -1
- package/lib/src/db/adapters/AbstractWebPowerSyncDatabaseOpenFactory.js +0 -1
- package/lib/src/db/adapters/AbstractWebSQLOpenFactory.js +0 -1
- package/lib/src/db/adapters/SSRDBAdapter.js +0 -1
- package/lib/src/db/adapters/wa-sqlite/WASQLiteDBAdapter.js +0 -1
- package/lib/src/db/adapters/wa-sqlite/WASQLiteOpenFactory.js +0 -1
- package/lib/src/db/adapters/wa-sqlite/WASQLitePowerSyncDatabaseOpenFactory.js +0 -1
- package/lib/src/db/adapters/web-sql-flags.js +0 -1
- package/lib/src/db/sync/SSRWebStreamingSyncImplementation.js +0 -1
- package/lib/src/db/sync/SharedWebStreamingSyncImplementation.js +0 -1
- package/lib/src/db/sync/WebRemote.js +0 -1
- package/lib/src/db/sync/WebStreamingSyncImplementation.js +0 -1
- package/lib/src/db/sync/userAgent.js +0 -1
- package/lib/src/index.js +0 -1
- package/lib/src/shared/open-db.js +0 -1
- package/lib/src/shared/types.js +0 -1
- package/lib/src/worker/db/WASQLiteDB.worker.js +0 -1
- package/lib/src/worker/db/open-worker-database.js +0 -1
- package/lib/src/worker/sync/AbstractSharedSyncClientProvider.js +0 -1
- package/lib/src/worker/sync/BroadcastLogger.js +0 -1
- package/lib/src/worker/sync/SharedSyncImplementation.js +0 -1
- package/lib/src/worker/sync/SharedSyncImplementation.worker.js +0 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -5
- package/lib/src/db/PowerSyncDatabase.js.map +0 -1
- package/lib/src/db/adapters/AbstractWebPowerSyncDatabaseOpenFactory.js.map +0 -1
- package/lib/src/db/adapters/AbstractWebSQLOpenFactory.js.map +0 -1
- package/lib/src/db/adapters/SSRDBAdapter.js.map +0 -1
- package/lib/src/db/adapters/wa-sqlite/WASQLiteDBAdapter.js.map +0 -1
- package/lib/src/db/adapters/wa-sqlite/WASQLiteOpenFactory.js.map +0 -1
- package/lib/src/db/adapters/wa-sqlite/WASQLitePowerSyncDatabaseOpenFactory.js.map +0 -1
- package/lib/src/db/adapters/web-sql-flags.js.map +0 -1
- package/lib/src/db/sync/SSRWebStreamingSyncImplementation.js.map +0 -1
- package/lib/src/db/sync/SharedWebStreamingSyncImplementation.js.map +0 -1
- package/lib/src/db/sync/WebRemote.js.map +0 -1
- package/lib/src/db/sync/WebStreamingSyncImplementation.js.map +0 -1
- package/lib/src/db/sync/userAgent.js.map +0 -1
- package/lib/src/index.js.map +0 -1
- package/lib/src/shared/open-db.js.map +0 -1
- package/lib/src/shared/types.js.map +0 -1
- package/lib/src/worker/db/WASQLiteDB.worker.js.map +0 -1
- package/lib/src/worker/db/open-worker-database.js.map +0 -1
- package/lib/src/worker/sync/AbstractSharedSyncClientProvider.js.map +0 -1
- package/lib/src/worker/sync/BroadcastLogger.js.map +0 -1
- package/lib/src/worker/sync/SharedSyncImplementation.js.map +0 -1
- package/lib/src/worker/sync/SharedSyncImplementation.worker.js.map +0 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# PowerSync SDK for Web
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
*[PowerSync](https://www.powersync.com) is a sync engine for building local-first apps with instantly-responsive UI/UX and simplified state transfer. Syncs between SQLite on the client-side and Postgres or MongoDB on the server-side (MySQL coming soon).*
|
|
8
8
|
|
|
9
9
|
This package (`packages/web`) is the PowerSync SDK for JavaScript Web clients. It is an extension of `packages/common`.
|
|
10
10
|
|
package/dist/index.umd.js
CHANGED
|
@@ -23404,6 +23404,10 @@ function getLength(buf, p) {
|
|
|
23404
23404
|
return false;
|
|
23405
23405
|
}
|
|
23406
23406
|
|
|
23407
|
+
if(buf[p.place] === 0x00) {
|
|
23408
|
+
return false;
|
|
23409
|
+
}
|
|
23410
|
+
|
|
23407
23411
|
var val = 0;
|
|
23408
23412
|
for (var i = 0, off = p.place; i < octetLen; i++, off++) {
|
|
23409
23413
|
val <<= 8;
|
|
@@ -23452,6 +23456,9 @@ Signature.prototype._importDER = function _importDER(data, enc) {
|
|
|
23452
23456
|
if (rlen === false) {
|
|
23453
23457
|
return false;
|
|
23454
23458
|
}
|
|
23459
|
+
if ((data[p.place] & 128) !== 0) {
|
|
23460
|
+
return false;
|
|
23461
|
+
}
|
|
23455
23462
|
var r = data.slice(p.place, rlen + p.place);
|
|
23456
23463
|
p.place += rlen;
|
|
23457
23464
|
if (data[p.place++] !== 0x02) {
|
|
@@ -23464,6 +23471,9 @@ Signature.prototype._importDER = function _importDER(data, enc) {
|
|
|
23464
23471
|
if (data.length !== slen + p.place) {
|
|
23465
23472
|
return false;
|
|
23466
23473
|
}
|
|
23474
|
+
if ((data[p.place] & 128) !== 0) {
|
|
23475
|
+
return false;
|
|
23476
|
+
}
|
|
23467
23477
|
var s = data.slice(p.place, slen + p.place);
|
|
23468
23478
|
if (r[0] === 0) {
|
|
23469
23479
|
if (r[1] & 0x80) {
|
|
@@ -23802,6 +23812,7 @@ function Signature(eddsa, sig) {
|
|
|
23802
23812
|
sig = parseBytes(sig);
|
|
23803
23813
|
|
|
23804
23814
|
if (Array.isArray(sig)) {
|
|
23815
|
+
assert(sig.length === eddsa.encodingLength * 2, 'Signature has invalid size');
|
|
23805
23816
|
sig = {
|
|
23806
23817
|
R: sig.slice(0, eddsa.encodingLength),
|
|
23807
23818
|
S: sig.slice(eddsa.encodingLength),
|
|
@@ -40078,7 +40089,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"modp1":{"gen":"02","prime":"ffffffff
|
|
|
40078
40089
|
/***/ ((module) => {
|
|
40079
40090
|
|
|
40080
40091
|
"use strict";
|
|
40081
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"elliptic","version":"6.5.
|
|
40092
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"elliptic","version":"6.5.7","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny <fedor@indutny.com>","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}');
|
|
40082
40093
|
|
|
40083
40094
|
/***/ }),
|
|
40084
40095
|
|
|
@@ -40232,7 +40243,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb
|
|
|
40232
40243
|
/******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
|
|
40233
40244
|
/******/ var document = __webpack_require__.g.document;
|
|
40234
40245
|
/******/ if (!scriptUrl && document) {
|
|
40235
|
-
/******/ if (document.currentScript)
|
|
40246
|
+
/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')
|
|
40236
40247
|
/******/ scriptUrl = document.currentScript.src;
|
|
40237
40248
|
/******/ if (!scriptUrl) {
|
|
40238
40249
|
/******/ var scripts = document.getElementsByTagName("script");
|