Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@atproto/common-web

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atproto/common-web - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

dist/did-doc.d.ts

6

CHANGELOG.md
# @atproto/common-web
## 0.2.2
### Patch Changes
- [`35d108ce`](https://github.com/bluesky-social/atproto/commit/35d108ce94866ce1b3d147cd0620a0ba1c4ebcd7) Thanks [@devinivy](https://github.com/devinivy)! - Allow pds to serve did doc with credentials, API client to respect PDS listed in the did doc.
## 0.2.1

@@ -4,0 +10,0 @@

1

dist/async.d.ts

@@ -25,1 +25,2 @@ export declare const readFromGenerator: <T>(gen: AsyncGenerator<T, any, unknown>, isDone: (last?: T | undefined) => Promise<boolean> | boolean, waitFor?: Promise<unknown>, maxLength?: number) => Promise<T[]>;

}
export declare const handleAllSettledErrors: (results: PromiseSettledResult<unknown>[]) => void;

@@ -11,1 +11,2 @@ export * as check from './check';

export * from './strings';
export * from './did-doc';

2

package.json
{
"name": "@atproto/common-web",
"version": "0.2.1",
"version": "0.2.2",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Shared web-platform-friendly code for atproto libraries",

@@ -127,1 +127,23 @@ import { bailableWait } from './util'

}
export const handleAllSettledErrors = (
results: PromiseSettledResult<unknown>[],
) => {
const errors = results.filter(isRejected).map((res) => res.reason)
if (errors.length === 0) {
return
}
if (errors.length === 1) {
throw errors[0]
}
throw new AggregateError(
errors,
'Multiple errors: ' + errors.map((err) => err?.message).join('\n'),
)
}
const isRejected = (
result: PromiseSettledResult<unknown>,
): result is PromiseRejectedResult => {
return result.status === 'rejected'
}

@@ -12,1 +12,2 @@ export * as check from './check'

export * from './strings'
export * from './did-doc'

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc