@dialecte/core 0.2.10 → 0.2.12
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/errors/codes.d.ts +4 -0
- package/dist/errors/codes.d.ts.map +1 -1
- package/dist/helpers.js +1 -1
- package/dist/{index-DWV6tSGF.js → index-BgyMtFE-.js} +12 -8
- package/dist/{index-1D8DELEq.js → index-Bvh3Qxyf.js} +2640 -2477
- package/dist/index.js +39 -38
- package/dist/{merge-extensions-dj7By9gG.js → merge-extensions-CU05iRtz.js} +1 -1
- package/dist/project/types.d.ts +3 -0
- package/dist/project/types.d.ts.map +1 -1
- package/dist/store/in-memory/in-memory-store.d.ts +54 -0
- package/dist/store/in-memory/in-memory-store.d.ts.map +1 -0
- package/dist/store/in-memory/index.d.ts +3 -0
- package/dist/store/in-memory/index.d.ts.map +1 -0
- package/dist/store/in-memory/types.d.ts +5 -0
- package/dist/store/in-memory/types.d.ts.map +1 -0
- package/dist/store/index.d.ts +1 -0
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/resolve-store.d.ts +2 -1
- package/dist/store/resolve-store.d.ts.map +1 -1
- package/dist/test/config.d.ts +6 -15
- package/dist/test/config.d.ts.map +1 -1
- package/dist/test/generated/constants.generated.d.ts.map +1 -1
- package/dist/test/generated/definition.generated.d.ts +6 -15
- package/dist/test/generated/definition.generated.d.ts.map +1 -1
- package/dist/test/generated/types.generated.d.ts +0 -2
- package/dist/test/generated/types.generated.d.ts.map +1 -1
- package/dist/test/run-test-cases.d.ts +6 -15
- package/dist/test/run-test-cases.d.ts.map +1 -1
- package/dist/test/test-record.d.ts +48 -120
- package/dist/test/test-record.d.ts.map +1 -1
- package/dist/test.js +24 -28
- package/dist/utils.js +1 -1
- package/package.json +1 -1
package/dist/errors/codes.d.ts
CHANGED
|
@@ -31,6 +31,10 @@ export declare const ERROR_CATALOG: {
|
|
|
31
31
|
readonly code: "D1006";
|
|
32
32
|
readonly message: "Failed to delete records from database";
|
|
33
33
|
};
|
|
34
|
+
readonly STORE_NOT_WRITABLE: {
|
|
35
|
+
readonly code: "D1007";
|
|
36
|
+
readonly message: "Store is not writable";
|
|
37
|
+
};
|
|
34
38
|
readonly ELEMENT_NOT_FOUND: {
|
|
35
39
|
readonly code: "D2001";
|
|
36
40
|
readonly message: "Element not found";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codes.d.ts","sourceRoot":"","sources":["../../src/errors/codes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"codes.d.ts","sourceRoot":"","sources":["../../src/errors/codes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6HhB,CAAA"}
|
package/dist/helpers.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as n, a as T, D as d, i as A, b as E, c, d as f, e as u, f as O, g as _, h as l, j as C, m as b, s as D, t as m, k as p, l as I, n as S, o as M } from "./merge-extensions-
|
|
1
|
+
import { C as n, a as T, D as d, i as A, b as E, c, d as f, e as u, f as O, g as _, h as l, j as C, m as b, s as D, t as m, k as p, l as I, n as S, o as M } from "./merge-extensions-CU05iRtz.js";
|
|
2
2
|
function i(t, s) {
|
|
3
3
|
const r = new Set(s), a = { ...t, attributes: t.attributes.filter((e) => !r.has(e.name)) };
|
|
4
4
|
return "tree" in t ? {
|
|
@@ -33,6 +33,10 @@ const c = {
|
|
|
33
33
|
code: "D1006",
|
|
34
34
|
message: "Failed to delete records from database"
|
|
35
35
|
},
|
|
36
|
+
STORE_NOT_WRITABLE: {
|
|
37
|
+
code: "D1007",
|
|
38
|
+
message: "Store is not writable"
|
|
39
|
+
},
|
|
36
40
|
// D2xxx — Element lookup
|
|
37
41
|
ELEMENT_NOT_FOUND: {
|
|
38
42
|
code: "D2001",
|
|
@@ -121,23 +125,23 @@ function d(o, e) {
|
|
|
121
125
|
method: i(new Error().stack),
|
|
122
126
|
ref: e.ref,
|
|
123
127
|
cause: e.cause
|
|
124
|
-
},
|
|
125
|
-
throw
|
|
128
|
+
}, a = new Error(e.detail);
|
|
129
|
+
throw a.cause = t, a;
|
|
126
130
|
}
|
|
127
131
|
function i(o) {
|
|
128
132
|
if (!o) return "unknown";
|
|
129
133
|
const e = o.split(`
|
|
130
134
|
`).slice(1).find((r) => !/\b(throwDialecteError|assert)\b/.test(r));
|
|
131
135
|
if (!e) return "unknown";
|
|
132
|
-
const s = e.match(/\bat\s+(\S+)\s+\(([^)]+)\)/), t = s?.[1],
|
|
133
|
-
if (!
|
|
134
|
-
const
|
|
135
|
-
return
|
|
136
|
+
const s = e.match(/\bat\s+(\S+)\s+\(([^)]+)\)/), t = s?.[1], a = s?.[2];
|
|
137
|
+
if (!a || !t) return t ?? "unknown";
|
|
138
|
+
const n = a.match(/(\w[\w-]*\/src\/[^?:]+)/);
|
|
139
|
+
return n ? `${n[1].replace(/\.[^/.]+$/, "")}::${t}` : t;
|
|
136
140
|
}
|
|
137
141
|
function D(o, e) {
|
|
138
142
|
if (o) return;
|
|
139
|
-
const { detail: s, key: t = "ASSERTION_FAILED", ref:
|
|
140
|
-
d(t, { detail: s, ref:
|
|
143
|
+
const { detail: s, key: t = "ASSERTION_FAILED", ref: a } = e;
|
|
144
|
+
d(t, { detail: s, ref: a });
|
|
141
145
|
}
|
|
142
146
|
export {
|
|
143
147
|
c as E,
|