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

@atproto/common

Package Overview
Dependencies
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atproto/common - npm Package Compare versions

Comparing version 0.3.4 to 0.4.0

dist/buffers.d.ts.map

11

CHANGELOG.md
# @atproto/common
## 0.4.0
### Minor Changes
- [#2169](https://github.com/bluesky-social/atproto/pull/2169) [`f689bd51a`](https://github.com/bluesky-social/atproto/commit/f689bd51a2f4e02d4eca40eb2568a1fcb95494e9) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Build system rework, stop bundling dependencies.
### Patch Changes
- Updated dependencies [[`f689bd51a`](https://github.com/bluesky-social/atproto/commit/f689bd51a2f4e02d4eca40eb2568a1fcb95494e9)]:
- @atproto/common-web@0.3.0
## 0.3.4

@@ -4,0 +15,0 @@

1

dist/buffers.d.ts
/// <reference types="node" />
export declare function ui8ToBuffer(bytes: Uint8Array): Buffer;
export declare function ui8ToArrayBuffer(bytes: Uint8Array): ArrayBuffer;
//# sourceMappingURL=buffers.d.ts.map
export declare function toSimplifiedISOSafe(dateStr: string): string;
//# sourceMappingURL=dates.d.ts.map

@@ -5,1 +5,2 @@ export declare const envInt: (name: string) => number | undefined;

export declare const envList: (name: string) => string[];
//# sourceMappingURL=env.d.ts.map
export declare const fileExists: (location: string) => Promise<boolean>;
export declare const readIfExists: (filepath: string) => Promise<Uint8Array | undefined>;
export declare const rmIfExists: (filepath: string, recursive?: boolean) => Promise<void>;
//# sourceMappingURL=fs.d.ts.map

@@ -10,1 +10,2 @@ export * from '@atproto/common-web';

export * from './buffers';
//# sourceMappingURL=index.d.ts.map
export declare const cborDecodeMulti: (encoded: Uint8Array) => unknown[];
//# sourceMappingURL=ipld-multi.d.ts.map

@@ -30,1 +30,2 @@ /// <reference types="node" />

}
//# sourceMappingURL=ipld.d.ts.map
import pino from 'pino';
export declare const subsystemLogger: (name: string) => pino.Logger;
//# sourceMappingURL=logger.d.ts.map

3

dist/streams.d.ts

@@ -15,3 +15,4 @@ /// <reference types="node" />

constructor(maxSize: number, createError: () => Error);
_transform(chunk: Uint8Array, _enc: BufferEncoding, cb: TransformCallback): void | this;
_transform(chunk: Uint8Array, _enc: BufferEncoding, cb: TransformCallback): void;
}
//# sourceMappingURL=streams.d.ts.map

@@ -1,6 +0,6 @@

const base = require('../../jest.config.base.js')
/** @type {import('jest').Config} */
module.exports = {
...base,
displayName: 'Common',
transform: { '^.+\\.(t|j)s$': '@swc/jest' },
setupFiles: ['<rootDir>/../../jest.setup.ts'],
}
{
"name": "@atproto/common",
"version": "0.3.4",
"version": "0.4.0",
"license": "MIT",

@@ -16,2 +16,3 @@ "description": "Shared web-platform-friendly code for atproto libraries",

"main": "dist/index.js",
"types": "dist/index.d.ts",
"dependencies": {

@@ -23,12 +24,13 @@ "@ipld/dag-cbor": "^7.0.3",

"pino": "^8.15.0",
"zod": "3.21.4",
"@atproto/common-web": "^0.2.4"
"@atproto/common-web": "^0.3.0"
},
"devDependencies": {
"jest": "^28.1.2",
"typescript": "^5.3.3",
"uint8arrays": "3.0.0"
},
"scripts": {
"test": "jest",
"build": "node ./build.js",
"postbuild": "tsc --build tsconfig.build.json",
"update-main-to-dist": "node ../../update-main-to-dist.js packages/common"
},
"types": "dist/index.d.ts"
"build": "tsc --build tsconfig.build.json"
}
}

@@ -62,6 +62,7 @@ import {

if (this.totalSize > this.maxSize) {
return this.destroy(this.createError())
cb(this.createError())
} else {
cb(null, chunk)
}
return cb(null, chunk)
}
}
{
"extends": "./tsconfig.json",
"exclude": ["**/*.spec.ts", "**/*.test.ts"]
"extends": "../../tsconfig/node.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist"
},
"include": ["./src"]
}
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist", // Your outDir,
"emitDeclarationOnly": true
},
"include": ["./src", "__tests__/**/**.ts"],
"references": [{ "path": "../common-web/tsconfig.build.json" }]
"include": [],
"references": [
{ "path": "./tsconfig.build.json" },
{ "path": "./tsconfig.tests.json" }
]
}

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