Skip to content

Commit

Permalink
Provide /browser export to resolve Docusaurus issue
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Hinek <[email protected]>
  • Loading branch information
frankhinek committed May 18, 2023
1 parent db524af commit 9bc7bcd
Show file tree
Hide file tree
Showing 9 changed files with 189 additions and 218 deletions.
329 changes: 144 additions & 185 deletions README.md

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion packages/crypto/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tbd54566975/crypto",
"version": "0.1.1",
"version": "0.1.2",
"description": "TBD crypto library",
"type": "module",
"main": "./dist/cjs/main.cjs",
Expand Down Expand Up @@ -45,6 +45,11 @@
"require": "./dist/cjs/main.cjs",
"types": "./dist/types/main.d.ts"
},
"./browser": {
"import": "./dist/browser.mjs",
"require": "./dist/browser.js",
"types": "./dist/types/main.d.ts"
},
"./electron": {
"import": "./dist/esm/main.mjs",
"require": "./dist/electron/main.cjs",
Expand Down
9 changes: 7 additions & 2 deletions packages/dids/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tbd54566975/dids",
"version": "0.1.1",
"version": "0.1.2",
"description": "TBD DIDs library",
"type": "module",
"main": "./dist/cjs/main.cjs",
Expand Down Expand Up @@ -45,6 +45,11 @@
"require": "./dist/cjs/main.cjs",
"types": "./dist/types/main.d.ts"
},
"./browser": {
"import": "./dist/browser.mjs",
"require": "./dist/browser.js",
"types": "./dist/types/main.d.ts"
},
"./electron": {
"import": "./dist/esm/main.mjs",
"require": "./dist/electron/main.cjs",
Expand Down Expand Up @@ -74,7 +79,7 @@
},
"dependencies": {
"@decentralized-identity/ion-tools": "1.0.7",
"@tbd54566975/crypto": "0.1.1",
"@tbd54566975/crypto": "0.1.2",
"@tbd54566975/dwn-sdk-js": "0.0.32",
"cross-fetch": "3.1.5"
},
Expand Down
7 changes: 6 additions & 1 deletion packages/web5-agent/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tbd54566975/web5-agent",
"version": "0.1.1",
"version": "0.1.2",
"description": "Web5 Agent",
"type": "module",
"main": "./dist/cjs/main.cjs",
Expand Down Expand Up @@ -45,6 +45,11 @@
"require": "./dist/cjs/main.cjs",
"types": "./dist/types/main.d.ts"
},
"./browser": {
"import": "./dist/browser.mjs",
"require": "./dist/browser.js",
"types": "./dist/types/main.d.ts"
},
"./electron": {
"import": "./dist/esm/main.mjs",
"require": "./dist/electron/main.cjs",
Expand Down
9 changes: 7 additions & 2 deletions packages/web5-proxy-agent/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tbd54566975/web5-proxy-agent",
"version": "0.1.1",
"version": "0.1.2",
"description": "Web5 Proxy Agent",
"type": "module",
"main": "./dist/cjs/main.cjs",
Expand Down Expand Up @@ -45,6 +45,11 @@
"require": "./dist/cjs/main.cjs",
"types": "./dist/types/main.d.ts"
},
"./browser": {
"import": "./dist/browser.mjs",
"require": "./dist/browser.js",
"types": "./dist/types/main.d.ts"
},
"./electron": {
"import": "./dist/esm/main.mjs",
"require": "./dist/electron/main.cjs",
Expand All @@ -70,7 +75,7 @@
"node": ">=18.0.0"
},
"dependencies": {
"@tbd54566975/web5-agent": "0.1.1"
"@tbd54566975/web5-agent": "0.1.2"
},
"devDependencies": {
"@types/chai": "4.3.0",
Expand Down
9 changes: 7 additions & 2 deletions packages/web5-user-agent/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tbd54566975/web5-user-agent",
"version": "0.1.1",
"version": "0.1.2",
"description": "Web5 User Agent",
"type": "module",
"main": "./dist/cjs/main.cjs",
Expand Down Expand Up @@ -45,6 +45,11 @@
"require": "./dist/cjs/main.cjs",
"types": "./dist/types/main.d.ts"
},
"./browser": {
"import": "./dist/browser.mjs",
"require": "./dist/browser.js",
"types": "./dist/types/main.d.ts"
},
"./electron": {
"import": "./dist/esm/main.mjs",
"require": "./dist/electron/main.cjs",
Expand All @@ -71,7 +76,7 @@
},
"dependencies": {
"@decentralized-identity/ion-tools": "1.0.7",
"@tbd54566975/dids": "0.1.1",
"@tbd54566975/dids": "0.1.2",
"@tbd54566975/dwn-sdk-js": "0.0.32",
"abstract-level": "1.0.3",
"cross-fetch": "3.1.5",
Expand Down
17 changes: 11 additions & 6 deletions packages/web5/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tbd54566975/web5",
"version": "0.7.1",
"version": "0.7.2",
"description": "SDK for accessing the features and capabilities of Web5",
"type": "module",
"main": "./dist/cjs/main.cjs",
Expand Down Expand Up @@ -45,6 +45,11 @@
"require": "./dist/cjs/main.cjs",
"types": "./dist/types/main.d.ts"
},
"./browser": {
"import": "./dist/browser.mjs",
"require": "./dist/browser.js",
"types": "./dist/types/main.d.ts"
},
"./electron": {
"import": "./dist/esm/main.mjs",
"require": "./dist/electron/main.cjs",
Expand Down Expand Up @@ -75,12 +80,12 @@
},
"dependencies": {
"@decentralized-identity/ion-tools": "1.0.7",
"@tbd54566975/crypto": "0.1.1",
"@tbd54566975/dids": "0.1.1",
"@tbd54566975/crypto": "0.1.2",
"@tbd54566975/dids": "0.1.2",
"@tbd54566975/dwn-sdk-js": "0.0.32",
"@tbd54566975/web5-agent": "0.1.1",
"@tbd54566975/web5-proxy-agent": "0.1.1",
"@tbd54566975/web5-user-agent": "0.1.1",
"@tbd54566975/web5-agent": "0.1.2",
"@tbd54566975/web5-proxy-agent": "0.1.2",
"@tbd54566975/web5-user-agent": "0.1.2",
"cross-fetch": "3.1.5",
"level": "8.0.0",
"ms": "2.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/web5/src/record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { RecordsReadReply, RecordsWriteDescriptor, RecordsWriteMessage, Rec
import { ReadableWebToNodeStream } from 'readable-web-to-node-stream';
import { DataStream, DwnInterfaceName, DwnMethodName, Encoder } from '@tbd54566975/dwn-sdk-js';

import { dataToBlob, isDataSizeUnderCacheLimit } from './utils.js';
import { dataToBlob } from './utils.js';
import type { RecordsDeleteResponse } from './dwn-api.js';

export type RecordOptions = RecordsWriteMessage & {
Expand Down
18 changes: 0 additions & 18 deletions test.mjs

This file was deleted.

0 comments on commit 9bc7bcd

Please sign in to comment.