@needle-tools/addressing 0.3.0 → 0.3.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/package.json +1 -1
- package/src/address.ts +1 -1
- package/src/resolve.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@needle-tools/addressing",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Persistent addressing for Needle assets: deterministic needle-id computation, #needle anchors, and address resolution over glTF JSON and live scene graphs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
package/src/address.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseAnchorValue } from "./anchor.js";
|
|
2
|
-
import { getElementId,
|
|
2
|
+
import { getElementId, NEEDLE_ID_KEY, type GltfJson, type StampedElementType } from "./gltf.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A persistent pointer to an element inside an asset — the "fat address": every
|
package/src/resolve.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { parseAnchorValue } from "./anchor.js";
|
|
2
|
-
import { collectionKeyForType, GraphNode, NeedleAddress } from "./address.js";
|
|
3
|
-
import {
|
|
2
|
+
import { collectionKeyForType, type GraphNode, type NeedleAddress } from "./address.js";
|
|
3
|
+
import { NEEDLE_ID_KEY, STAMPED_COLLECTIONS, type GltfJson } from "./gltf.js";
|
|
4
4
|
|
|
5
5
|
export type GltfResolveResult = {
|
|
6
6
|
type: string;
|