@mnemonik/shared 7.92.11 → 7.92.13

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.
@@ -1,4 +1,5 @@
1
1
  export declare const AMBIENT_ID_PREFIX_LENGTH = 8;
2
- export declare const AMBIENT_ITEM_POINTER_SOURCE = "\u2014\\s*memory_get\\s+([0-9A-Za-z_-]{8})(?![0-9A-Za-z_-])";
2
+ /** Full UUID pointers plus eight-character pointers emitted by current and cached payloads. */
3
+ export declare const AMBIENT_ITEM_POINTER_SOURCE: string;
3
4
  export declare function ambientItemPointerRegex(flags?: string): RegExp;
4
5
  //# sourceMappingURL=ambientPointer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ambientPointer.d.ts","sourceRoot":"","sources":["../src/ambientPointer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAE1C,eAAO,MAAM,2BAA2B,gEAAqF,CAAC;AAE9H,wBAAgB,uBAAuB,CAAC,KAAK,SAAM,GAAG,MAAM,CAE3D"}
1
+ {"version":3,"file":"ambientPointer.d.ts","sourceRoot":"","sources":["../src/ambientPointer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAK1C,+FAA+F;AAC/F,eAAO,MAAM,2BAA2B,QACuD,CAAC;AAEhG,wBAAgB,uBAAuB,CAAC,KAAK,SAAM,GAAG,MAAM,CAE3D"}
@@ -1,5 +1,8 @@
1
1
  export const AMBIENT_ID_PREFIX_LENGTH = 8;
2
- export const AMBIENT_ITEM_POINTER_SOURCE = `—\\s*memory_get\\s+([0-9A-Za-z_-]{${AMBIENT_ID_PREFIX_LENGTH}})(?![0-9A-Za-z_-])`;
2
+ const MEMORY_UUID_SOURCE = '[0-9A-Fa-f]{8}-(?:[0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}';
3
+ const LEGACY_MEMORY_ID_SOURCE = `[0-9A-Za-z_-]{${AMBIENT_ID_PREFIX_LENGTH}}`;
4
+ /** Full UUID pointers plus eight-character pointers emitted by current and cached payloads. */
5
+ export const AMBIENT_ITEM_POINTER_SOURCE = `—\\s*memory_get\\s+(${MEMORY_UUID_SOURCE}|${LEGACY_MEMORY_ID_SOURCE})` + '(?![0-9A-Za-z_-])';
3
6
  export function ambientItemPointerRegex(flags = 'g') {
4
7
  return new RegExp(AMBIENT_ITEM_POINTER_SOURCE, flags);
5
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ambientPointer.js","sourceRoot":"","sources":["../src/ambientPointer.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC;AAE1C,MAAM,CAAC,MAAM,2BAA2B,GAAG,qCAAqC,wBAAwB,qBAAqB,CAAC;AAE9H,MAAM,UAAU,uBAAuB,CAAC,KAAK,GAAG,GAAG;IACjD,OAAO,IAAI,MAAM,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC"}
1
+ {"version":3,"file":"ambientPointer.js","sourceRoot":"","sources":["../src/ambientPointer.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC;AAE1C,MAAM,kBAAkB,GAAG,sDAAsD,CAAC;AAClF,MAAM,uBAAuB,GAAG,iBAAiB,wBAAwB,GAAG,CAAC;AAE7E,+FAA+F;AAC/F,MAAM,CAAC,MAAM,2BAA2B,GACtC,uBAAuB,kBAAkB,IAAI,uBAAuB,GAAG,GAAG,mBAAmB,CAAC;AAEhG,MAAM,UAAU,uBAAuB,CAAC,KAAK,GAAG,GAAG;IACjD,OAAO,IAAI,MAAM,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mnemonik/shared",
3
- "version": "7.92.11",
3
+ "version": "7.92.13",
4
4
  "description": "Shared constants and utilities for Mnemonik packages",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,6 +1,11 @@
1
1
  export const AMBIENT_ID_PREFIX_LENGTH = 8;
2
2
 
3
- export const AMBIENT_ITEM_POINTER_SOURCE = `—\\s*memory_get\\s+([0-9A-Za-z_-]{${AMBIENT_ID_PREFIX_LENGTH}})(?![0-9A-Za-z_-])`;
3
+ const MEMORY_UUID_SOURCE = '[0-9A-Fa-f]{8}-(?:[0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}';
4
+ const LEGACY_MEMORY_ID_SOURCE = `[0-9A-Za-z_-]{${AMBIENT_ID_PREFIX_LENGTH}}`;
5
+
6
+ /** Full UUID pointers plus eight-character pointers emitted by current and cached payloads. */
7
+ export const AMBIENT_ITEM_POINTER_SOURCE =
8
+ `—\\s*memory_get\\s+(${MEMORY_UUID_SOURCE}|${LEGACY_MEMORY_ID_SOURCE})` + '(?![0-9A-Za-z_-])';
4
9
 
5
10
  export function ambientItemPointerRegex(flags = 'g'): RegExp {
6
11
  return new RegExp(AMBIENT_ITEM_POINTER_SOURCE, flags);