rust-store-node 4.0.0 → 4.1.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/index.d.ts CHANGED
@@ -21,6 +21,12 @@ export declare function toPascal(tokens: Array<string>): string
21
21
  export declare function translateName(logical: string, target: string): string
22
22
  /** 命名冲突检测(A7):一组逻辑名归一后撞名 / 撞保留键 ⇒ 抛错。 */
23
23
  export declare function detectConflicts(names: Array<string>): void
24
+ /** 内容寻址路径(纯函数) */
25
+ export declare function resourceContentPath(sha1: string): string
26
+ /** 是否外部 URL(纯函数) */
27
+ export declare function resourceIsExternalUrl(reference: string): boolean
28
+ /** URL 组合(纯函数) */
29
+ export declare function resourceComposeUrl(reference: string, cfg: any): string
24
30
  export declare class Registry {
25
31
  /** 逐条后处理文档(默认值 → 同步 fn → 递归下钻 → 权限裁剪),返回 `{doc}` */
26
32
  processNode(gql: string, doc: any, ctx?: any | undefined | null): any
package/index.js CHANGED
@@ -310,7 +310,7 @@ if (!nativeBinding) {
310
310
  throw new Error(`Failed to load native binding`)
311
311
  }
312
312
 
313
- const { Registry, systemContext, canonical, toSnake, toCamel, toPascal, translateName, detectConflicts } = nativeBinding
313
+ const { Registry, systemContext, canonical, toSnake, toCamel, toPascal, translateName, detectConflicts, resourceContentPath, resourceIsExternalUrl, resourceComposeUrl } = nativeBinding
314
314
 
315
315
  module.exports.Registry = Registry
316
316
  module.exports.systemContext = systemContext
@@ -320,3 +320,6 @@ module.exports.toCamel = toCamel
320
320
  module.exports.toPascal = toPascal
321
321
  module.exports.translateName = translateName
322
322
  module.exports.detectConflicts = detectConflicts
323
+ module.exports.resourceContentPath = resourceContentPath
324
+ module.exports.resourceIsExternalUrl = resourceIsExternalUrl
325
+ module.exports.resourceComposeUrl = resourceComposeUrl
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rust-store-node",
3
- "version": "4.0.0",
3
+ "version": "4.1.1",
4
4
  "description": "Node.js binding (napi-rs) for the rust-store multi-backend data engine: GQL parsing, permissions, computed columns and SQL dialect translation for MongoDB, MySQL, SQLite and PostgreSQL",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -68,10 +68,10 @@
68
68
  "sql.js": "^1.8.0"
69
69
  },
70
70
  "optionalDependencies": {
71
- "rust-store-node-win32-x64-msvc": "4.0.0",
72
- "rust-store-node-linux-x64-gnu": "4.0.0",
73
- "rust-store-node-linux-arm64-gnu": "4.0.0",
74
- "rust-store-node-darwin-x64": "4.0.0",
75
- "rust-store-node-darwin-arm64": "4.0.0"
71
+ "rust-store-node-win32-x64-msvc": "4.1.1",
72
+ "rust-store-node-linux-x64-gnu": "4.1.1",
73
+ "rust-store-node-linux-arm64-gnu": "4.1.1",
74
+ "rust-store-node-darwin-x64": "4.1.1",
75
+ "rust-store-node-darwin-arm64": "4.1.1"
76
76
  }
77
77
  }
Binary file
Binary file
Binary file
Binary file