jazz-tools 0.14.0 → 0.14.1
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/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +8 -0
- package/dist/{chunk-2ASOGEYA.js → chunk-WLOZKDOH.js} +9 -8
- package/dist/chunk-WLOZKDOH.js.map +1 -0
- package/dist/coValues/CoValueBase.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/testing.js +1 -1
- package/package.json +2 -2
- package/src/coValues/CoValueBase.ts +12 -7
- package/dist/chunk-2ASOGEYA.js.map +0 -1
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> jazz-tools@0.14.
|
2
|
+
> jazz-tools@0.14.1 build /home/runner/_work/jazz/jazz/packages/jazz-tools
|
3
3
|
> tsup && pnpm types
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: {"index":"src/index.ts","testing":"src/testing.ts"}
|
@@ -9,14 +9,14 @@
|
|
9
9
|
[34mCLI[39m Target: es2021
|
10
10
|
[34mCLI[39m Cleaning output folder
|
11
11
|
[34mESM[39m Build start
|
12
|
-
[32mESM[39m [1mdist/index.js [22m[32m11.03 KB[39m
|
13
12
|
[32mESM[39m [1mdist/testing.js [22m[32m6.27 KB[39m
|
14
|
-
[32mESM[39m [1mdist/
|
15
|
-
[32mESM[39m [1mdist/
|
13
|
+
[32mESM[39m [1mdist/index.js [22m[32m11.03 KB[39m
|
14
|
+
[32mESM[39m [1mdist/chunk-WLOZKDOH.js [22m[32m130.46 KB[39m
|
16
15
|
[32mESM[39m [1mdist/testing.js.map [22m[32m12.31 KB[39m
|
17
|
-
[32mESM[39m [1mdist/
|
18
|
-
[32mESM[39m
|
16
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m20.74 KB[39m
|
17
|
+
[32mESM[39m [1mdist/chunk-WLOZKDOH.js.map [22m[32m304.21 KB[39m
|
18
|
+
[32mESM[39m ⚡️ Build success in 61ms
|
19
19
|
|
20
|
-
> jazz-tools@0.14.
|
20
|
+
> jazz-tools@0.14.1 types /home/runner/_work/jazz/jazz/packages/jazz-tools
|
21
21
|
> tsc --outDir dist
|
22
22
|
|
package/CHANGELOG.md
CHANGED
@@ -2,13 +2,11 @@
|
|
2
2
|
import { ControlledAccount, RawAccount } from "cojson";
|
3
3
|
var CoValueBase = class {
|
4
4
|
get _owner() {
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
);
|
11
|
-
return owner;
|
5
|
+
const schema = this._raw.group instanceof RawAccount ? RegisteredSchemas["Account"] : RegisteredSchemas["Group"];
|
6
|
+
return accessChildById(this, this._raw.group.id, {
|
7
|
+
ref: schema,
|
8
|
+
optional: false
|
9
|
+
});
|
12
10
|
}
|
13
11
|
/** @private */
|
14
12
|
get _loadedAs() {
|
@@ -47,6 +45,9 @@ var CoValueBase = class {
|
|
47
45
|
}
|
48
46
|
/** @category Type Helpers */
|
49
47
|
castAs(cl) {
|
48
|
+
if (this.constructor === cl) {
|
49
|
+
return this;
|
50
|
+
}
|
50
51
|
return cl.fromRaw(this._raw);
|
51
52
|
}
|
52
53
|
};
|
@@ -4535,4 +4536,4 @@ export {
|
|
4535
4536
|
JazzContextManager
|
4536
4537
|
};
|
4537
4538
|
/* istanbul ignore file -- @preserve */
|
4538
|
-
//# sourceMappingURL=chunk-
|
4539
|
+
//# sourceMappingURL=chunk-WLOZKDOH.js.map
|