@degenerate/generic 0.9.1 → 0.9.2
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firestore-id-helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/firestore/firestore-id-helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"firestore-id-helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/firestore/firestore-id-helpers.ts"],"names":[],"mappings":"AAcA;;;;;GAKG;AACH,QAAA,MAAM,gBAAgB,GAAI,MAAM,MAAM,KAAG,OAAqC,CAAC;AAE/E;;;;;GAKG;AACH,QAAA,MAAM,uBAAuB,GAAI,MAAM,MAAM,KAAG,OAAmC,CAAC;AAEpF;;;;;;;GAOG;AACH,QAAA,MAAM,qBAAqB,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MAE4D,CAAC;AAEtH,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -6,8 +6,9 @@ exports.isWellFormedText = exports.isReservedFirestoreName = exports.isFirestore
|
|
|
6
6
|
// with U+FFFD, so an id holding one names a different document, and a request holding one can fail
|
|
7
7
|
// with an error a transaction retries.
|
|
8
8
|
const LONE_SURROGATE = /[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?<![\uD800-\uDBFF])[\uDC00-\uDFFF]/;
|
|
9
|
-
// A name Firestore reserves (`__name__`, `__proto__`, ...).
|
|
10
|
-
//
|
|
9
|
+
// A name Firestore reserves (`__name__`, `__proto__`, ...). Its documented rule for ids and field
|
|
10
|
+
// names is "cannot match `__.*__`", which includes `____`; the emulator accepts that one, production
|
|
11
|
+
// may not. [\s\S], not '.', so one with a line terminator inside (`__a\nb__`) is still caught.
|
|
11
12
|
const RESERVED_NAME = /^__[\s\S]*__$/;
|
|
12
13
|
const MAX_ID_BYTES = 1500; // Firestore's limit on a document or collection id
|
|
13
14
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@degenerate/generic",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "This contains the generic information needed for the ShareData Adaptive Framework Ecosystem (SAFE) network",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"jsonwebtoken": "^9.0.3",
|
|
45
45
|
"zod": "^4.6.6"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "f165560b530191fc3058bbfd8e58e6692e84ecf3",
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@eslint/js": "^10.0.1",
|
|
50
50
|
"@types/eslint__js": "^8.42.3",
|