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

uppy-encrypt

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uppy-encrypt - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

dist/index.cjs

61

dist/index.js

@@ -1,8 +0,3 @@

"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;

@@ -22,23 +17,2 @@ var __propIsEnum = Object.prototype.propertyIsEnumerable;

};
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __async = (__this, __arguments, generator) => {

@@ -65,14 +39,4 @@ return new Promise((resolve, reject) => {

// src/index.ts
var src_exports = {};
__export(src_exports, {
UppyDecrypt: () => UppyDecrypt,
UppyEncrypt: () => UppyEncrypt,
UppyEncryptPlugin: () => UppyEncryptPlugin,
uppyEncryptReady: () => uppyEncryptReady
});
module.exports = __toCommonJS(src_exports);
// src/UppyEncrypt.ts
var import_libsodium_wrappers_sumo = __toESM(require("libsodium-wrappers-sumo"));
import _sodium from "libsodium-wrappers-sumo";

@@ -86,4 +50,4 @@ // src/constants.ts

(() => __async(void 0, null, function* () {
yield import_libsodium_wrappers_sumo.default.ready;
sodium = import_libsodium_wrappers_sumo.default;
yield _sodium.ready;
sodium = _sodium;
}))();

@@ -215,7 +179,7 @@ var UppyEncrypt = class {

// src/UppyDecrypt.ts
var import_libsodium_wrappers_sumo2 = __toESM(require("libsodium-wrappers-sumo"));
import _sodium2 from "libsodium-wrappers-sumo";
var sodium2;
(() => __async(void 0, null, function* () {
yield import_libsodium_wrappers_sumo2.default.ready;
sodium2 = import_libsodium_wrappers_sumo2.default;
yield _sodium2.ready;
sodium2 = _sodium2;
}))();

@@ -294,12 +258,12 @@ var UppyDecrypt = class {

// src/index.ts
var import_libsodium_wrappers_sumo3 = __toESM(require("libsodium-wrappers-sumo"));
var import_core = require("@uppy/core");
import _sodium3 from "libsodium-wrappers-sumo";
import { BasePlugin } from "@uppy/core";
var sodiumIsReady = false;
var uppyEncryptReady = () => __async(void 0, null, function* () {
if (!sodiumIsReady) {
yield import_libsodium_wrappers_sumo3.default.ready;
yield _sodium3.ready;
sodiumIsReady = true;
}
});
var UppyEncryptPlugin = class extends import_core.BasePlugin {
var UppyEncryptPlugin = class extends BasePlugin {
constructor(uppy, opts) {

@@ -352,4 +316,3 @@ var _a;

};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
export {
UppyDecrypt,

@@ -359,3 +322,3 @@ UppyEncrypt,

uppyEncryptReady
});
};
//# sourceMappingURL=index.js.map
{
"name": "uppy-encrypt",
"version": "1.0.0",
"version": "1.0.1",
"description": "Uppy plugin to encrypt and decrypt files in the browser before upload using libsodium-wrappers",
"type": "module",
"main": "./dist/index.js",

@@ -6,0 +7,0 @@ "module": "./dist/index.mjs",

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