generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into tshamilov/ci-speed
- Loading branch information
Showing
34 changed files
with
4,403 additions
and
15,209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Security Scanning | ||
|
||
on: | ||
pull_request_target: | ||
branches: | ||
- main | ||
|
||
push: | ||
branches: | ||
- main | ||
|
||
# Run every day at 5am UTC | ||
schedule: | ||
- cron: "0 5 * * *" | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
snyk: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Install Snyk | ||
uses: snyk/actions/setup@master | ||
|
||
- name: Snyk VULN and License Check Test | ||
run: snyk test --all-projects --sarif-file-output=snyk.sarif | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
|
||
- name: Upload SARIF result to GitHub Code Scanning | ||
uses: github/codeql-action/upload-sarif@v2 | ||
if: always() | ||
with: | ||
sarif_file: snyk.sarif | ||
|
||
fossa: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Run FOSSA Scan | ||
uses: fossas/fossa-action@main | ||
with: | ||
api-key: ${{ secrets.FOSSA_API_KEY }} | ||
|
||
- name: Run FOSSA Test | ||
uses: fossas/fossa-action@main | ||
with: | ||
api-key: ${{ secrets.FOSSA_API_KEY }} | ||
run-tests: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,11 +59,11 @@ npm install @web5/api | |
_CDNs_ | ||
|
||
```yaml | ||
https://unpkg.com/@web5/[email protected].2/dist/browser.js | ||
https://unpkg.com/@web5/[email protected].3/dist/browser.js | ||
``` | ||
|
||
```yaml | ||
https://cdn.jsdelivr.net/npm/@web5/[email protected].2/dist/browser.mjs | ||
https://cdn.jsdelivr.net/npm/@web5/[email protected].3/dist/browser.mjs | ||
``` | ||
|
||
## Usage | ||
|
@@ -170,12 +170,13 @@ Each `Record` instance has the following instance properties: `id`, `attestation | |
Each `Record` instance has the following instance methods: | ||
|
||
- **`data`** - _`object`_: an object with the following convenience methods that read out the data of the record entry in the following formats: | ||
- **`text`** - _`function`_: produces a textual representation of the data. | ||
- **`json`** - _`function`_: if the value is JSON data, this method will return a parsed JSON object. | ||
- **`stream`** - _`function`_: returns the raw stream of bytes for the data. | ||
- **`blob`** - _`function`_: returns the data as a [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob). | ||
- **`bytes`** - _`function`_: returns the data as a raw byte array in `Uint8Array` format. | ||
- **`json`** - _`function`_: returns a parsed JSON object. | ||
- **`stream`** - _`function`_: returns the data as a raw stream of bytes. | ||
- **`text`** - _`function`_: returns the data as a string. | ||
- **`send`** - _`function`_: sends the record the instance represents to the DWeb Node endpoints of a provided DID. | ||
- **`update`** - _`function`_: takes in a new request object matching the expected method signature of a `write` and overwrites the record. This is a convenience method that allows you to easily overwrite records with less verbosity. | ||
- **`delete`** - _`function`_: generates a `delete` entry tombstone for the record. This is a convenience method that allows you to easily delete records with less verbosity. | ||
|
||
### **`web5.dwn.records.query(request)`** | ||
|
||
|
Oops, something went wrong.