@dxos/vendor-hypercore 0.8.4-main.ef1bc66f44 → 0.8.4-main.effb148878

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 CHANGED
@@ -1,8 +1,105 @@
1
- MIT License
2
- Copyright (c) 2022 DXOS
1
+ # Functional Source License, Version 1.1, ALv2 Future License
3
2
 
4
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3
+ ## Abbreviation
5
4
 
6
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
5
+ FSL-1.1-Apache-2.0
7
6
 
8
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/hypercore-crypto.js"],
4
- "sourcesContent": ["export { keyPair, validateKeyPair, sign, verify, randomBytes, discoveryKey, default } from 'hypercore-crypto';\n"],
5
- "mappings": ";;;;;;;AAAA,8BAA2F;",
4
+ "sourcesContent": ["//\n// Copyright 2026 DXOS.org\n//\n\nexport { keyPair, validateKeyPair, sign, verify, randomBytes, discoveryKey, default } from 'hypercore-crypto';\n"],
5
+ "mappings": ";;;;;;;AAIA,8BAA2F;",
6
6
  "names": []
7
7
  }
@@ -2012,7 +2012,7 @@ var require_storage = __commonJS({
2012
2012
  // ../../node_modules/.pnpm/inspect-custom-symbol@1.1.1/node_modules/inspect-custom-symbol/browser.js
2013
2013
  var require_browser2 = __commonJS({
2014
2014
  "../../node_modules/.pnpm/inspect-custom-symbol@1.1.1/node_modules/inspect-custom-symbol/browser.js"(exports, module) {
2015
- module.exports = Symbol.for("nodejs.util.inspect.custom");
2015
+ module.exports = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
2016
2016
  }
2017
2017
  });
2018
2018
 
@@ -2791,14 +2791,14 @@ var require_handshake_state = __commonJS({
2791
2791
  this.re = null;
2792
2792
  this.messagePatterns = null;
2793
2793
  }
2794
- var INITIATOR = Symbol("initiator");
2795
- var RESPONDER = Symbol("responder");
2796
- var TOK_S = Symbol("s");
2797
- var TOK_E = Symbol("e");
2798
- var TOK_ES = Symbol("es");
2799
- var TOK_SE = Symbol("se");
2800
- var TOK_EE = Symbol("ee");
2801
- var TOK_SS = Symbol("es");
2794
+ var INITIATOR = /* @__PURE__ */ Symbol("initiator");
2795
+ var RESPONDER = /* @__PURE__ */ Symbol("responder");
2796
+ var TOK_S = /* @__PURE__ */ Symbol("s");
2797
+ var TOK_E = /* @__PURE__ */ Symbol("e");
2798
+ var TOK_ES = /* @__PURE__ */ Symbol("es");
2799
+ var TOK_SE = /* @__PURE__ */ Symbol("se");
2800
+ var TOK_EE = /* @__PURE__ */ Symbol("ee");
2801
+ var TOK_SS = /* @__PURE__ */ Symbol("es");
2802
2802
  var PATTERNS = Object.freeze({
2803
2803
  N: {
2804
2804
  premessages: [
@@ -5746,7 +5746,7 @@ var require_streamx = __commonJS({
5746
5746
  var WRITE_FINISHING_STATUS = OPEN_STATUS | WRITE_FINISHING | WRITE_QUEUED_AND_ACTIVE | WRITE_DONE;
5747
5747
  var WRITE_BACKPRESSURE_STATUS = WRITE_UNDRAINED | DESTROY_STATUS | WRITE_FINISHING | WRITE_DONE;
5748
5748
  var WRITE_UPDATE_SYNC_STATUS = WRITE_UPDATING | OPEN_STATUS | WRITE_NEXT_TICK | WRITE_PRIMARY;
5749
- var asyncIterator = Symbol.asyncIterator || Symbol("asyncIterator");
5749
+ var asyncIterator = Symbol.asyncIterator || /* @__PURE__ */ Symbol("asyncIterator");
5750
5750
  var WritableState = class {
5751
5751
  constructor(stream, { highWaterMark = 16384, map = null, mapWritable, byteLength, byteLengthWritable } = {}) {
5752
5752
  this.stream = stream;
@@ -6667,9 +6667,9 @@ var require_ms = __commonJS({
6667
6667
  }
6668
6668
  });
6669
6669
 
6670
- // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js
6670
+ // ../../node_modules/.pnpm/debug@4.4.3_supports-color@5.5.0/node_modules/debug/src/common.js
6671
6671
  var require_common = __commonJS({
6672
- "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js"(exports, module) {
6672
+ "../../node_modules/.pnpm/debug@4.4.3_supports-color@5.5.0/node_modules/debug/src/common.js"(exports, module) {
6673
6673
  function setup(env) {
6674
6674
  createDebug.debug = createDebug;
6675
6675
  createDebug.default = createDebug;
@@ -6844,9 +6844,9 @@ var require_common = __commonJS({
6844
6844
  }
6845
6845
  });
6846
6846
 
6847
- // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js
6847
+ // ../../node_modules/.pnpm/debug@4.4.3_supports-color@5.5.0/node_modules/debug/src/browser.js
6848
6848
  var require_browser5 = __commonJS({
6849
- "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js"(exports, module) {
6849
+ "../../node_modules/.pnpm/debug@4.4.3_supports-color@5.5.0/node_modules/debug/src/browser.js"(exports, module) {
6850
6850
  exports.formatArgs = formatArgs;
6851
6851
  exports.save = save;
6852
6852
  exports.load = load;
@@ -8484,11 +8484,11 @@ var require_emitter = __commonJS({
8484
8484
  "../../node_modules/.pnpm/nanoresource@1.3.0/node_modules/nanoresource/emitter.js"(exports, module) {
8485
8485
  var events = import$d$_dxos_node_std_events;
8486
8486
  var inherits = require_inherits_browser();
8487
- var opening = Symbol("opening queue");
8488
- var preclosing = Symbol("closing when inactive");
8489
- var closing = Symbol("closing queue");
8490
- var sync = Symbol("sync");
8491
- var fastClose = Symbol("fast close");
8487
+ var opening = /* @__PURE__ */ Symbol("opening queue");
8488
+ var preclosing = /* @__PURE__ */ Symbol("closing when inactive");
8489
+ var closing = /* @__PURE__ */ Symbol("closing queue");
8490
+ var sync = /* @__PURE__ */ Symbol("sync");
8491
+ var fastClose = /* @__PURE__ */ Symbol("fast close");
8492
8492
  module.exports = Nanoresource;
8493
8493
  function Nanoresource(opts) {
8494
8494
  if (!(this instanceof Nanoresource)) return new Nanoresource(opts);
@@ -9683,7 +9683,7 @@ var require_hypercore = __commonJS({
9683
9683
  Feed.prototype.get = function(index, opts, cb) {
9684
9684
  if (typeof opts === "function") return this.get(index, null, opts);
9685
9685
  opts = { ...opts };
9686
- if (!opts.cancel) opts.cancel = Symbol("hypercore-get");
9686
+ if (!opts.cancel) opts.cancel = /* @__PURE__ */ Symbol("hypercore-get");
9687
9687
  if (!this.opened) return this._readyAndGet(index, opts, cb);
9688
9688
  if (!this.readable) {
9689
9689
  process.nextTick(cb, new Error("Feed is closed"));