@dxos/node-std 0.8.4-main.84f28bd → 0.8.4-main.8baae0fced
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/LICENSE +102 -5
- package/README.md +1 -1
- package/dist/lib/browser/assert.mjs +10 -10
- package/dist/lib/browser/assert.mjs.map +1 -1
- package/dist/lib/browser/buffer.mjs +1 -1
- package/dist/lib/browser/{chunk-LJ5EWKWX.mjs → chunk-2OGZPQMO.mjs} +3 -3
- package/dist/lib/browser/{chunk-YERYCS33.mjs → chunk-DDIIPJLY.mjs} +3 -3
- package/dist/lib/browser/{chunk-YERYCS33.mjs.map → chunk-DDIIPJLY.mjs.map} +1 -1
- package/dist/lib/browser/{chunk-WIBV42KC.mjs → chunk-DWW7BHK2.mjs} +407 -141
- package/dist/lib/browser/chunk-DWW7BHK2.mjs.map +7 -0
- package/dist/lib/browser/{chunk-WA6DPORN.mjs → chunk-QN6WLX5Z.mjs} +1 -1
- package/dist/lib/browser/globals.mjs +3 -3
- package/dist/lib/browser/inject-globals.mjs +2 -2
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/process.mjs +8 -0
- package/dist/lib/browser/util.mjs +11 -5
- package/dist/lib/browser/util.mjs.map +2 -2
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +57 -22
- package/src/node/assert.js +6 -0
- package/src/node/buffer.js +6 -0
- package/src/node/crypto.js +6 -0
- package/src/node/events.js +6 -0
- package/src/node/fs/promises.js +5 -0
- package/src/node/fs.js +6 -0
- package/src/node/globals.js +5 -0
- package/src/node/inject-globals.js +13 -0
- package/src/node/path.js +6 -0
- package/src/node/process.js +7 -0
- package/src/node/stream.js +6 -0
- package/src/node/util.js +6 -0
- package/dist/lib/browser/chunk-WIBV42KC.mjs.map +0 -7
- package/dist/lib/node-esm/_/config.mjs +0 -22
- package/dist/lib/node-esm/_/config.mjs.map +0 -7
- package/dist/lib/node-esm/assert.mjs +0 -10
- package/dist/lib/node-esm/assert.mjs.map +0 -7
- package/dist/lib/node-esm/buffer.mjs +0 -15
- package/dist/lib/node-esm/buffer.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-3EE3KRAW.mjs +0 -113
- package/dist/lib/node-esm/chunk-3EE3KRAW.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-F5GZS76O.mjs +0 -1798
- package/dist/lib/node-esm/chunk-F5GZS76O.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-RJ7I7ZC3.mjs +0 -30
- package/dist/lib/node-esm/chunk-RJ7I7ZC3.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-RZY7P3LC.mjs +0 -39
- package/dist/lib/node-esm/crypto.mjs +0 -11
- package/dist/lib/node-esm/crypto.mjs.map +0 -7
- package/dist/lib/node-esm/events.mjs +0 -11
- package/dist/lib/node-esm/events.mjs.map +0 -7
- package/dist/lib/node-esm/fs/promises.mjs +0 -70
- package/dist/lib/node-esm/fs/promises.mjs.map +0 -7
- package/dist/lib/node-esm/fs.mjs +0 -28
- package/dist/lib/node-esm/fs.mjs.map +0 -7
- package/dist/lib/node-esm/globals.mjs +0 -6
- package/dist/lib/node-esm/globals.mjs.map +0 -7
- package/dist/lib/node-esm/inject-globals.mjs +0 -21
- package/dist/lib/node-esm/inject-globals.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/path.mjs +0 -441
- package/dist/lib/node-esm/path.mjs.map +0 -7
- package/dist/lib/node-esm/stream.mjs +0 -15
- package/dist/lib/node-esm/stream.mjs.map +0 -7
- package/dist/lib/node-esm/util.mjs +0 -2026
- package/dist/lib/node-esm/util.mjs.map +0 -7
- /package/dist/lib/browser/{chunk-LJ5EWKWX.mjs.map → chunk-2OGZPQMO.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-WA6DPORN.mjs.map → chunk-QN6WLX5Z.mjs.map} +0 -0
- /package/dist/lib/{node-esm/chunk-RZY7P3LC.mjs.map → browser/process.mjs.map} +0 -0
package/LICENSE
CHANGED
|
@@ -1,8 +1,105 @@
|
|
|
1
|
-
|
|
2
|
-
Copyright (c) 2022 DXOS
|
|
1
|
+
# Functional Source License, Version 1.1, ALv2 Future License
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
## Abbreviation
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
FSL-1.1-Apache-2.0
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2026 DXOS
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The "Software" is each version of the software that we make available under
|
|
20
|
+
these Terms and Conditions, as indicated by our inclusion of these Terms and
|
|
21
|
+
Conditions with the Software.
|
|
22
|
+
|
|
23
|
+
### License Grant
|
|
24
|
+
|
|
25
|
+
Subject to your compliance with this License Grant and the Patents,
|
|
26
|
+
Redistribution and Trademark clauses below, we hereby grant you the right to
|
|
27
|
+
use, copy, modify, create derivative works, publicly perform, publicly display
|
|
28
|
+
and redistribute the Software for any Permitted Purpose identified below.
|
|
29
|
+
|
|
30
|
+
### Permitted Purpose
|
|
31
|
+
|
|
32
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
|
|
33
|
+
means making the Software available to others in a commercial product or
|
|
34
|
+
service that:
|
|
35
|
+
|
|
36
|
+
1. substitutes for the Software;
|
|
37
|
+
|
|
38
|
+
2. substitutes for any other product or service we offer using the Software
|
|
39
|
+
that exists as of the date we make the Software available; or
|
|
40
|
+
|
|
41
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
42
|
+
|
|
43
|
+
Permitted Purposes specifically include using the Software:
|
|
44
|
+
|
|
45
|
+
1. for your internal use and access;
|
|
46
|
+
|
|
47
|
+
2. for non-commercial education;
|
|
48
|
+
|
|
49
|
+
3. for non-commercial research; and
|
|
50
|
+
|
|
51
|
+
4. in connection with professional services that you provide to a licensee
|
|
52
|
+
using the Software in accordance with these Terms and Conditions.
|
|
53
|
+
|
|
54
|
+
### Patents
|
|
55
|
+
|
|
56
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our
|
|
57
|
+
patents, the license grant above includes a license under our patents. If you
|
|
58
|
+
make a claim against any party that the Software infringes or contributes to
|
|
59
|
+
the infringement of any patent, then your patent license to the Software ends
|
|
60
|
+
immediately.
|
|
61
|
+
|
|
62
|
+
### Redistribution
|
|
63
|
+
|
|
64
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of
|
|
65
|
+
the Software.
|
|
66
|
+
|
|
67
|
+
If you redistribute any copies, modifications or derivatives of the Software,
|
|
68
|
+
you must include a copy of or a link to these Terms and Conditions and not
|
|
69
|
+
remove any copyright notices provided in or with the Software.
|
|
70
|
+
|
|
71
|
+
### Disclaimer
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
|
|
74
|
+
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
|
|
75
|
+
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
76
|
+
|
|
77
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
|
|
78
|
+
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
|
|
79
|
+
EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
80
|
+
|
|
81
|
+
### Trademarks
|
|
82
|
+
|
|
83
|
+
Except for displaying the License Details and identifying us as the origin of
|
|
84
|
+
the Software, you have no right under these Terms and Conditions to use our
|
|
85
|
+
trademarks, trade names, service marks or product names.
|
|
86
|
+
|
|
87
|
+
## Grant of Future License
|
|
88
|
+
|
|
89
|
+
We hereby irrevocably grant you an additional license to use the Software under
|
|
90
|
+
the Apache License, Version 2.0 that is effective on the second anniversary of
|
|
91
|
+
the date we make the Software available. On or after that date, you may use the
|
|
92
|
+
Software under the Apache License, Version 2.0, in which case the following
|
|
93
|
+
will apply:
|
|
94
|
+
|
|
95
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
96
|
+
this file except in compliance with the License.
|
|
97
|
+
|
|
98
|
+
You may obtain a copy of the License at
|
|
99
|
+
|
|
100
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
101
|
+
|
|
102
|
+
Unless required by applicable law or agreed to in writing, software distributed
|
|
103
|
+
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
104
|
+
CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
105
|
+
specific language governing permissions and limitations under the License.
|
package/README.md
CHANGED
|
@@ -18,4 +18,4 @@ pnpm i @dxos/node-std
|
|
|
18
18
|
|
|
19
19
|
Your ideas, issues, and code are most welcome. Please take a look at our [community code of conduct](https://github.com/dxos/dxos/blob/main/CODE_OF_CONDUCT.md), the [issue guide](https://github.com/dxos/dxos/blob/main/CONTRIBUTING.md#submitting-issues), and the [PR contribution guide](https://github.com/dxos/dxos/blob/main/CONTRIBUTING.md#submitting-prs).
|
|
20
20
|
|
|
21
|
-
License: [
|
|
21
|
+
License: [FSL-1.1-Apache-2.0](./LICENSE) Copyright 2022 © DXOS
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
require_define_data_property,
|
|
4
4
|
require_has_property_descriptors,
|
|
5
5
|
require_util
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DWW7BHK2.mjs";
|
|
7
7
|
import {
|
|
8
8
|
__commonJS,
|
|
9
9
|
__toESM
|
|
@@ -76,7 +76,7 @@ var require_errors = __commonJS({
|
|
|
76
76
|
return message(arg1, arg2, arg3);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
var NodeError = /* @__PURE__ */ function(_Base) {
|
|
79
|
+
var NodeError = /* @__PURE__ */ (function(_Base) {
|
|
80
80
|
_inherits(NodeError2, _Base);
|
|
81
81
|
function NodeError2(arg1, arg2, arg3) {
|
|
82
82
|
var _this;
|
|
@@ -86,7 +86,7 @@ var require_errors = __commonJS({
|
|
|
86
86
|
return _this;
|
|
87
87
|
}
|
|
88
88
|
return NodeError2;
|
|
89
|
-
}(Base);
|
|
89
|
+
})(Base);
|
|
90
90
|
codes[code] = NodeError;
|
|
91
91
|
}
|
|
92
92
|
function oneOf(expected, thing) {
|
|
@@ -544,7 +544,7 @@ var require_assertion_error = __commonJS({
|
|
|
544
544
|
}
|
|
545
545
|
return "".concat(msg).concat(skipped ? skippedMsg : "", "\n").concat(res).concat(other).concat(end).concat(indicator);
|
|
546
546
|
}
|
|
547
|
-
var AssertionError = /* @__PURE__ */ function(_Error) {
|
|
547
|
+
var AssertionError = /* @__PURE__ */ (function(_Error) {
|
|
548
548
|
_inherits(AssertionError2, _Error);
|
|
549
549
|
function AssertionError2(options) {
|
|
550
550
|
var _this;
|
|
@@ -655,7 +655,7 @@ var require_assertion_error = __commonJS({
|
|
|
655
655
|
}
|
|
656
656
|
}]);
|
|
657
657
|
return AssertionError2;
|
|
658
|
-
}(_wrapNativeSuper(Error));
|
|
658
|
+
})(_wrapNativeSuper(Error));
|
|
659
659
|
module.exports = AssertionError;
|
|
660
660
|
}
|
|
661
661
|
});
|
|
@@ -769,7 +769,7 @@ var require_implementation = __commonJS({
|
|
|
769
769
|
$webkitStorageInfo: true,
|
|
770
770
|
$window: true
|
|
771
771
|
};
|
|
772
|
-
hasAutomationEqualityBug = function() {
|
|
772
|
+
hasAutomationEqualityBug = (function() {
|
|
773
773
|
if (typeof window === "undefined") {
|
|
774
774
|
return false;
|
|
775
775
|
}
|
|
@@ -787,7 +787,7 @@ var require_implementation = __commonJS({
|
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
789
|
return false;
|
|
790
|
-
}();
|
|
790
|
+
})();
|
|
791
791
|
equalsConstructorPrototypeIfNotBuggy = function(o) {
|
|
792
792
|
if (typeof window === "undefined" || !hasAutomationEqualityBug) {
|
|
793
793
|
return equalsConstructorPrototype(o);
|
|
@@ -863,10 +863,10 @@ var require_object_keys = __commonJS({
|
|
|
863
863
|
var originalKeys = Object.keys;
|
|
864
864
|
keysShim.shim = function shimObjectKeys() {
|
|
865
865
|
if (Object.keys) {
|
|
866
|
-
var keysWorksWithArguments = function() {
|
|
866
|
+
var keysWorksWithArguments = (function() {
|
|
867
867
|
var args = Object.keys(arguments);
|
|
868
868
|
return args && args.length === arguments.length;
|
|
869
|
-
}(1, 2);
|
|
869
|
+
})(1, 2);
|
|
870
870
|
if (!keysWorksWithArguments) {
|
|
871
871
|
Object.keys = function keys(object) {
|
|
872
872
|
if (isArgs(object)) {
|
|
@@ -889,7 +889,7 @@ var require_define_properties = __commonJS({
|
|
|
889
889
|
"../../../node_modules/.pnpm/define-properties@1.2.1/node_modules/define-properties/index.js"(exports, module) {
|
|
890
890
|
"use strict";
|
|
891
891
|
var keys = require_object_keys();
|
|
892
|
-
var hasSymbols = typeof Symbol === "function" && typeof Symbol("foo") === "symbol";
|
|
892
|
+
var hasSymbols = typeof Symbol === "function" && typeof /* @__PURE__ */ Symbol("foo") === "symbol";
|
|
893
893
|
var toStr = Object.prototype.toString;
|
|
894
894
|
var concat = Array.prototype.concat;
|
|
895
895
|
var defineDataProperty = require_define_data_property();
|