@lix-js/sdk 0.4.5 → 0.4.7
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/dist/lix/index.d.ts +1 -0
- package/dist/lix/index.d.ts.map +1 -1
- package/dist/lix/index.js +1 -0
- package/dist/lix/index.js.map +1 -1
- package/dist/lix/open-lix.js +1 -1
- package/dist/services/env-variables/index.js +1 -1
- package/package.json +3 -3
- package/src/lix/index.ts +1 -0
- package/src/lix/open-lix.ts +1 -1
package/dist/lix/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export { type Lix, openLix } from "./open-lix.js";
|
|
|
2
2
|
export { openLixInMemory } from "./open-lix-in-memory.js";
|
|
3
3
|
export { newLixFile } from "./new-lix.js";
|
|
4
4
|
export { toBlob } from "./to-blob.js";
|
|
5
|
+
export { closeLix } from "./close-lix.js";
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/lix/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lix/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lix/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC"}
|
package/dist/lix/index.js
CHANGED
|
@@ -2,6 +2,7 @@ export { openLix } from "./open-lix.js";
|
|
|
2
2
|
export { openLixInMemory } from "./open-lix-in-memory.js";
|
|
3
3
|
export { newLixFile } from "./new-lix.js";
|
|
4
4
|
export { toBlob } from "./to-blob.js";
|
|
5
|
+
export { closeLix } from "./close-lix.js";
|
|
5
6
|
// not exporting merge for api stability milestone
|
|
6
7
|
// will need an overhaul to be stable
|
|
7
8
|
// export { merge } from "./merge.js";
|
package/dist/lix/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lix/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,OAAO,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,kDAAkD;AAClD,qCAAqC;AACrC,sCAAsC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lix/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,OAAO,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,kDAAkD;AAClD,qCAAqC;AACrC,sCAAsC"}
|
package/dist/lix/open-lix.js
CHANGED
|
@@ -64,7 +64,7 @@ async function captureOpened(args) {
|
|
|
64
64
|
.where("key", "=", "lix_id")
|
|
65
65
|
.executeTakeFirstOrThrow();
|
|
66
66
|
const fileExtensions = await usedFileExtensions(args.db);
|
|
67
|
-
if (Math.random() > 0.
|
|
67
|
+
if (Math.random() > 0.1) {
|
|
68
68
|
await capture("LIX-SDK lix opened", {
|
|
69
69
|
accountId: activeAccount.id,
|
|
70
70
|
lixId: lixId.value,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lix-js/sdk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.7",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"exports": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"js-sha256": "^0.11.0",
|
|
24
24
|
"kysely": "^0.27.4",
|
|
25
25
|
"uuid": "^10.0.0",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
26
|
+
"@lix-js/server-protocol-schema": "0.1.1",
|
|
27
|
+
"sqlite-wasm-kysely": "0.3.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@eslint/js": "^9.12.0",
|
package/src/lix/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { type Lix, openLix } from "./open-lix.js";
|
|
|
2
2
|
export { openLixInMemory } from "./open-lix-in-memory.js";
|
|
3
3
|
export { newLixFile } from "./new-lix.js";
|
|
4
4
|
export { toBlob } from "./to-blob.js";
|
|
5
|
+
export { closeLix } from "./close-lix.js";
|
|
5
6
|
// not exporting merge for api stability milestone
|
|
6
7
|
// will need an overhaul to be stable
|
|
7
8
|
// export { merge } from "./merge.js";
|
package/src/lix/open-lix.ts
CHANGED
|
@@ -135,7 +135,7 @@ async function captureOpened(args: { db: Kysely<LixDatabaseSchema> }) {
|
|
|
135
135
|
.executeTakeFirstOrThrow();
|
|
136
136
|
|
|
137
137
|
const fileExtensions = await usedFileExtensions(args.db);
|
|
138
|
-
if (Math.random() > 0.
|
|
138
|
+
if (Math.random() > 0.1) {
|
|
139
139
|
await capture("LIX-SDK lix opened", {
|
|
140
140
|
accountId: activeAccount.id,
|
|
141
141
|
lixId: lixId.value,
|