@qqbrowser/qbot-claw-launcher 0.9.70 → 0.9.72
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/installer.js +5 -9
- package/dist/server.js +2 -2
- package/dist/service.js +3 -3
- package/dist/state.js +1 -1
- package/dist/version.js +1 -1
- package/node_modules/{picomatch → @parcel/watcher/node_modules/picomatch}/README.md +30 -41
- package/node_modules/{picomatch → @parcel/watcher/node_modules/picomatch}/lib/constants.js +0 -4
- package/node_modules/{picomatch → @parcel/watcher/node_modules/picomatch}/lib/parse.js +0 -301
- package/node_modules/{picomatch → @parcel/watcher/node_modules/picomatch}/lib/picomatch.js +3 -11
- package/node_modules/{picomatch → @parcel/watcher/node_modules/picomatch}/package.json +27 -57
- package/node_modules/is-extglob/package.json +17 -48
- package/node_modules/is-glob/package.json +21 -61
- package/node_modules/node-addon-api/README.md +1 -1
- package/node_modules/node-addon-api/napi-inl.h +4 -61
- package/node_modules/node-addon-api/napi.h +6 -43
- package/node_modules/node-addon-api/package.json +20 -44
- package/package.json +1 -1
- /package/node_modules/{picomatch → @parcel/watcher/node_modules/picomatch}/LICENSE +0 -0
- /package/node_modules/{picomatch → @parcel/watcher/node_modules/picomatch}/index.js +0 -0
- /package/node_modules/{picomatch → @parcel/watcher/node_modules/picomatch}/lib/scan.js +0 -0
- /package/node_modules/{picomatch → @parcel/watcher/node_modules/picomatch}/lib/utils.js +0 -0
- /package/node_modules/{picomatch → @parcel/watcher/node_modules/picomatch}/posix.js +0 -0
|
@@ -1199,13 +1199,6 @@ inline Date Date::New(napi_env env, double val) {
|
|
|
1199
1199
|
return Date(env, value);
|
|
1200
1200
|
}
|
|
1201
1201
|
|
|
1202
|
-
inline Date Date::New(napi_env env, std::chrono::system_clock::time_point tp) {
|
|
1203
|
-
using namespace std::chrono;
|
|
1204
|
-
auto ms = static_cast<double>(
|
|
1205
|
-
duration_cast<milliseconds>(tp.time_since_epoch()).count());
|
|
1206
|
-
return Date::New(env, ms);
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
1202
|
inline void Date::CheckCast(napi_env env, napi_value value) {
|
|
1210
1203
|
NAPI_CHECK(value != nullptr, "Date::CheckCast", "empty value");
|
|
1211
1204
|
|
|
@@ -1973,19 +1966,6 @@ inline MaybeOrValue<bool> Object::Seal() const {
|
|
|
1973
1966
|
}
|
|
1974
1967
|
#endif // NAPI_VERSION >= 8
|
|
1975
1968
|
|
|
1976
|
-
inline MaybeOrValue<Object> Object::GetPrototype() const {
|
|
1977
|
-
napi_value result;
|
|
1978
|
-
napi_status status = napi_get_prototype(_env, _value, &result);
|
|
1979
|
-
NAPI_RETURN_OR_THROW_IF_FAILED(_env, status, Object(_env, result), Object);
|
|
1980
|
-
}
|
|
1981
|
-
|
|
1982
|
-
#ifdef NODE_API_EXPERIMENTAL_HAS_SET_PROTOTYPE
|
|
1983
|
-
inline MaybeOrValue<bool> Object::SetPrototype(const Object& value) const {
|
|
1984
|
-
napi_status status = node_api_set_prototype(_env, _value, value);
|
|
1985
|
-
NAPI_RETURN_OR_THROW_IF_FAILED(_env, status, status == napi_ok, bool);
|
|
1986
|
-
}
|
|
1987
|
-
#endif
|
|
1988
|
-
|
|
1989
1969
|
////////////////////////////////////////////////////////////////////////////////
|
|
1990
1970
|
// External class
|
|
1991
1971
|
////////////////////////////////////////////////////////////////////////////////
|
|
@@ -2309,39 +2289,6 @@ inline DataView DataView::New(napi_env env,
|
|
|
2309
2289
|
return DataView(env, value);
|
|
2310
2290
|
}
|
|
2311
2291
|
|
|
2312
|
-
#ifdef NODE_API_EXPERIMENTAL_HAS_SHAREDARRAYBUFFER
|
|
2313
|
-
inline DataView DataView::New(napi_env env,
|
|
2314
|
-
Napi::SharedArrayBuffer arrayBuffer) {
|
|
2315
|
-
return New(env, arrayBuffer, 0, arrayBuffer.ByteLength());
|
|
2316
|
-
}
|
|
2317
|
-
|
|
2318
|
-
inline DataView DataView::New(napi_env env,
|
|
2319
|
-
Napi::SharedArrayBuffer arrayBuffer,
|
|
2320
|
-
size_t byteOffset) {
|
|
2321
|
-
if (byteOffset > arrayBuffer.ByteLength()) {
|
|
2322
|
-
NAPI_THROW(RangeError::New(
|
|
2323
|
-
env, "Start offset is outside the bounds of the buffer"),
|
|
2324
|
-
DataView());
|
|
2325
|
-
}
|
|
2326
|
-
return New(
|
|
2327
|
-
env, arrayBuffer, byteOffset, arrayBuffer.ByteLength() - byteOffset);
|
|
2328
|
-
}
|
|
2329
|
-
|
|
2330
|
-
inline DataView DataView::New(napi_env env,
|
|
2331
|
-
Napi::SharedArrayBuffer arrayBuffer,
|
|
2332
|
-
size_t byteOffset,
|
|
2333
|
-
size_t byteLength) {
|
|
2334
|
-
if (byteOffset + byteLength > arrayBuffer.ByteLength()) {
|
|
2335
|
-
NAPI_THROW(RangeError::New(env, "Invalid DataView length"), DataView());
|
|
2336
|
-
}
|
|
2337
|
-
napi_value value;
|
|
2338
|
-
napi_status status =
|
|
2339
|
-
napi_create_dataview(env, byteLength, arrayBuffer, byteOffset, &value);
|
|
2340
|
-
NAPI_THROW_IF_FAILED(env, status, DataView());
|
|
2341
|
-
return DataView(env, value);
|
|
2342
|
-
}
|
|
2343
|
-
#endif // NODE_API_EXPERIMENTAL_HAS_SHAREDARRAYBUFFER
|
|
2344
|
-
|
|
2345
2292
|
inline void DataView::CheckCast(napi_env env, napi_value value) {
|
|
2346
2293
|
NAPI_CHECK(value != nullptr, "DataView::CheckCast", "empty value");
|
|
2347
2294
|
|
|
@@ -2365,10 +2312,6 @@ inline DataView::DataView(napi_env env, napi_value value) : Object(env, value) {
|
|
|
2365
2312
|
}
|
|
2366
2313
|
|
|
2367
2314
|
inline Napi::ArrayBuffer DataView::ArrayBuffer() const {
|
|
2368
|
-
return Buffer().As<Napi::ArrayBuffer>();
|
|
2369
|
-
}
|
|
2370
|
-
|
|
2371
|
-
inline Napi::Value DataView::Buffer() const {
|
|
2372
2315
|
napi_value arrayBuffer;
|
|
2373
2316
|
napi_status status = napi_get_dataview_info(_env,
|
|
2374
2317
|
_value /* dataView */,
|
|
@@ -2376,8 +2319,8 @@ inline Napi::Value DataView::Buffer() const {
|
|
|
2376
2319
|
nullptr /* data */,
|
|
2377
2320
|
&arrayBuffer /* arrayBuffer */,
|
|
2378
2321
|
nullptr /* byteOffset */);
|
|
2379
|
-
NAPI_THROW_IF_FAILED(_env, status, Napi::
|
|
2380
|
-
return Napi::
|
|
2322
|
+
NAPI_THROW_IF_FAILED(_env, status, Napi::ArrayBuffer());
|
|
2323
|
+
return Napi::ArrayBuffer(_env, arrayBuffer);
|
|
2381
2324
|
}
|
|
2382
2325
|
|
|
2383
2326
|
inline size_t DataView::ByteOffset() const {
|
|
@@ -3866,8 +3809,8 @@ inline MaybeOrValue<bool> ObjectReference::Set(const std::string& utf8name,
|
|
|
3866
3809
|
return Value().Set(utf8name, value);
|
|
3867
3810
|
}
|
|
3868
3811
|
|
|
3869
|
-
inline MaybeOrValue<bool> ObjectReference::Set(
|
|
3870
|
-
|
|
3812
|
+
inline MaybeOrValue<bool> ObjectReference::Set(const std::string& utf8name,
|
|
3813
|
+
std::string& utf8value) const {
|
|
3871
3814
|
HandleScope scope(_env);
|
|
3872
3815
|
return Value().Set(utf8name, utf8value);
|
|
3873
3816
|
}
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
#if NAPI_HAS_THREADS
|
|
18
18
|
#include <mutex>
|
|
19
19
|
#endif // NAPI_HAS_THREADS
|
|
20
|
-
#include <chrono>
|
|
21
20
|
#include <string>
|
|
22
21
|
#include <vector>
|
|
23
22
|
|
|
@@ -360,10 +359,10 @@ class BasicEnv {
|
|
|
360
359
|
// ... occurs when comparing foo.Env() == bar.Env() or foo.Env() == nullptr
|
|
361
360
|
bool operator==(const BasicEnv& other) const {
|
|
362
361
|
return _env == other._env;
|
|
363
|
-
}
|
|
362
|
+
};
|
|
364
363
|
bool operator==(std::nullptr_t /*other*/) const {
|
|
365
364
|
return _env == nullptr;
|
|
366
|
-
}
|
|
365
|
+
};
|
|
367
366
|
|
|
368
367
|
#if NAPI_VERSION > 2
|
|
369
368
|
template <typename Hook, typename Arg = void>
|
|
@@ -686,12 +685,6 @@ class Date : public Value {
|
|
|
686
685
|
double value ///< Number value
|
|
687
686
|
);
|
|
688
687
|
|
|
689
|
-
/// Creates a new Date value from a std::chrono::system_clock::time_point.
|
|
690
|
-
static Date New(
|
|
691
|
-
napi_env env, ///< Node-API environment
|
|
692
|
-
std::chrono::system_clock::time_point time_point ///< Time point value
|
|
693
|
-
);
|
|
694
|
-
|
|
695
688
|
static void CheckCast(napi_env env, napi_value value);
|
|
696
689
|
|
|
697
690
|
Date(); ///< Creates a new _empty_ Date instance.
|
|
@@ -1125,12 +1118,6 @@ class Object : public TypeTaggable {
|
|
|
1125
1118
|
/// https://tc39.es/ecma262/#sec-proxy-object-internal-methods-and-internal-slots-getprototypeof
|
|
1126
1119
|
MaybeOrValue<bool> Seal() const;
|
|
1127
1120
|
#endif // NAPI_VERSION >= 8
|
|
1128
|
-
|
|
1129
|
-
MaybeOrValue<Object> GetPrototype() const;
|
|
1130
|
-
|
|
1131
|
-
#ifdef NODE_API_EXPERIMENTAL_HAS_SET_PROTOTYPE
|
|
1132
|
-
MaybeOrValue<bool> SetPrototype(const Object& value) const;
|
|
1133
|
-
#endif
|
|
1134
1121
|
};
|
|
1135
1122
|
|
|
1136
1123
|
template <typename T>
|
|
@@ -1463,37 +1450,13 @@ class DataView : public Object {
|
|
|
1463
1450
|
size_t byteOffset,
|
|
1464
1451
|
size_t byteLength);
|
|
1465
1452
|
|
|
1466
|
-
#ifdef NODE_API_EXPERIMENTAL_HAS_SHAREDARRAYBUFFER
|
|
1467
|
-
static DataView New(napi_env env, Napi::SharedArrayBuffer arrayBuffer);
|
|
1468
|
-
static DataView New(napi_env env,
|
|
1469
|
-
Napi::SharedArrayBuffer arrayBuffer,
|
|
1470
|
-
size_t byteOffset);
|
|
1471
|
-
static DataView New(napi_env env,
|
|
1472
|
-
Napi::SharedArrayBuffer arrayBuffer,
|
|
1473
|
-
size_t byteOffset,
|
|
1474
|
-
size_t byteLength);
|
|
1475
|
-
#endif
|
|
1476
|
-
|
|
1477
1453
|
static void CheckCast(napi_env env, napi_value value);
|
|
1478
1454
|
|
|
1479
1455
|
DataView(); ///< Creates a new _empty_ DataView instance.
|
|
1480
1456
|
DataView(napi_env env,
|
|
1481
1457
|
napi_value value); ///< Wraps a Node-API value primitive.
|
|
1482
1458
|
|
|
1483
|
-
|
|
1484
|
-
//
|
|
1485
|
-
// If this `DataView` is not backed by an `ArrayBuffer`, this method will
|
|
1486
|
-
// terminate the process with a fatal error when using
|
|
1487
|
-
// `NODE_ADDON_API_ENABLE_TYPE_CHECK_ON_AS` or exhibit undefined behavior
|
|
1488
|
-
// otherwise. Use `Buffer()` instead to get the backing buffer without
|
|
1489
|
-
// assuming its type.
|
|
1490
|
-
Napi::ArrayBuffer ArrayBuffer() const;
|
|
1491
|
-
|
|
1492
|
-
// Gets the backing buffer (an `ArrayBuffer` or `SharedArrayBuffer`).
|
|
1493
|
-
//
|
|
1494
|
-
// Use `IsArrayBuffer()` or `IsSharedArrayBuffer()` to check the type of the
|
|
1495
|
-
// backing buffer prior to casting with `As<T>()`.
|
|
1496
|
-
Napi::Value Buffer() const;
|
|
1459
|
+
Napi::ArrayBuffer ArrayBuffer() const; ///< Gets the backing array buffer.
|
|
1497
1460
|
size_t ByteOffset()
|
|
1498
1461
|
const; ///< Gets the offset into the buffer where the array starts.
|
|
1499
1462
|
size_t ByteLength() const; ///< Gets the length of the array in bytes.
|
|
@@ -1770,7 +1733,7 @@ class ObjectReference : public Reference<Object> {
|
|
|
1770
1733
|
MaybeOrValue<bool> Set(const std::string& utf8name, napi_value value) const;
|
|
1771
1734
|
MaybeOrValue<bool> Set(const std::string& utf8name, Napi::Value value) const;
|
|
1772
1735
|
MaybeOrValue<bool> Set(const std::string& utf8name,
|
|
1773
|
-
|
|
1736
|
+
std::string& utf8value) const;
|
|
1774
1737
|
MaybeOrValue<bool> Set(const std::string& utf8name, bool boolValue) const;
|
|
1775
1738
|
MaybeOrValue<bool> Set(const std::string& utf8name, double numberValue) const;
|
|
1776
1739
|
|
|
@@ -3163,8 +3126,8 @@ class AsyncProgressWorkerBase : public AsyncWorker {
|
|
|
3163
3126
|
|
|
3164
3127
|
AsyncProgressWorkerBase* asyncprogressworker() {
|
|
3165
3128
|
return _asyncprogressworker;
|
|
3166
|
-
}
|
|
3167
|
-
DataType* data() { return _data; }
|
|
3129
|
+
};
|
|
3130
|
+
DataType* data() { return _data; };
|
|
3168
3131
|
|
|
3169
3132
|
private:
|
|
3170
3133
|
AsyncProgressWorkerBase* _asyncprogressworker;
|
|
@@ -1,31 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_from": "node-addon-api@^8.6.0",
|
|
3
|
-
"_id": "node-addon-api@8.7.0",
|
|
4
|
-
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-9MdFxmkKaOYVTV+XVRG8ArDwwQ77XIgIPyKASB1k3JPq3M8fGQQQE3YpMOrKm6g//Ktx8ivZr8xo1Qmtqub+GA==",
|
|
6
|
-
"_location": "/node-addon-api",
|
|
7
|
-
"_phantomChildren": {},
|
|
8
|
-
"_requested": {
|
|
9
|
-
"type": "range",
|
|
10
|
-
"registry": true,
|
|
11
|
-
"raw": "node-addon-api@^8.6.0",
|
|
12
|
-
"name": "node-addon-api",
|
|
13
|
-
"escapedName": "node-addon-api",
|
|
14
|
-
"rawSpec": "^8.6.0",
|
|
15
|
-
"saveSpec": null,
|
|
16
|
-
"fetchSpec": "^8.6.0"
|
|
17
|
-
},
|
|
18
|
-
"_requiredBy": [
|
|
19
|
-
"/@parcel/watcher"
|
|
20
|
-
],
|
|
21
|
-
"_resolved": "https://mirrors.tencent.com/npm/node-addon-api/-/node-addon-api-8.7.0.tgz",
|
|
22
|
-
"_shasum": "f64f8413456ecbe900221305a3f883c37666473f",
|
|
23
|
-
"_spec": "node-addon-api@^8.6.0",
|
|
24
|
-
"_where": "/Volumes/data/workspace/parcel-watcher",
|
|
25
2
|
"bugs": {
|
|
26
3
|
"url": "https://github.com/nodejs/node-addon-api/issues"
|
|
27
4
|
},
|
|
28
|
-
"bundleDependencies": false,
|
|
29
5
|
"contributors": [
|
|
30
6
|
{
|
|
31
7
|
"name": "Abhishek Kumar Singh",
|
|
@@ -440,7 +416,6 @@
|
|
|
440
416
|
"url": "https://github.com/tuhalf"
|
|
441
417
|
}
|
|
442
418
|
],
|
|
443
|
-
"deprecated": false,
|
|
444
419
|
"description": "Node.js API (Node-API)",
|
|
445
420
|
"devDependencies": {
|
|
446
421
|
"benchmark": "^2.1.4",
|
|
@@ -453,14 +428,6 @@
|
|
|
453
428
|
"semver": "^7.6.0"
|
|
454
429
|
},
|
|
455
430
|
"directories": {},
|
|
456
|
-
"engines": {
|
|
457
|
-
"node": "^18 || ^20 || >= 21"
|
|
458
|
-
},
|
|
459
|
-
"files": [
|
|
460
|
-
"*.{c,h,gyp,gypi}",
|
|
461
|
-
"package-support.json",
|
|
462
|
-
"tools/"
|
|
463
|
-
],
|
|
464
431
|
"gypfile": false,
|
|
465
432
|
"homepage": "https://github.com/nodejs/node-addon-api",
|
|
466
433
|
"keywords": [
|
|
@@ -477,28 +444,37 @@
|
|
|
477
444
|
"license": "MIT",
|
|
478
445
|
"main": "index.js",
|
|
479
446
|
"name": "node-addon-api",
|
|
480
|
-
"
|
|
447
|
+
"readme": "README.md",
|
|
481
448
|
"repository": {
|
|
482
449
|
"type": "git",
|
|
483
450
|
"url": "git://github.com/nodejs/node-addon-api.git"
|
|
484
451
|
},
|
|
452
|
+
"files": [
|
|
453
|
+
"*.{c,h,gyp,gypi}",
|
|
454
|
+
"package-support.json",
|
|
455
|
+
"tools/"
|
|
456
|
+
],
|
|
485
457
|
"scripts": {
|
|
458
|
+
"prebenchmark": "node-gyp rebuild -C benchmark",
|
|
486
459
|
"benchmark": "node benchmark",
|
|
487
460
|
"create-coverage": "npm test --coverage",
|
|
461
|
+
"report-coverage-html": "rm -rf coverage-html && mkdir coverage-html && gcovr -e test --merge-mode-functions merge-use-line-max --html-nested ./coverage-html/index.html test",
|
|
462
|
+
"report-coverage-xml": "rm -rf coverage-xml && mkdir coverage-xml && gcovr -e test --merge-mode-functions merge-use-line-max --xml -o ./coverage-xml/coverage-cxx.xml test",
|
|
463
|
+
"pretest": "node-gyp rebuild -C test",
|
|
464
|
+
"test": "node test",
|
|
465
|
+
"test:debug": "node-gyp rebuild -C test --debug && NODE_API_BUILD_CONFIG=Debug node ./test/index.js",
|
|
466
|
+
"predev": "node-gyp rebuild -C test --debug",
|
|
488
467
|
"dev": "node test",
|
|
468
|
+
"predev:incremental": "node-gyp configure build -C test --debug",
|
|
489
469
|
"dev:incremental": "node test",
|
|
490
470
|
"doc": "doxygen doc/Doxyfile",
|
|
491
471
|
"lint": "eslint && node tools/clang-format",
|
|
492
|
-
"lint:fix": "eslint --fix && node tools/clang-format --fix"
|
|
493
|
-
"prebenchmark": "node-gyp rebuild -C benchmark",
|
|
494
|
-
"predev": "node-gyp rebuild -C test --debug",
|
|
495
|
-
"predev:incremental": "node-gyp configure build -C test --debug",
|
|
496
|
-
"pretest": "node-gyp rebuild -C test",
|
|
497
|
-
"report-coverage-html": "rm -rf coverage-html && mkdir coverage-html && gcovr -e test --merge-mode-functions merge-use-line-max --html-nested ./coverage-html/index.html test",
|
|
498
|
-
"report-coverage-xml": "rm -rf coverage-xml && mkdir coverage-xml && gcovr -e test --merge-mode-functions merge-use-line-max --xml -o ./coverage-xml/coverage-cxx.xml test",
|
|
499
|
-
"test": "node test",
|
|
500
|
-
"test:debug": "node-gyp rebuild -C test --debug && NODE_API_BUILD_CONFIG=Debug node ./test/index.js"
|
|
472
|
+
"lint:fix": "eslint --fix && node tools/clang-format --fix"
|
|
501
473
|
},
|
|
474
|
+
"pre-commit": "lint",
|
|
475
|
+
"version": "8.6.0",
|
|
502
476
|
"support": true,
|
|
503
|
-
"
|
|
477
|
+
"engines": {
|
|
478
|
+
"node": "^18 || ^20 || >= 21"
|
|
479
|
+
}
|
|
504
480
|
}
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|