@enbox/dwn-sdk-js 0.1.0 → 0.1.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.
- package/LICENSE +3 -2
- package/dist/browser.mjs +6 -6
- package/dist/browser.mjs.map +3 -3
- package/dist/esm/src/dwn.js +19 -5
- package/dist/esm/src/dwn.js.map +1 -1
- package/dist/esm/src/handlers/records-read.js +5 -1
- package/dist/esm/src/handlers/records-read.js.map +1 -1
- package/dist/esm/src/utils/protocols.js +2 -2
- package/dist/esm/src/utils/protocols.js.map +1 -1
- package/dist/esm/tests/fuzz/arbitraries/dwn-message.arbitrary.js +72 -0
- package/dist/esm/tests/fuzz/arbitraries/dwn-message.arbitrary.js.map +1 -0
- package/dist/esm/tests/fuzz/arbitraries/filter.arbitrary.js +53 -0
- package/dist/esm/tests/fuzz/arbitraries/filter.arbitrary.js.map +1 -0
- package/dist/esm/tests/fuzz/arbitraries/jws.arbitrary.js +55 -0
- package/dist/esm/tests/fuzz/arbitraries/jws.arbitrary.js.map +1 -0
- package/dist/esm/tests/fuzz/arbitraries/protocol-definition.arbitrary.js +106 -0
- package/dist/esm/tests/fuzz/arbitraries/protocol-definition.arbitrary.js.map +1 -0
- package/dist/esm/tests/fuzz/arbitraries/store.arbitrary.js +139 -0
- package/dist/esm/tests/fuzz/arbitraries/store.arbitrary.js.map +1 -0
- package/dist/esm/tests/fuzz/cid.fuzz.spec.js +74 -0
- package/dist/esm/tests/fuzz/cid.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/compound-index.fuzz.spec.js +203 -0
- package/dist/esm/tests/fuzz/compound-index.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/data-store.fuzz.spec.js +146 -0
- package/dist/esm/tests/fuzz/data-store.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/data-stream.fuzz.spec.js +44 -0
- package/dist/esm/tests/fuzz/data-stream.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/encoder.fuzz.spec.js +76 -0
- package/dist/esm/tests/fuzz/encoder.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/encryption.fuzz.spec.js +132 -0
- package/dist/esm/tests/fuzz/encryption.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/filter.fuzz.spec.js +149 -0
- package/dist/esm/tests/fuzz/filter.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/get-rule-set-at-path.fuzz.spec.js +82 -0
- package/dist/esm/tests/fuzz/get-rule-set-at-path.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/hd-key.fuzz.spec.js +77 -0
- package/dist/esm/tests/fuzz/hd-key.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/immutable-properties.fuzz.spec.js +86 -0
- package/dist/esm/tests/fuzz/immutable-properties.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/index-level.fuzz.spec.js +195 -0
- package/dist/esm/tests/fuzz/index-level.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/jws.fuzz.spec.js +100 -0
- package/dist/esm/tests/fuzz/jws.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/message-store.fuzz.spec.js +154 -0
- package/dist/esm/tests/fuzz/message-store.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/object.fuzz.spec.js +82 -0
- package/dist/esm/tests/fuzz/object.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/process-message.fuzz.spec.js +85 -0
- package/dist/esm/tests/fuzz/process-message.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/protocol-definition.fuzz.spec.js +145 -0
- package/dist/esm/tests/fuzz/protocol-definition.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/protocol-validation.fuzz.spec.js +146 -0
- package/dist/esm/tests/fuzz/protocol-validation.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/protocols-utils.fuzz.spec.js +41 -0
- package/dist/esm/tests/fuzz/protocols-utils.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/records-utils.fuzz.spec.js +81 -0
- package/dist/esm/tests/fuzz/records-utils.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/resumable-task-store.fuzz.spec.js +106 -0
- package/dist/esm/tests/fuzz/resumable-task-store.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/schema-validation.fuzz.spec.js +126 -0
- package/dist/esm/tests/fuzz/schema-validation.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/secp256k1.fuzz.spec.js +74 -0
- package/dist/esm/tests/fuzz/secp256k1.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/secp256r1.fuzz.spec.js +60 -0
- package/dist/esm/tests/fuzz/secp256r1.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/time.fuzz.spec.js +82 -0
- package/dist/esm/tests/fuzz/time.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/fuzz/url.fuzz.spec.js +118 -0
- package/dist/esm/tests/fuzz/url.fuzz.spec.js.map +1 -0
- package/dist/esm/tests/handlers/records-read.spec.js +6 -2
- package/dist/esm/tests/handlers/records-read.spec.js.map +1 -1
- package/dist/types/src/dwn.d.ts +9 -0
- package/dist/types/src/dwn.d.ts.map +1 -1
- package/dist/types/src/handlers/records-read.d.ts.map +1 -1
- package/dist/types/tests/fuzz/arbitraries/dwn-message.arbitrary.d.ts +31 -0
- package/dist/types/tests/fuzz/arbitraries/dwn-message.arbitrary.d.ts.map +1 -0
- package/dist/types/tests/fuzz/arbitraries/filter.arbitrary.d.ts +27 -0
- package/dist/types/tests/fuzz/arbitraries/filter.arbitrary.d.ts.map +1 -0
- package/dist/types/tests/fuzz/arbitraries/jws.arbitrary.d.ts +26 -0
- package/dist/types/tests/fuzz/arbitraries/jws.arbitrary.d.ts.map +1 -0
- package/dist/types/tests/fuzz/arbitraries/protocol-definition.arbitrary.d.ts +31 -0
- package/dist/types/tests/fuzz/arbitraries/protocol-definition.arbitrary.d.ts.map +1 -0
- package/dist/types/tests/fuzz/arbitraries/store.arbitrary.d.ts +71 -0
- package/dist/types/tests/fuzz/arbitraries/store.arbitrary.d.ts.map +1 -0
- package/dist/types/tests/fuzz/cid.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/cid.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/compound-index.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/compound-index.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/data-store.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/data-store.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/data-stream.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/data-stream.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/encoder.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/encoder.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/encryption.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/encryption.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/filter.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/filter.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/get-rule-set-at-path.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/get-rule-set-at-path.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/hd-key.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/hd-key.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/immutable-properties.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/immutable-properties.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/index-level.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/index-level.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/jws.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/jws.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/message-store.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/message-store.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/object.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/object.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/process-message.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/process-message.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/protocol-definition.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/protocol-definition.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/protocol-validation.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/protocol-validation.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/protocols-utils.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/protocols-utils.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/records-utils.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/records-utils.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/resumable-task-store.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/resumable-task-store.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/schema-validation.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/schema-validation.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/secp256k1.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/secp256k1.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/secp256r1.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/secp256r1.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/time.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/time.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/fuzz/url.fuzz.spec.d.ts +2 -0
- package/dist/types/tests/fuzz/url.fuzz.spec.d.ts.map +1 -0
- package/dist/types/tests/handlers/records-read.spec.d.ts.map +1 -1
- package/package.json +8 -5
- package/src/dwn.ts +30 -5
- package/src/handlers/records-read.ts +5 -1
- package/src/utils/protocols.ts +2 -2
package/LICENSE
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
Apache License
|
|
2
3
|
Version 2.0, January 2004
|
|
3
4
|
http://www.apache.org/licenses/
|
|
@@ -186,7 +187,7 @@
|
|
|
186
187
|
same "printed page" as the copyright notice for easier
|
|
187
188
|
identification within third-party archives.
|
|
188
189
|
|
|
189
|
-
Copyright
|
|
190
|
+
Copyright 2025 Liran Cohen
|
|
190
191
|
|
|
191
192
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
193
|
you may not use this file except in compliance with the License.
|
|
@@ -198,4 +199,4 @@
|
|
|
198
199
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
200
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
201
|
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|
|
202
|
+
limitations under the License.
|