xrootd 0.2.0 → 0.2.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/README.md +4 -4
- package/dist/index.cjs +0 -3
- package/dist/index.d.cts +3 -2
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +0 -3
- package/package.json +3 -3
- package/prebuilds/darwin-arm64/xrootd.node +0 -0
- package/prebuilds/darwin-x64/xrootd.node +0 -0
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# XRootD TypeScript Support (`xrootd`)
|
|
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
5
|
> [!NOTE]
|
|
6
|
-
> **Work in Progress**: This package is currently under active development. While core features are highly functional, the API may undergo
|
|
6
|
+
> **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.
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
## Supported Capabilities
|
|
@@ -130,8 +130,8 @@ Unlike traditional Node.js C++ addons, `xrootd` is architected for **High Energy
|
|
|
130
130
|
|
|
131
131
|
This project is released under a **Dual License** strategy to balance open-source compatibility and developer freedom:
|
|
132
132
|
|
|
133
|
-
1. **[GNU GPLv3](
|
|
134
|
-
2. **[MIT](
|
|
133
|
+
1. **[GNU GPLv3](LICENSE-GPLv3)**: The native binding codebase adheres to the GPLv3 license to remain fully compatible with the upstream C++ XRootD project.
|
|
134
|
+
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
135
|
|
|
136
136
|
*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
137
|
|
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
|
|
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
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xrootd",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
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:
|
|
81
|
-
"test": "
|
|
80
|
+
"test:prepare": "unrun ./tests/prepare/main.ts",
|
|
81
|
+
"test": "unrun tests/native.ts && unrun tests/url.ts && unrun tests/fs.ts"
|
|
82
82
|
}
|
|
83
83
|
}
|
|
Binary file
|
|
Binary file
|