Adds dist changes derived from previous commit.

This commit is contained in:
Esty Thomas 2018-12-27 12:30:43 -05:00
parent 08fdb351d1
commit 6cd5152b16
No known key found for this signature in database
GPG Key ID: 01FC96C4ECC92580
3 changed files with 25 additions and 19 deletions

38
dist/openpgp.js vendored
View File

@ -11408,7 +11408,7 @@ module.exports={
"_args": [ "_args": [
[ [
"github:openpgpjs/elliptic", "github:openpgpjs/elliptic",
"/Users/sunny/Desktop/Protonmail/openpgpjs" "/home/ethomas/Contributions/openpgpjs"
] ]
], ],
"_from": "github:openpgpjs/elliptic", "_from": "github:openpgpjs/elliptic",
@ -11430,7 +11430,7 @@ module.exports={
], ],
"_resolved": "github:openpgpjs/elliptic#e187e706e11fa51bcd20e46e5119054be4e2a4a6", "_resolved": "github:openpgpjs/elliptic#e187e706e11fa51bcd20e46e5119054be4e2a4a6",
"_spec": "github:openpgpjs/elliptic", "_spec": "github:openpgpjs/elliptic",
"_where": "/Users/sunny/Desktop/Protonmail/openpgpjs", "_where": "/home/ethomas/Contributions/openpgpjs",
"author": { "author": {
"name": "Fedor Indutny", "name": "Fedor Indutny",
"email": "fedor@indutny.com" "email": "fedor@indutny.com"
@ -21803,7 +21803,7 @@ module.exports={
"_args": [ "_args": [
[ [
"github:openpgpjs/seek-bzip", "github:openpgpjs/seek-bzip",
"/Users/sunny/Desktop/Protonmail/openpgpjs" "/home/ethomas/Contributions/openpgpjs"
] ]
], ],
"_from": "github:openpgpjs/seek-bzip", "_from": "github:openpgpjs/seek-bzip",
@ -21827,7 +21827,7 @@ module.exports={
], ],
"_resolved": "github:openpgpjs/seek-bzip#3aca608ffedc055a1da1d898ecb244804ef32209", "_resolved": "github:openpgpjs/seek-bzip#3aca608ffedc055a1da1d898ecb244804ef32209",
"_spec": "github:openpgpjs/seek-bzip", "_spec": "github:openpgpjs/seek-bzip",
"_where": "/Users/sunny/Desktop/Protonmail/openpgpjs", "_where": "/home/ethomas/Contributions/openpgpjs",
"bin": { "bin": {
"seek-bunzip": "./bin/seek-bunzip", "seek-bunzip": "./bin/seek-bunzip",
"seek-table": "./bin/seek-bzip-table" "seek-table": "./bin/seek-bzip-table"
@ -22669,7 +22669,10 @@ function Reader(input) {
if (streamType) { if (streamType) {
const reader = input.getReader(); const reader = input.getReader();
this._read = reader.read.bind(reader); this._read = reader.read.bind(reader);
this._releaseLock = reader.releaseLock.bind(reader); this._releaseLock = () => {
reader.closed.catch(function () {});
reader.releaseLock();
};
return; return;
} }
let doneReading = false; let doneReading = false;
@ -22924,7 +22927,13 @@ function getReader(input) {
* @returns {WritableStreamDefaultWriter} * @returns {WritableStreamDefaultWriter}
*/ */
function getWriter(input) { 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); input = toStream(input);
try { try {
if (input[_reader.externalBuffer]) { if (input[_reader.externalBuffer]) {
const writer = target.getWriter(); const writer = getWriter(target);
for (let i = 0; i < input[_reader.externalBuffer].length; i++) { for (let i = 0; i < input[_reader.externalBuffer].length; i++) {
await writer.ready; await writer.ready;
await writer.write(input[_reader.externalBuffer][i]); await writer.write(input[_reader.externalBuffer][i]);
@ -23235,8 +23244,8 @@ function slice(input, begin = 0, end = Infinity) {
if (input[_reader.externalBuffer]) { if (input[_reader.externalBuffer]) {
input = concat(input[_reader.externalBuffer].concat([input])); input = concat(input[_reader.externalBuffer].concat([input]));
} }
if ((0, _util.isUint8Array)(input) && !(NodeBuffer && NodeBuffer.isBuffer(input)) && !_util.isIE11) { if ((0, _util.isUint8Array)(input) && !(NodeBuffer && NodeBuffer.isBuffer(input))) {
// IE11 subarray is buggy if (end === Infinity) end = input.length;
return input.subarray(begin, end); return input.subarray(begin, end);
} }
return input.slice(begin, end); return input.slice(begin, end);
@ -23296,8 +23305,6 @@ exports.default = { isStream: _util.isStream, isUint8Array: _util.isUint8Array,
Object.defineProperty(exports, "__esModule", { Object.defineProperty(exports, "__esModule", {
value: true 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; const NodeReadableStream = typeof window === 'undefined' && require('stream').Readable;
/** /**
@ -23351,7 +23358,6 @@ function concatUint8Array(arrays) {
return result; return result;
} }
exports.isIE11 = isIE11;
exports.isStream = isStream; exports.isStream = isStream;
exports.isUint8Array = isUint8Array; exports.isUint8Array = isUint8Array;
exports.concatUint8Array = concatUint8Array; exports.concatUint8Array = concatUint8Array;
@ -40692,13 +40698,13 @@ exports.default = {
* @param {Uint8Array} data * @param {Uint8Array} data
*/ */
double: function double(data) { double: function double(data) {
const double = new Uint8Array(data.length); const double_var = new Uint8Array(data.length);
const last = data.length - 1; const last = data.length - 1;
for (let i = 0; i < last; i++) { 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; double_var[last] = data[last] << 1 ^ (data[0] >> 7) * 0x87;
return double; return double_var;
}, },
/** /**

4
dist/openpgp.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -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]); !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]);