Adds dist changes derived from previous commit.
This commit is contained in:
parent
08fdb351d1
commit
6cd5152b16
38
dist/openpgp.js
vendored
38
dist/openpgp.js
vendored
|
@ -11408,7 +11408,7 @@ module.exports={
|
|||
"_args": [
|
||||
[
|
||||
"github:openpgpjs/elliptic",
|
||||
"/Users/sunny/Desktop/Protonmail/openpgpjs"
|
||||
"/home/ethomas/Contributions/openpgpjs"
|
||||
]
|
||||
],
|
||||
"_from": "github:openpgpjs/elliptic",
|
||||
|
@ -11430,7 +11430,7 @@ module.exports={
|
|||
],
|
||||
"_resolved": "github:openpgpjs/elliptic#e187e706e11fa51bcd20e46e5119054be4e2a4a6",
|
||||
"_spec": "github:openpgpjs/elliptic",
|
||||
"_where": "/Users/sunny/Desktop/Protonmail/openpgpjs",
|
||||
"_where": "/home/ethomas/Contributions/openpgpjs",
|
||||
"author": {
|
||||
"name": "Fedor Indutny",
|
||||
"email": "fedor@indutny.com"
|
||||
|
@ -21803,7 +21803,7 @@ module.exports={
|
|||
"_args": [
|
||||
[
|
||||
"github:openpgpjs/seek-bzip",
|
||||
"/Users/sunny/Desktop/Protonmail/openpgpjs"
|
||||
"/home/ethomas/Contributions/openpgpjs"
|
||||
]
|
||||
],
|
||||
"_from": "github:openpgpjs/seek-bzip",
|
||||
|
@ -21827,7 +21827,7 @@ module.exports={
|
|||
],
|
||||
"_resolved": "github:openpgpjs/seek-bzip#3aca608ffedc055a1da1d898ecb244804ef32209",
|
||||
"_spec": "github:openpgpjs/seek-bzip",
|
||||
"_where": "/Users/sunny/Desktop/Protonmail/openpgpjs",
|
||||
"_where": "/home/ethomas/Contributions/openpgpjs",
|
||||
"bin": {
|
||||
"seek-bunzip": "./bin/seek-bunzip",
|
||||
"seek-table": "./bin/seek-bzip-table"
|
||||
|
@ -22669,7 +22669,10 @@ function Reader(input) {
|
|||
if (streamType) {
|
||||
const reader = input.getReader();
|
||||
this._read = reader.read.bind(reader);
|
||||
this._releaseLock = reader.releaseLock.bind(reader);
|
||||
this._releaseLock = () => {
|
||||
reader.closed.catch(function () {});
|
||||
reader.releaseLock();
|
||||
};
|
||||
return;
|
||||
}
|
||||
let doneReading = false;
|
||||
|
@ -22924,7 +22927,13 @@ function getReader(input) {
|
|||
* @returns {WritableStreamDefaultWriter}
|
||||
*/
|
||||
function getWriter(input) {
|
||||
return input.getWriter();
|
||||
const writer = input.getWriter();
|
||||
const releaseLock = writer.releaseLock;
|
||||
writer.releaseLock = () => {
|
||||
writer.closed.catch(function () {});
|
||||
releaseLock.call(writer);
|
||||
};
|
||||
return writer;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -22939,7 +22948,7 @@ async function pipe(input, target, options) {
|
|||
input = toStream(input);
|
||||
try {
|
||||
if (input[_reader.externalBuffer]) {
|
||||
const writer = target.getWriter();
|
||||
const writer = getWriter(target);
|
||||
for (let i = 0; i < input[_reader.externalBuffer].length; i++) {
|
||||
await writer.ready;
|
||||
await writer.write(input[_reader.externalBuffer][i]);
|
||||
|
@ -23235,8 +23244,8 @@ function slice(input, begin = 0, end = Infinity) {
|
|||
if (input[_reader.externalBuffer]) {
|
||||
input = concat(input[_reader.externalBuffer].concat([input]));
|
||||
}
|
||||
if ((0, _util.isUint8Array)(input) && !(NodeBuffer && NodeBuffer.isBuffer(input)) && !_util.isIE11) {
|
||||
// IE11 subarray is buggy
|
||||
if ((0, _util.isUint8Array)(input) && !(NodeBuffer && NodeBuffer.isBuffer(input))) {
|
||||
if (end === Infinity) end = input.length;
|
||||
return input.subarray(begin, end);
|
||||
}
|
||||
return input.slice(begin, end);
|
||||
|
@ -23296,8 +23305,6 @@ exports.default = { isStream: _util.isStream, isUint8Array: _util.isUint8Array,
|
|||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
const isIE11 = typeof navigator !== 'undefined' && !!navigator.userAgent.match(/Trident\/7\.0.*rv:([0-9.]+).*\).*Gecko$/);
|
||||
|
||||
const NodeReadableStream = typeof window === 'undefined' && require('stream').Readable;
|
||||
|
||||
/**
|
||||
|
@ -23351,7 +23358,6 @@ function concatUint8Array(arrays) {
|
|||
return result;
|
||||
}
|
||||
|
||||
exports.isIE11 = isIE11;
|
||||
exports.isStream = isStream;
|
||||
exports.isUint8Array = isUint8Array;
|
||||
exports.concatUint8Array = concatUint8Array;
|
||||
|
@ -40692,13 +40698,13 @@ exports.default = {
|
|||
* @param {Uint8Array} data
|
||||
*/
|
||||
double: function double(data) {
|
||||
const double = new Uint8Array(data.length);
|
||||
const double_var = new Uint8Array(data.length);
|
||||
const last = data.length - 1;
|
||||
for (let i = 0; i < last; i++) {
|
||||
double[i] = data[i] << 1 ^ data[i + 1] >> 7;
|
||||
double_var[i] = data[i] << 1 ^ data[i + 1] >> 7;
|
||||
}
|
||||
double[last] = data[last] << 1 ^ (data[0] >> 7) * 0x87;
|
||||
return double;
|
||||
double_var[last] = data[last] << 1 ^ (data[0] >> 7) * 0x87;
|
||||
return double_var;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
4
dist/openpgp.min.js
vendored
4
dist/openpgp.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/openpgp.worker.min.js
vendored
2
dist/openpgp.worker.min.js
vendored
|
@ -1,2 +1,2 @@
|
|||
/*! OpenPGP.js v4.4.1 - 2018-12-23 - this is LGPL licensed code, see LICENSE/our website https://openpgpjs.org/ for more information. */
|
||||
/*! OpenPGP.js v4.4.1 - 2018-12-26 - this is LGPL licensed code, see LICENSE/our website https://openpgpjs.org/ for more information. */
|
||||
!function(){return function e(n,r,t){function o(a,f){if(!r[a]){if(!n[a]){var u="function"==typeof require&&require;if(!f&&u)return u(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var s=r[a]={exports:{}};n[a][0].call(s.exports,function(e){return o(n[a][1][e]||e)},s,s.exports,e,n,r,t)}return r[a].exports}for(var i="function"==typeof require&&require,a=0;a<t.length;a++)o(t[a]);return o}}()({1:[function(e,n,r){self.window=self,importScripts("openpgp.min.js");var t=window.openpgp,o=[],i=6e4;function a(e){self.postMessage(e,t.util.getTransferables(e.data))}t.crypto.random.randomBuffer.init(i,function(){return o.length||self.postMessage({event:"request-seed",amount:i}),new Promise(function(e){o.push(e)})}),self.onmessage=function(e){var n,r=e.data||{};switch(r.event){case"configure":n=r.config,Object.keys(n).forEach(function(e){t.config[e]=n[e]});break;case"seed-random":!function(e){e instanceof Uint8Array||(e=new Uint8Array(e));t.crypto.random.randomBuffer.set(e)}(r.buf);var i=o;o=[];for(var f=0;f<i.length;f++)i[f]();break;default:!function(e,n,r){if("function"!=typeof t[n])return void a({id:e,event:"method-return",err:"Unknown Worker Event"});r=t.packet.clone.parseClonedPackets(r,n),t.util.restoreStreams(r),t[n](r).then(function(n){a({id:e,event:"method-return",data:t.packet.clone.clonePackets(n)})}).catch(function(n){t.util.print_debug_error(n),a({id:e,event:"method-return",err:n.message,stack:n.stack})})}(r.id,r.event,r.options||{})}}},{}]},{},[1]);
|
Loading…
Reference in New Issue
Block a user