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

@transcend-io/penumbra

Package Overview
Dependencies
Maintainers
9
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@transcend-io/penumbra - npm Package Compare versions

Comparing version 4.7.5 to 4.7.6

130

build/index.d.ts
/// <reference types="node" />
declare module "src/error" {
declare module "error" {
/** Penumbra error class */

@@ -13,3 +13,3 @@ export class PenumbraError extends Error {

}
declare module "src/types" {
declare module "types" {
/**

@@ -23,4 +23,4 @@ *

*/
import penumbra from "src/API";
import { PenumbraError } from "src/error";
import penumbra from "API";
import { PenumbraError } from "error";
/**

@@ -278,4 +278,4 @@ * Make selected object keys defined by K optional in type T

}
declare module "src/utils/emitProgress" {
import { PenumbraEventType } from "src/types";
declare module "utils/emitProgress" {
import { PenumbraEventType } from "types";
/**

@@ -290,3 +290,3 @@ * An event emitter for the decryption progress

}
declare module "src/utils/getKeys" {
declare module "utils/getKeys" {
/**

@@ -320,3 +320,3 @@ * An object keyed by strings

}
declare module "src/utils/getOrigins" {
declare module "utils/getOrigins" {
/**

@@ -341,3 +341,3 @@ * Gets the origin from a URL

}
declare module "src/utils/getMediaSrcFromRS" {
declare module "utils/getMediaSrcFromRS" {
/**

@@ -351,3 +351,3 @@ * Returns an object URL to display media directly on a webpage

}
declare module "src/utils/getTextFromRS" {
declare module "utils/getTextFromRS" {
/**

@@ -361,3 +361,3 @@ * Reads a stream to completion and returns the underlying text

}
declare module "src/utils/toBuff" {
declare module "utils/toBuff" {
const _default: (i: string | Buffer) => Buffer;

@@ -372,3 +372,3 @@ /**

}
declare module "src/utils/blobCache" {
declare module "utils/blobCache" {
/** Blob cache manager */

@@ -387,3 +387,3 @@ export type BlobCacheManager = {

}
declare module "src/utils/isViewableText" {
declare module "utils/isViewableText" {
/**

@@ -396,3 +396,3 @@ * Determine if the file mimetype is known for displaying

}
declare module "src/utils/intoStreamOnlyOnce" {
declare module "utils/intoStreamOnlyOnce" {
/** Converts arrays into streams and passes */

@@ -402,3 +402,3 @@ const intoStreamOnlyOnce: (input: any) => any;

}
declare module "src/utils/index" {
declare module "utils/index" {
/**

@@ -413,14 +413,14 @@ *

import 'regenerator-runtime/runtime';
export { default as emitProgress } from "src/utils/emitProgress";
export { default as getKeys } from "src/utils/getKeys";
export { default as getOrigins } from "src/utils/getOrigins";
export { default as getMediaSrcFromRS } from "src/utils/getMediaSrcFromRS";
export { default as getTextFromRS } from "src/utils/getTextFromRS";
export { default as toBuff } from "src/utils/toBuff";
export { default as blobCache } from "src/utils/blobCache";
export { default as isViewableText } from "src/utils/isViewableText";
export { default as intoStreamOnlyOnce } from "src/utils/intoStreamOnlyOnce";
export { default as emitProgress } from "utils/emitProgress";
export { default as getKeys } from "utils/getKeys";
export { default as getOrigins } from "utils/getOrigins";
export { default as getMediaSrcFromRS } from "utils/getMediaSrcFromRS";
export { default as getTextFromRS } from "utils/getTextFromRS";
export { default as toBuff } from "utils/toBuff";
export { default as blobCache } from "utils/blobCache";
export { default as isViewableText } from "utils/isViewableText";
export { default as intoStreamOnlyOnce } from "utils/intoStreamOnlyOnce";
}
declare module "src/workers" {
import { PenumbraWorker, WorkerLocation, WorkerLocationOptions } from "src/types";
declare module "workers" {
import { PenumbraWorker, WorkerLocation, WorkerLocationOptions } from "types";
/**

@@ -462,5 +462,5 @@ * Gets worker location configuration

}
declare module "src/decrypt" {
declare module "decrypt" {
import { DecipherGCM } from 'crypto';
import { PenumbraDecryptionInfo, PenumbraEncryptedFile, PenumbraFile } from "src/types";
import { PenumbraDecryptionInfo, PenumbraEncryptedFile, PenumbraFile } from "types";
/**

@@ -484,4 +484,4 @@ * Decrypts a readable stream

}
declare module "src/utils/emitError" {
import { PenumbraError } from "src/error";
declare module "utils/emitError" {
import { PenumbraError } from "error";
/**

@@ -496,4 +496,4 @@ * An event emitter for errors and exceptions

}
declare module "src/fetchAndDecrypt" {
import { RemoteResourceWithoutFile } from "src/types";
declare module "fetchAndDecrypt" {
import { RemoteResourceWithoutFile } from "types";
/**

@@ -508,4 +508,4 @@ * Fetches a remote file from a URL, deciphers it (if encrypted), and returns a ReadableStream

}
declare module "src/utils/emitEncryptionCompletion" {
import { PenumbraDecryptionInfo } from "src/types";
declare module "utils/emitEncryptionCompletion" {
import { PenumbraDecryptionInfo } from "types";
/**

@@ -520,6 +520,6 @@ * An event emitter for the decryption progress

}
declare module "src/encrypt" {
declare module "encrypt" {
import { CipherGCM } from 'crypto';
import { Readable } from 'stream';
import { PenumbraEncryptedFile, PenumbraEncryptionOptions, PenumbraFileWithID } from "src/types";
import { PenumbraEncryptedFile, PenumbraEncryptionOptions, PenumbraFileWithID } from "types";
/**

@@ -545,5 +545,5 @@ * Encrypts a readable stream

}
declare module "src/API" {
import { PenumbraDecryptionInfo, PenumbraEncryptedFile, PenumbraEncryptionOptions, PenumbraFile, PenumbraTextOrURI, RemoteResource } from "src/types";
import { setWorkerLocation } from "src/workers";
declare module "API" {
import { PenumbraDecryptionInfo, PenumbraEncryptedFile, PenumbraEncryptionOptions, PenumbraFile, PenumbraTextOrURI, RemoteResource } from "types";
import { setWorkerLocation } from "workers";
/**

@@ -668,4 +668,4 @@ * Retrieve and decrypt files

}
declare module "src/fetchMany" {
import { RemoteResource, RemoteResourceWithoutFile } from "src/types";
declare module "fetchMany" {
import { RemoteResource, RemoteResourceWithoutFile } from "types";
/**

@@ -714,4 +714,4 @@ * Types of rels that a link can take on

}
declare module "src/getDecryptedContent" {
import { RemoteResourceWithoutFile } from "src/types";
declare module "getDecryptedContent" {
import { RemoteResourceWithoutFile } from "types";
/**

@@ -725,14 +725,14 @@ * Get the contents of an encrypted file

}
declare module "src/mock" {
import { PenumbraAPI } from "src/types";
declare module "mock" {
import { PenumbraAPI } from "types";
const MOCK_API: PenumbraAPI;
export default MOCK_API;
}
declare module "src/transferHandlers/penumbra-events" { }
declare module "src/index" {
import penumbra from "src/API";
import MOCK_API from "src/mock";
import "src/transferHandlers/penumbra-events";
import { PenumbraAPI } from "src/types";
export * from "src/types";
declare module "transferHandlers/penumbra-events" { }
declare module "index" {
import penumbra from "API";
import MOCK_API from "mock";
import "transferHandlers/penumbra-events";
import { PenumbraAPI } from "types";
export * from "types";
export { penumbra, MOCK_API };

@@ -750,3 +750,3 @@ /** Extend global Window */

}
declare module "src/tests/helpers/timeout" {
declare module "tests/helpers/timeout" {
/**

@@ -768,3 +768,3 @@ * Timer management options

}
declare module "src/tests/helpers/hash" {
declare module "tests/helpers/hash" {
/**

@@ -779,3 +779,3 @@ * Get the cryptographic hash of an ArrayBuffer

}
declare module "src/tests/helpers/index" {
declare module "tests/helpers/index" {
/**

@@ -788,15 +788,15 @@ *

*/
export { default as timeout } from "src/tests/helpers/timeout";
export { default as hash } from "src/tests/helpers/hash";
export { default as timeout } from "tests/helpers/timeout";
export { default as hash } from "tests/helpers/hash";
}
declare module "src/tests/fetchAndDecrypt.test" { }
declare module "src/tests/getDecryptedContent.test" { }
declare module "src/tests/index.test" {
declare module "tests/fetchAndDecrypt.test" { }
declare module "tests/getDecryptedContent.test" { }
declare module "tests/index.test" {
import './v4-api.test.ts';
}
declare module "src/tests/resourceHints.test" { }
declare module "src/tests/v3-api.test" { }
declare module "src/tests/v4-api.test" { }
declare module "src/utils/forwardEvents" {
import { EventForwarder } from "src/types";
declare module "tests/resourceHints.test" { }
declare module "tests/v3-api.test" { }
declare module "tests/v4-api.test" { }
declare module "utils/forwardEvents" {
import { EventForwarder } from "types";
const onPenumbraEvent: EventForwarder;

@@ -803,0 +803,0 @@ export default onPenumbraEvent;

{
"name": "@transcend-io/penumbra",
"version": "4.7.5",
"version": "4.7.6",
"description": "Crypto streams for the browser.",
"main": "build/penumbra.js",
"types": "build/index.d.ts",
"types": "src/index.ts",
"directories": {

@@ -32,3 +32,4 @@ "example": "example"

"clean": "rimraf build && rimraf coverage",
"build": "yarn clean && mkdir -p build && webpack --config webpack.prod.js && cp src/demo/* build/ && tsc --emitDeclarationOnly --out build/index.d.ts && yarn build:markdown",
"build": "yarn clean && mkdir -p build && webpack --config webpack.prod.js && cp src/demo/* build/ && yarn build:types && yarn build:markdown",
"build:types": "tsc --emitDeclarationOnly",
"build:markdown": "markdown-toc -i --bullets '—' README.md && sed -i -e 's/—/-/g' README.md && rm -f README.md-e",

@@ -35,0 +36,0 @@ "build:watch": "tsc --watch",

@@ -5,5 +5,5 @@ {

"incremental": true,
"target": "es2020",
"module": "commonjs",
"lib": ["esnext", "dom", "es2015", "es2016", "es2017"],
"target": "es2019",
"module": "amd",
"lib": ["es2019", "dom", "esnext"],
"allowJs": false,

@@ -16,5 +16,4 @@ "declaration": true,

"baseUrl": ".",
"outDir": "build",
"outFile": "build/index.ts",
"types": ["node"],
"composite": true,
"moduleResolution": "node",

@@ -21,0 +20,0 @@ "strict": true

Sorry, the diff of this file is not supported yet

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