@flighthq/entity 0.5.1-edge.1692.64cda40 → 0.5.1-edge.1892.cbd15bd
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 +2 -2
- package/dist/binding.js +1 -1
- package/dist/binding.js.map +1 -1
- package/dist/contract.d.ts +8 -8
- package/dist/contract.d.ts.map +1 -1
- package/dist/contract.js +8 -8
- package/dist/contract.js.map +1 -1
- package/dist/enableEntityRuntimeGuards.js +1 -1
- package/dist/enableEntityRuntimeGuards.js.map +1 -1
- package/dist/entityUid.js +1 -1
- package/dist/entityUid.js.map +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/binding.test.ts +3 -3
- package/src/clone.test.ts +4 -4
- package/src/enableEntityRuntimeGuards.test.ts +4 -4
- package/src/entity.test.ts +1 -1
- package/src/entityUid.test.ts +3 -3
- package/src/explainEntityRuntimeWrite.test.ts +1 -1
- package/src/guards.test.ts +3 -3
- package/src/runtime.test.ts +3 -3
package/README.md
CHANGED
|
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/entity`. The `@fligh
|
|
|
13
13
|
This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
|
|
14
14
|
|
|
15
15
|
- [Flight project](https://github.com/flighthq/flight)
|
|
16
|
-
- [Source for @flighthq/entity@0.5.1-edge.
|
|
17
|
-
- [License](https://github.com/flighthq/flight/blob/
|
|
16
|
+
- [Source for @flighthq/entity@0.5.1-edge.1892.cbd15bd](https://github.com/flighthq/flight/tree/cbd15bd13373265e8f6dcf0cb057a16aee812919/packages/entity)
|
|
17
|
+
- [License](https://github.com/flighthq/flight/blob/cbd15bd13373265e8f6dcf0cb057a16aee812919/LICENSE.md)
|
package/dist/binding.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EntityRuntimeKey } from '@flighthq/types/contract';
|
|
2
|
-
import { createEntityRuntime } from
|
|
2
|
+
import { createEntityRuntime } from "./runtime.js";
|
|
3
3
|
export function attachEntityBinding(entity, binding) {
|
|
4
4
|
if (entity[EntityRuntimeKey] === undefined) {
|
|
5
5
|
entity[EntityRuntimeKey] = createEntityRuntime();
|
package/dist/binding.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binding.js","sourceRoot":"","sources":["../src/binding.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"binding.js","sourceRoot":"","sources":["../src/binding.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,UAAU,mBAAmB,CAAC,MAAc,EAAE,OAAe;IACjE,IAAI,MAAM,CAAC,gBAAgB,CAAC,KAAK,SAAS,EAAE,CAAC;QAC3C,MAAM,CAAC,gBAAgB,CAAC,GAAG,mBAAmB,EAAE,CAAC;IACnD,CAAC;IACD,MAAM,CAAC,gBAAgB,CAAC,CAAC,OAAO,GAAG,OAAO,CAAC;AAC7C,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,MAAc;IAChD,MAAM,OAAO,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;IACzC,IAAI,OAAO,KAAK,SAAS;QAAE,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,MAAwB;IACvD,OAAO,MAAM,CAAC,gBAAgB,CAAC,EAAE,OAAO,IAAI,IAAI,CAAC;AACnD,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAO,MAAwB;IAC/D,OAAO,gBAAgB,CAAC,MAAM,CAAgB,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,MAAwB;IACvD,OAAO,gBAAgB,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;AAC3C,CAAC"}
|
package/dist/contract.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from './binding';
|
|
2
|
-
export * from './clone';
|
|
3
|
-
export * from './enableEntityRuntimeGuards';
|
|
4
|
-
export * from './entity';
|
|
5
|
-
export * from './entityUid';
|
|
6
|
-
export * from './explainEntityRuntimeWrite';
|
|
7
|
-
export * from './guards';
|
|
8
|
-
export * from './runtime';
|
|
1
|
+
export * from './binding.ts';
|
|
2
|
+
export * from './clone.ts';
|
|
3
|
+
export * from './enableEntityRuntimeGuards.ts';
|
|
4
|
+
export * from './entity.ts';
|
|
5
|
+
export * from './entityUid.ts';
|
|
6
|
+
export * from './explainEntityRuntimeWrite.ts';
|
|
7
|
+
export * from './guards.ts';
|
|
8
|
+
export * from './runtime.ts';
|
|
9
9
|
//# sourceMappingURL=contract.d.ts.map
|
package/dist/contract.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
|
package/dist/contract.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
1
|
+
export * from "./binding.js";
|
|
2
|
+
export * from "./clone.js";
|
|
3
|
+
export * from "./enableEntityRuntimeGuards.js";
|
|
4
|
+
export * from "./entity.js";
|
|
5
|
+
export * from "./entityUid.js";
|
|
6
|
+
export * from "./explainEntityRuntimeWrite.js";
|
|
7
|
+
export * from "./guards.js";
|
|
8
|
+
export * from "./runtime.js";
|
|
9
9
|
//# sourceMappingURL=contract.js.map
|
package/dist/contract.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setEntityRuntimeGuardMode, setEntityRuntimeWriteGuard } from
|
|
1
|
+
import { setEntityRuntimeGuardMode, setEntityRuntimeWriteGuard } from "./guards.js";
|
|
2
2
|
// Uninstalls the guard installed by enableEntityRuntimeGuards, restoring unguarded entities.
|
|
3
3
|
export function disableEntityRuntimeGuards() {
|
|
4
4
|
setEntityRuntimeGuardMode(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enableEntityRuntimeGuards.js","sourceRoot":"","sources":["../src/enableEntityRuntimeGuards.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"enableEntityRuntimeGuards.js","sourceRoot":"","sources":["../src/enableEntityRuntimeGuards.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAEpF,6FAA6F;AAC7F,MAAM,UAAU,0BAA0B;IACxC,yBAAyB,CAAC,KAAK,CAAC,CAAC;IACjC,0BAA0B,CAAC,IAAI,CAAC,CAAC;AACnC,CAAC;AAED,qGAAqG;AACrG,mGAAmG;AACnG,kGAAkG;AAClG,kDAAkD;AAClD,EAAE;AACF,uGAAuG;AACvG,oGAAoG;AACpG,kGAAkG;AAClG,sGAAsG;AACtG,iGAAiG;AACjG,MAAM,UAAU,yBAAyB,CAAC,MAA+B;IACvE,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAChC,0BAA0B,CAAC,MAAM,CAAC,CAAC;AACrC,CAAC"}
|
package/dist/entityUid.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EntityRuntimeKey } from '@flighthq/types/contract';
|
|
2
|
-
import { createEntityRuntime } from
|
|
2
|
+
import { createEntityRuntime } from "./runtime.js";
|
|
3
3
|
export function getEntityUid(source) {
|
|
4
4
|
const runtime = ensureEntityRuntime(source);
|
|
5
5
|
if (runtime.uid !== undefined)
|
package/dist/entityUid.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entityUid.js","sourceRoot":"","sources":["../src/entityUid.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"entityUid.js","sourceRoot":"","sources":["../src/entityUid.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,UAAU,YAAY,CAAC,MAAc;IACzC,MAAM,OAAO,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAC5C,IAAI,OAAO,CAAC,GAAG,KAAK,SAAS;QAAE,OAAO,OAAO,CAAC,GAAG,CAAC;IAClD,MAAM,GAAG,GAAG,iBAAiB,EAAE,CAAC;IAChC,OAAO,CAAC,GAAG,GAAG,GAAG,CAAC;IAClB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,MAAc,EAAE,GAAW;IACtD,MAAM,OAAO,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAC5C,OAAO,CAAC,GAAG,GAAG,GAAG,CAAC;AACpB,CAAC;AAED,SAAS,mBAAmB,CAAC,MAAc;IACzC,IAAI,MAAM,CAAC,gBAAgB,CAAC,KAAK,SAAS,EAAE,CAAC;QAC3C,MAAM,CAAC,gBAAgB,CAAC,GAAG,mBAAmB,EAAE,CAAC;IACnD,CAAC;IACD,OAAO,MAAM,CAAC,gBAAgB,CAAE,CAAC;AACnC,CAAC;AAED,SAAS,iBAAiB;IACxB,OAAO,UAAU,qBAAqB,EAAE,EAAE,CAAC;AAC7C,CAAC;AAED,IAAI,qBAAqB,GAAG,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from './binding';
|
|
2
|
-
export * from './clone';
|
|
3
|
-
export * from './enableEntityRuntimeGuards';
|
|
4
|
-
export * from './entity';
|
|
5
|
-
export * from './entityUid';
|
|
6
|
-
export * from './explainEntityRuntimeWrite';
|
|
7
|
-
export { areEntityRuntimeGuardsEnabled, createGuardedEntity, setEntityRuntimeGuardMode } from './guards';
|
|
8
|
-
export { hasEntityRuntime } from './runtime';
|
|
1
|
+
export * from './binding.ts';
|
|
2
|
+
export * from './clone.ts';
|
|
3
|
+
export * from './enableEntityRuntimeGuards.ts';
|
|
4
|
+
export * from './entity.ts';
|
|
5
|
+
export * from './entityUid.ts';
|
|
6
|
+
export * from './explainEntityRuntimeWrite.ts';
|
|
7
|
+
export { areEntityRuntimeGuardsEnabled, createGuardedEntity, setEntityRuntimeGuardMode } from './guards.ts';
|
|
8
|
+
export { hasEntityRuntime } from './runtime.ts';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,6BAA6B,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAC5G,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export { areEntityRuntimeGuardsEnabled, createGuardedEntity, setEntityRuntimeGuardMode } from
|
|
8
|
-
export { hasEntityRuntime } from
|
|
1
|
+
export * from "./binding.js";
|
|
2
|
+
export * from "./clone.js";
|
|
3
|
+
export * from "./enableEntityRuntimeGuards.js";
|
|
4
|
+
export * from "./entity.js";
|
|
5
|
+
export * from "./entityUid.js";
|
|
6
|
+
export * from "./explainEntityRuntimeWrite.js";
|
|
7
|
+
export { areEntityRuntimeGuardsEnabled, createGuardedEntity, setEntityRuntimeGuardMode } from "./guards.js";
|
|
8
|
+
export { hasEntityRuntime } from "./runtime.js";
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,6BAA6B,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAC5G,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/entity",
|
|
3
|
-
"version": "0.5.1-edge.
|
|
3
|
+
"version": "0.5.1-edge.1892.cbd15bd",
|
|
4
4
|
"author": "Joshua Granick and other contributors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@flighthq/types": "0.5.1-edge.
|
|
41
|
+
"@flighthq/types": "0.5.1-edge.1892.cbd15bd"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"typescript": "^5.3.0"
|
package/src/binding.test.ts
CHANGED
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
getEntityBinding,
|
|
8
8
|
getEntityBindingAs,
|
|
9
9
|
hasEntityBinding,
|
|
10
|
-
} from './binding';
|
|
11
|
-
import { allocateEntity, finishEntity } from './entity';
|
|
12
|
-
import { createEntityRuntime, getEntityRuntime } from './runtime';
|
|
10
|
+
} from './binding.ts';
|
|
11
|
+
import { allocateEntity, finishEntity } from './entity.ts';
|
|
12
|
+
import { createEntityRuntime, getEntityRuntime } from './runtime.ts';
|
|
13
13
|
|
|
14
14
|
function createTestEntity(): Entity {
|
|
15
15
|
return finishEntity(allocateEntity<Entity>());
|
package/src/clone.test.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Entity } from '@flighthq/types/contract';
|
|
2
2
|
import { EntityRuntimeKey } from '@flighthq/types/contract';
|
|
3
3
|
|
|
4
|
-
import { attachEntityBinding } from './binding';
|
|
5
|
-
import { cloneEntity, stripEntityRuntime } from './clone';
|
|
6
|
-
import { allocateEntity, finishEntity } from './entity';
|
|
7
|
-
import { hasEntityRuntime } from './runtime';
|
|
4
|
+
import { attachEntityBinding } from './binding.ts';
|
|
5
|
+
import { cloneEntity, stripEntityRuntime } from './clone.ts';
|
|
6
|
+
import { allocateEntity, finishEntity } from './entity.ts';
|
|
7
|
+
import { hasEntityRuntime } from './runtime.ts';
|
|
8
8
|
|
|
9
9
|
function createTestEntity(fields?: Record<string, unknown>): Entity & Record<string, unknown> {
|
|
10
10
|
const out = allocateEntity<Entity>();
|
|
@@ -2,10 +2,10 @@ import type { Entity } from '@flighthq/types/contract';
|
|
|
2
2
|
import type { EntityRuntimeWriteSlot } from '@flighthq/types/contract';
|
|
3
3
|
import { EntityRuntimeKey } from '@flighthq/types/contract';
|
|
4
4
|
|
|
5
|
-
import { disableEntityRuntimeGuards, enableEntityRuntimeGuards } from './enableEntityRuntimeGuards';
|
|
6
|
-
import { allocateEntity, finishEntity } from './entity';
|
|
7
|
-
import { areEntityRuntimeGuardsEnabled, createGuardedEntity, createGuardedEntityRuntime } from './guards';
|
|
8
|
-
import { createEntityRuntime } from './runtime';
|
|
5
|
+
import { disableEntityRuntimeGuards, enableEntityRuntimeGuards } from './enableEntityRuntimeGuards.ts';
|
|
6
|
+
import { allocateEntity, finishEntity } from './entity.ts';
|
|
7
|
+
import { areEntityRuntimeGuardsEnabled, createGuardedEntity, createGuardedEntityRuntime } from './guards.ts';
|
|
8
|
+
import { createEntityRuntime } from './runtime.ts';
|
|
9
9
|
|
|
10
10
|
function createTestEntity(): Entity {
|
|
11
11
|
return finishEntity(allocateEntity<Entity>());
|
package/src/entity.test.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Entity } from '@flighthq/types/contract';
|
|
2
2
|
import { EntityRuntimeKey } from '@flighthq/types/contract';
|
|
3
3
|
|
|
4
|
-
import { allocateEntity, finishEntity } from './entity';
|
|
4
|
+
import { allocateEntity, finishEntity } from './entity.ts';
|
|
5
5
|
|
|
6
6
|
describe('allocateEntity', () => {
|
|
7
7
|
it('returns an object with an undefined runtime', () => {
|
package/src/entityUid.test.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Entity } from '@flighthq/types/contract';
|
|
2
2
|
import { EntityRuntimeKey } from '@flighthq/types/contract';
|
|
3
3
|
|
|
4
|
-
import { allocateEntity, finishEntity } from './entity';
|
|
5
|
-
import { getEntityUid, setEntityUid } from './entityUid';
|
|
6
|
-
import { createEntityRuntime } from './runtime';
|
|
4
|
+
import { allocateEntity, finishEntity } from './entity.ts';
|
|
5
|
+
import { getEntityUid, setEntityUid } from './entityUid.ts';
|
|
6
|
+
import { createEntityRuntime } from './runtime.ts';
|
|
7
7
|
|
|
8
8
|
function createTestEntity(): Entity {
|
|
9
9
|
return finishEntity(allocateEntity<Entity>());
|
package/src/guards.test.ts
CHANGED
|
@@ -2,15 +2,15 @@ import type { Entity } from '@flighthq/types/contract';
|
|
|
2
2
|
import { EntityRuntimeKey } from '@flighthq/types/contract';
|
|
3
3
|
import type { EntityRuntimeWriteSlot } from '@flighthq/types/contract';
|
|
4
4
|
|
|
5
|
-
import { allocateEntity, finishEntity } from './entity';
|
|
5
|
+
import { allocateEntity, finishEntity } from './entity.ts';
|
|
6
6
|
import {
|
|
7
7
|
areEntityRuntimeGuardsEnabled,
|
|
8
8
|
createGuardedEntity,
|
|
9
9
|
createGuardedEntityRuntime,
|
|
10
10
|
setEntityRuntimeGuardMode,
|
|
11
11
|
setEntityRuntimeWriteGuard,
|
|
12
|
-
} from './guards';
|
|
13
|
-
import { createEntityRuntime } from './runtime';
|
|
12
|
+
} from './guards.ts';
|
|
13
|
+
import { createEntityRuntime } from './runtime.ts';
|
|
14
14
|
|
|
15
15
|
function createTestEntity(fields?: Record<string, unknown>): Entity & Record<string, unknown> {
|
|
16
16
|
const out = allocateEntity<Entity>();
|
package/src/runtime.test.ts
CHANGED
|
@@ -2,9 +2,9 @@ import type { Entity } from '@flighthq/types/contract';
|
|
|
2
2
|
import type { EntityRuntime } from '@flighthq/types/contract';
|
|
3
3
|
import { EntityRuntimeKey } from '@flighthq/types/contract';
|
|
4
4
|
|
|
5
|
-
import { attachEntityBinding } from './binding';
|
|
6
|
-
import { allocateEntity, finishEntity } from './entity';
|
|
7
|
-
import { createEntityRuntime, getEntityRuntime, hasEntityRuntime } from './runtime';
|
|
5
|
+
import { attachEntityBinding } from './binding.ts';
|
|
6
|
+
import { allocateEntity, finishEntity } from './entity.ts';
|
|
7
|
+
import { createEntityRuntime, getEntityRuntime, hasEntityRuntime } from './runtime.ts';
|
|
8
8
|
|
|
9
9
|
function createTestEntity(): Entity {
|
|
10
10
|
return finishEntity(allocateEntity<Entity>());
|