@alwatr/nitrobase-helper 9.2.1 → 9.3.0

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/dist/main.js CHANGED
@@ -1,5 +1,5 @@
1
- /* 📦 @alwatr/nitrobase-helper v9.2.1 */
1
+ /* 📦 @alwatr/nitrobase-helper v9.3.0 */
2
2
  import{flatString as z}from"@alwatr/flat-string";import{StoreFileExtension as A}from"@alwatr/nitrobase-types";function D(k){let q=k.region+"/"+k.name;if(k.ownerId!==void 0)q+="/"+k.ownerId;return z(q)}function G(k){let q=k.region;if(k.ownerId!==void 0)q+="/"+k.ownerId.slice(0,3)+"/"+k.ownerId;return q+=`/${k.name}.${k.type}.${k.extension??A.Json}`,z(q)}export{G as getStorePath,D as getStoreId};
3
3
 
4
- //# debugId=DE848625F5D4587164756E2164756E21
4
+ //# debugId=23A1232327A6B59C64756E2164756E21
5
5
  //# sourceMappingURL=main.js.map
package/dist/main.js.map CHANGED
@@ -5,6 +5,6 @@
5
5
  "import {flatString} from '@alwatr/flat-string';\nimport {StoreFileExtension, type StoreFileId, type StoreFileStat} from '@alwatr/nitrobase-types';\n\n/**\n * Convert StoreFileId to a string ID.\n *\n * @param storeId - The StoreFileId.\n * @returns The nitrobase ID as a string.\n */\nexport function getStoreId(storeId: StoreFileId): string {\n let id = storeId.region + '/' + storeId.name;\n if (storeId.ownerId !== undefined) {\n id += '/' + storeId.ownerId;\n }\n return flatString(id);\n}\n\n/**\n * Returns the nitrobase path based on the provided storeStat object.\n *\n * @param storeStat The nitrobase file stat object.\n * @returns The nitrobase path.\n */\nexport function getStorePath(storeStat: StoreFileStat): string {\n let path: string = storeStat.region;\n if (storeStat.ownerId !== undefined) {\n path += '/' + storeStat.ownerId.slice(0, 3) + '/' + storeStat.ownerId;\n }\n path += `/${storeStat.name}.${storeStat.type}.${storeStat.extension ?? StoreFileExtension.Json}`;\n return flatString(path);\n}\n"
6
6
  ],
7
7
  "mappings": ";AAAA,qBAAQ,4BACR,6BAAQ,gCAQD,SAAS,CAAU,CAAC,EAA8B,CACvD,IAAI,EAAK,EAAQ,OAAS,IAAM,EAAQ,KACxC,GAAI,EAAQ,UAAY,OACtB,GAAM,IAAM,EAAQ,QAEtB,OAAO,EAAW,CAAE,EASf,SAAS,CAAY,CAAC,EAAkC,CAC7D,IAAI,EAAe,EAAU,OAC7B,GAAI,EAAU,UAAY,OACxB,GAAQ,IAAM,EAAU,QAAQ,MAAM,EAAG,CAAC,EAAI,IAAM,EAAU,QAGhE,OADA,GAAQ,IAAI,EAAU,QAAQ,EAAU,QAAQ,EAAU,WAAa,EAAmB,OACnF,EAAW,CAAI",
8
- "debugId": "DE848625F5D4587164756E2164756E21",
8
+ "debugId": "23A1232327A6B59C64756E2164756E21",
9
9
  "names": []
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwatr/nitrobase-helper",
3
- "version": "9.2.1",
3
+ "version": "9.3.0",
4
4
  "description": "Extremely fast and compact JSON-based database that operates in memory, includes a JSON file backup, and serve over the highly accelerated Nginx.",
5
5
  "license": "MPL-2.0",
6
6
  "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com> (https://ali.mihandoost.com)",
@@ -21,13 +21,13 @@
21
21
  },
22
22
  "sideEffects": false,
23
23
  "dependencies": {
24
- "@alwatr/flat-string": "9.1.1",
25
- "@alwatr/logger": "9.2.1",
26
- "@alwatr/nitrobase-types": "^9.2.1"
24
+ "@alwatr/flat-string": "9.3.0",
25
+ "@alwatr/logger": "9.3.0",
26
+ "@alwatr/nitrobase-types": "^9.3.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@alwatr/nano-build": "9.1.1",
30
- "@alwatr/tsconfig-base": "9.1.1",
29
+ "@alwatr/nano-build": "9.3.0",
30
+ "@alwatr/standard": "9.3.0",
31
31
  "@alwatr/type-helper": "9.1.1",
32
32
  "@types/node": "^24.12.2",
33
33
  "typescript": "^6.0.2"
@@ -72,5 +72,5 @@
72
72
  "typescript"
73
73
  ],
74
74
  "prettier": "@alwatr/nanolib/prettier-config",
75
- "gitHead": "b9dc0cb8b04b16216d44fbe9a9682f2a57926167"
75
+ "gitHead": "adf6d486667eefee42dfc87938e3af96f87c4738"
76
76
  }