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

@transcend-io/penumbra

Package Overview
Dependencies
Maintainers
6
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 1.4.0 to 1.4.1

dist/index.d.ts.map

17

dist/index.d.ts
/// <reference types="node" />
/**
* The type that is emitted as progress continues
*/
export declare type ProgressEmit = {
/** Detailed emit */
detail: {
/** Percentage completed */
percent: number;
/** Total bytes read */
totalBytesRead: number;
/** Total number of bytes to read */
contentLength: number;
/** The URL downloading from */
url: string;
};
};
/**
* Download, decrypt, and save a file

@@ -31,1 +47,2 @@ * @param url the URL to fetch the encrypted file from

export {};
//# sourceMappingURL=index.d.ts.map

6

dist/index.js

@@ -79,3 +79,3 @@ "use strict";

var percent = Math.round((totalBytesRead / contentLength) * 100);
var event = new CustomEvent(progressEventName, {
var emitContent = {
detail: {

@@ -87,3 +87,4 @@ percent: percent,

},
});
};
var event = new CustomEvent(progressEventName, emitContent);
self.dispatchEvent(event);

@@ -247,1 +248,2 @@ }

exports.getDecryptedContent = getDecryptedContent;
//# sourceMappingURL=index.js.map

@@ -52,3 +52,20 @@ // External modules

/**
* The type that is emitted as progress continues
*/
export type ProgressEmit = {
/** Detailed emit */
detail: {
/** Percentage completed */
percent: number,
/** Total bytes read */
totalBytesRead: number,
/** Total number of bytes to read */
contentLength: number,
/** The URL downloading from */
url: string;
}
}
/**

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

const percent = Math.round((totalBytesRead / contentLength) * 100);
const event = new CustomEvent(progressEventName, {
const emitContent: ProgressEmit = {
detail: {

@@ -76,3 +93,4 @@ percent,

},
});
}
const event = new CustomEvent(progressEventName, emitContent);
self.dispatchEvent(event);

@@ -79,0 +97,0 @@ }

{
"name": "@transcend-io/penumbra",
"version": "1.4.0",
"version": "1.4.1",
"description": "Crypto streams for the browser.",

@@ -12,5 +12,5 @@ "main": "dist/index.js",

"test": "echo \"Error: no test specified\" && exit 1",
"build:clean": "rimraf dist && tsc",
"build:watch": "tsc --watch",
"build:publish": "npm run build:clean && npm publish"
"prepare": "npm run build",
"build": "rimraf dist && tsc",
"build:watch": "tsc --watch"
},

@@ -17,0 +17,0 @@ "repository": {

@@ -6,2 +6,5 @@ {

"declaration": true,
"declarationMap": true,
"sourceMap": true,
"removeComments": false,
"outDir": "./dist",

@@ -8,0 +11,0 @@ "strict": true

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