xrootd 0.2.0 → 0.2.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.
Files changed (54) hide show
  1. package/README.md +6 -4
  2. package/dist/index.cjs +0 -3
  3. package/dist/index.d.cts +3 -2
  4. package/dist/index.d.mts +3 -2
  5. package/dist/index.mjs +0 -3
  6. package/libs/darwin-arm64/libXrdCl.6.dylib +0 -0
  7. package/libs/darwin-arm64/libXrdCrypto.6.dylib +0 -0
  8. package/libs/darwin-arm64/libXrdCryptossl-6.so +0 -0
  9. package/libs/darwin-arm64/libXrdSec-6.so +0 -0
  10. package/libs/darwin-arm64/libXrdSecProt-6.so +0 -0
  11. package/libs/darwin-arm64/libXrdSeckrb5-6.so +0 -0
  12. package/libs/darwin-arm64/libXrdSecpwd-6.so +0 -0
  13. package/libs/darwin-arm64/libXrdSecsss-6.so +0 -0
  14. package/libs/darwin-arm64/libXrdSecunix-6.so +0 -0
  15. package/libs/darwin-arm64/libXrdSecztn-6.so +0 -0
  16. package/libs/darwin-arm64/libXrdUtils.6.dylib +0 -0
  17. package/libs/darwin-arm64/libXrdXml.6.dylib +0 -0
  18. package/libs/darwin-x64/libXrdCl.6.dylib +0 -0
  19. package/libs/darwin-x64/libXrdCrypto.6.dylib +0 -0
  20. package/libs/darwin-x64/libXrdCryptossl-6.so +0 -0
  21. package/libs/darwin-x64/libXrdSec-6.so +0 -0
  22. package/libs/darwin-x64/libXrdSecProt-6.so +0 -0
  23. package/libs/darwin-x64/libXrdSeckrb5-6.so +0 -0
  24. package/libs/darwin-x64/libXrdSecpwd-6.so +0 -0
  25. package/libs/darwin-x64/libXrdSecsss-6.so +0 -0
  26. package/libs/darwin-x64/libXrdSecunix-6.so +0 -0
  27. package/libs/darwin-x64/libXrdSecztn-6.so +0 -0
  28. package/libs/darwin-x64/libXrdUtils.6.dylib +0 -0
  29. package/libs/darwin-x64/libXrdXml.6.dylib +0 -0
  30. package/libs/linux-arm64/libXrdCl.so.6 +0 -0
  31. package/libs/linux-arm64/libXrdCrypto.so.6 +0 -0
  32. package/libs/linux-arm64/libXrdCryptossl-6.so +0 -0
  33. package/libs/linux-arm64/libXrdSec-6.so +0 -0
  34. package/libs/linux-arm64/libXrdSecProt-6.so +0 -0
  35. package/libs/linux-arm64/libXrdSeckrb5-6.so +0 -0
  36. package/libs/linux-arm64/libXrdSecpwd-6.so +0 -0
  37. package/libs/linux-arm64/libXrdSecsss-6.so +0 -0
  38. package/libs/linux-arm64/libXrdSecunix-6.so +0 -0
  39. package/libs/linux-arm64/libXrdSecztn-6.so +0 -0
  40. package/libs/linux-arm64/libXrdUtils.so.6 +0 -0
  41. package/libs/linux-x64/libXrdCl.so.6 +0 -0
  42. package/libs/linux-x64/libXrdCrypto.so.6 +0 -0
  43. package/libs/linux-x64/libXrdCryptossl-6.so +0 -0
  44. package/libs/linux-x64/libXrdSec-6.so +0 -0
  45. package/libs/linux-x64/libXrdSecProt-6.so +0 -0
  46. package/libs/linux-x64/libXrdSeckrb5-6.so +0 -0
  47. package/libs/linux-x64/libXrdSecpwd-6.so +0 -0
  48. package/libs/linux-x64/libXrdSecsss-6.so +0 -0
  49. package/libs/linux-x64/libXrdSecunix-6.so +0 -0
  50. package/libs/linux-x64/libXrdSecztn-6.so +0 -0
  51. package/libs/linux-x64/libXrdUtils.so.6 +0 -0
  52. package/package.json +3 -3
  53. package/prebuilds/darwin-arm64/xrootd.node +0 -0
  54. package/prebuilds/darwin-x64/xrootd.node +0 -0
package/README.md CHANGED
@@ -1,9 +1,11 @@
1
- # 🚀 XRootD TypeScript Support (`xrootd`)
1
+ # XRootD TypeScript Support
2
2
 
3
3
  A high-performance, enterprise-grade Node.js binding for the [XRootD](https://github.com/xrootd/xrootd) client library. Designed to bring seamless, extreme-throughput data access to the TypeScript ecosystem.
4
4
 
5
+ Github Repo: [**Wu-Yijun/xrootd**](https://github.com/Wu-Yijun/xrootd); NPM package: [**XRootD**](https://www.npmjs.com/package/xrootd)
6
+
5
7
  > [!NOTE]
6
- > **Work in Progress**: This package is currently under active development. While core features are highly functional, the API may undergo minor refinements.
8
+ > **Work in Progress**: This package is currently under active development with some features not supported yet. While core features are highly functional, the API may undergo refinements. Api interfaces are not tests thoroughly so it may be unstable.
7
9
 
8
10
 
9
11
  ## Supported Capabilities
@@ -130,8 +132,8 @@ Unlike traditional Node.js C++ addons, `xrootd` is architected for **High Energy
130
132
 
131
133
  This project is released under a **Dual License** strategy to balance open-source compatibility and developer freedom:
132
134
 
133
- 1. **[GNU GPLv3](https://www.google.com/search?q=https://www.gnu.org/licenses/gpl-3.0.en.html)**: The native binding codebase adheres to the GPLv3 license to remain fully compatible with the upstream C++ XRootD project.
134
- 2. **[MIT](https://www.google.com/search?q=https://opensource.org/licenses/MIT)**: The core TypeScript APIs, interface definitions, and glue layers are provided under the MIT license, allowing you to integrate the TS components into your own software architectures without viral restrictive requirements.
135
+ 1. **[GNU GPLv3](LICENSE-GPLv3)**: The native binding codebase adheres to the GPLv3 license to remain fully compatible with the upstream C++ XRootD project.
136
+ 2. **[MIT](LICENSE-MIT)**: The core TypeScript APIs, interface definitions, and glue layers are provided under the MIT license, allowing you to integrate the TS components into your own software architectures without viral restrictive requirements.
135
137
 
136
138
  *Disclaimer: This project is a third-party community initiative built for modern web ecosystems and is not affiliated with, officially endorsed by, or sponsored by the core XRootD project.*
137
139
 
package/dist/index.cjs CHANGED
@@ -742,9 +742,6 @@ var XRootDEnvironment = class {
742
742
  if (!success) console.warn(`[xrootd] Warning: Failed to set integer configuration "${key}"=${intVal}. It might have been overridden by a system environment variable.`);
743
743
  return success;
744
744
  }
745
- /**
746
- * 设置字符串配置项,返回是否设置成功。
747
- */
748
745
  putString(key, strVal) {
749
746
  if (key === "SecProtocol") {
750
747
  process.env.XrdSecPROTOCOL = strVal;
package/dist/index.d.cts CHANGED
@@ -232,6 +232,7 @@ declare const MkDirFlags: {
232
232
  type MkDirFlags = typeof MkDirFlags[keyof typeof MkDirFlags];
233
233
  //#endregion
234
234
  //#region lib/file.d.ts
235
+ type Combined = number & {};
235
236
  /**
236
237
  * XRootD File 客户端
237
238
  * 提供对远程文件的异步读写操作及 Node.js 风格的流式接口。
@@ -245,7 +246,7 @@ declare class File$1 {
245
246
  * @param flags 打开标志位
246
247
  * @param mode 访问权限模式
247
248
  */
248
- open(url: string, flags?: OpenFlags, mode?: AccessMode): Promise<void>;
249
+ open(url: string, flags?: OpenFlags | Combined, mode?: AccessMode | Combined): Promise<void>;
249
250
  /**
250
251
  * 关闭文件
251
252
  */
@@ -834,7 +835,7 @@ declare class XRootDEnvironment {
834
835
  /**
835
836
  * 设置字符串配置项,返回是否设置成功。
836
837
  */
837
- putString(key: XRootDEnvConfigStringKey | XRootDEnvConfigBoolKey, strVal: string): boolean;
838
+ putString<Key extends XRootDEnvConfigStringKey | XRootDEnvConfigBoolKey>(key: Key, strVal: XRootDEnvConfig[Key]): boolean;
838
839
  /**
839
840
  * 设置布尔配置项,返回是否设置成功。
840
841
  */
package/dist/index.d.mts CHANGED
@@ -232,6 +232,7 @@ declare const MkDirFlags: {
232
232
  type MkDirFlags = typeof MkDirFlags[keyof typeof MkDirFlags];
233
233
  //#endregion
234
234
  //#region lib/file.d.ts
235
+ type Combined = number & {};
235
236
  /**
236
237
  * XRootD File 客户端
237
238
  * 提供对远程文件的异步读写操作及 Node.js 风格的流式接口。
@@ -245,7 +246,7 @@ declare class File$1 {
245
246
  * @param flags 打开标志位
246
247
  * @param mode 访问权限模式
247
248
  */
248
- open(url: string, flags?: OpenFlags, mode?: AccessMode): Promise<void>;
249
+ open(url: string, flags?: OpenFlags | Combined, mode?: AccessMode | Combined): Promise<void>;
249
250
  /**
250
251
  * 关闭文件
251
252
  */
@@ -834,7 +835,7 @@ declare class XRootDEnvironment {
834
835
  /**
835
836
  * 设置字符串配置项,返回是否设置成功。
836
837
  */
837
- putString(key: XRootDEnvConfigStringKey | XRootDEnvConfigBoolKey, strVal: string): boolean;
838
+ putString<Key extends XRootDEnvConfigStringKey | XRootDEnvConfigBoolKey>(key: Key, strVal: XRootDEnvConfig[Key]): boolean;
838
839
  /**
839
840
  * 设置布尔配置项,返回是否设置成功。
840
841
  */
package/dist/index.mjs CHANGED
@@ -717,9 +717,6 @@ var XRootDEnvironment = class {
717
717
  if (!success) console.warn(`[xrootd] Warning: Failed to set integer configuration "${key}"=${intVal}. It might have been overridden by a system environment variable.`);
718
718
  return success;
719
719
  }
720
- /**
721
- * 设置字符串配置项,返回是否设置成功。
722
- */
723
720
  putString(key, strVal) {
724
721
  if (key === "SecProtocol") {
725
722
  process.env.XrdSecPROTOCOL = strVal;
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xrootd",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Prebuilt Node.js Native Addon for XRootD, allowing JS access to EOS file systems",
5
5
  "type": "module",
6
6
  "exports": {
@@ -77,7 +77,7 @@
77
77
  "build": "pnpm run build:addon && pnpm run build:binaries && pnpm run build:tsc && pnpm run build:ts",
78
78
  "build:clean": "rm -r ./build && pnpm run build",
79
79
  "pack": "mkdir -p packages && pnpm pack --pack-destination ./packages",
80
- "test:prep": "unrun ./tests/prepare.ts",
81
- "test": "node --test tests/*.mjs"
80
+ "test:prepare": "unrun ./tests/prepare/main.ts",
81
+ "test": "unrun tests/native.mjs && unrun tests/url.ts && unrun tests/fs.ts"
82
82
  }
83
83
  }
Binary file
Binary file