From 4cab407613691c5b419cd43c420e7cc0575a1983 Mon Sep 17 00:00:00 2001 From: Audrey Eschright Date: Wed, 9 Dec 2020 12:09:26 -0800 Subject: [PATCH 1/2] Update js-releases to fix missing dep in bundle --- dist/index.js | 2220 ++++++++++++++++++++++++++++++++++++++++++--- package-lock.json | 13 +- package.json | 2 +- 3 files changed, 2079 insertions(+), 156 deletions(-) diff --git a/dist/index.js b/dist/index.js index 333debef..9c5f3c03 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4898,6 +4898,8 @@ class Release { } } exports.Release = Release; +// includePrerelease: Set to suppress the default behavior of excluding prerelease tagged versions +// from ranges unless they are explicitly opted into. function getRelease(product, version, userAgent, includePrerelease) { return __awaiter(this, void 0, void 0, function* () { const validVersion = semver.validRange(version, { includePrerelease, loose: true }); // "latest" will return invalid but that's ok because we'll select it by default @@ -4919,7 +4921,8 @@ function getRelease(product, version, userAgent, includePrerelease) { } exports.getRelease = getRelease; function matchVersion(versions, range, includePrerelease) { - // If a prerelease version range is given, it will match in that series (0.14-rc0, 0.14-rc1) + // If a prerelease version range is given, it will only match in that series (0.14-rc0, 0.14-rc1) + // unless includePrerelease is set to true // https://www.npmjs.com/package/semver#prerelease-tags const version = semver.maxSatisfying(Object.keys(versions), range, { includePrerelease }); if (version) { @@ -5388,7 +5391,7 @@ function createFromFd(fd, options) { /***/ 144: /***/ ((module) => { -/*! OpenPGP.js v4.10.8 - 2020-08-28 - this is LGPL licensed code, see LICENSE/our website https://openpgpjs.org/ for more information. */ +/*! OpenPGP.js v4.10.8 - 2020-09-18 - this is LGPL licensed code, see LICENSE/our website https://openpgpjs.org/ for more information. */ (function(f){if(true){module.exports=f()}else { var g; }})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=require,i=0;i> 6]; + const primitive = (tag & 0x20) === 0; + + // Multi-octet tag - load + if ((tag & 0x1f) === 0x1f) { + let oct = tag; + tag = 0; + while ((oct & 0x80) === 0x80) { + oct = buf.readUInt8(fail); + if (buf.isError(oct)) + return oct; + + tag <<= 7; + tag |= oct & 0x7f; + } + } else { + tag &= 0x1f; + } + const tagStr = der.tag[tag]; + + return { + cls: cls, + primitive: primitive, + tag: tag, + tagStr: tagStr + }; +} + +function derDecodeLen(buf, primitive, fail) { + let len = buf.readUInt8(fail); + if (buf.isError(len)) + return len; + + // Indefinite form + if (!primitive && len === 0x80) + return null; + + // Definite form + if ((len & 0x80) === 0) { + // Short form + return len; + } + + // Long form + const num = len & 0x7f; + if (num > 4) + return buf.error('length octect is too long'); + + len = 0; + for (let i = 0; i < num; i++) { + len <<= 8; + const j = buf.readUInt8(fail); + if (buf.isError(j)) + return j; + len |= j; + } + + return len; +} + +},{"../../asn1":16,"inherits":61}],25:[function(require,module,exports){ +'use strict'; + +const decoders = exports; + +decoders.der = require('./der'); +decoders.pem = require('./pem'); + +},{"./der":24,"./pem":26}],26:[function(require,module,exports){ +'use strict'; + +const inherits = require('inherits'); +const Buffer = require('buffer').Buffer; + +const DERDecoder = require('./der'); + +function PEMDecoder(entity) { + DERDecoder.call(this, entity); + this.enc = 'pem'; +} +inherits(PEMDecoder, DERDecoder); +module.exports = PEMDecoder; + +PEMDecoder.prototype.decode = function decode(data, options) { + const lines = data.toString().split(/[\r\n]+/g); + + const label = options.label.toUpperCase(); + + const re = /^-----(BEGIN|END) ([^-]+)-----$/; + let start = -1; + let end = -1; + for (let i = 0; i < lines.length; i++) { + const match = lines[i].match(re); + if (match === null) + continue; + + if (match[2] !== label) + continue; + + if (start === -1) { + if (match[1] !== 'BEGIN') + break; + start = i; + } else { + if (match[1] !== 'END') + break; + end = i; + break; + } + } + if (start === -1 || end === -1) + throw new Error('PEM section not found for: ' + label); + + const base64 = lines.slice(start + 1, end).join(''); + // Remove excessive symbols + base64.replace(/[^a-z0-9+/=]+/gi, ''); + + const input = new Buffer(base64, 'base64'); + return DERDecoder.prototype.decode.call(this, input, options); +}; + +},{"./der":24,"buffer":"buffer","inherits":61}],27:[function(require,module,exports){ +'use strict'; + +const inherits = require('inherits'); +const Buffer = require('buffer').Buffer; + +const asn1 = require('../../asn1'); +const base = asn1.base; + +// Import DER constants +const der = asn1.constants.der; + +function DEREncoder(entity) { + this.enc = 'der'; + this.name = entity.name; + this.entity = entity; + + // Construct base tree + this.tree = new DERNode(); + this.tree._init(entity.body); +} +module.exports = DEREncoder; + +DEREncoder.prototype.encode = function encode(data, reporter) { + return this.tree._encode(data, reporter).join(); +}; + +// Tree methods + +function DERNode(parent) { + base.Node.call(this, 'der', parent); +} +inherits(DERNode, base.Node); + +DERNode.prototype._encodeComposite = function encodeComposite(tag, + primitive, + cls, + content) { + const encodedTag = encodeTag(tag, primitive, cls, this.reporter); + + // Short form + if (content.length < 0x80) { + const header = new Buffer(2); + header[0] = encodedTag; + header[1] = content.length; + return this._createEncoderBuffer([ header, content ]); + } + + // Long form + // Count octets required to store length + let lenOctets = 1; + for (let i = content.length; i >= 0x100; i >>= 8) + lenOctets++; + + const header = new Buffer(1 + 1 + lenOctets); + header[0] = encodedTag; + header[1] = 0x80 | lenOctets; + + for (let i = 1 + lenOctets, j = content.length; j > 0; i--, j >>= 8) + header[i] = j & 0xff; + + return this._createEncoderBuffer([ header, content ]); +}; + +DERNode.prototype._encodeStr = function encodeStr(str, tag) { + if (tag === 'bitstr') { + return this._createEncoderBuffer([ str.unused | 0, str.data ]); + } else if (tag === 'bmpstr') { + const buf = new Buffer(str.length * 2); + for (let i = 0; i < str.length; i++) { + buf.writeUInt16BE(str.charCodeAt(i), i * 2); + } + return this._createEncoderBuffer(buf); + } else if (tag === 'numstr') { + if (!this._isNumstr(str)) { + return this.reporter.error('Encoding of string type: numstr supports ' + + 'only digits and space'); + } + return this._createEncoderBuffer(str); + } else if (tag === 'printstr') { + if (!this._isPrintstr(str)) { + return this.reporter.error('Encoding of string type: printstr supports ' + + 'only latin upper and lower case letters, ' + + 'digits, space, apostrophe, left and rigth ' + + 'parenthesis, plus sign, comma, hyphen, ' + + 'dot, slash, colon, equal sign, ' + + 'question mark'); + } + return this._createEncoderBuffer(str); + } else if (/str$/.test(tag)) { + return this._createEncoderBuffer(str); + } else if (tag === 'objDesc') { + return this._createEncoderBuffer(str); + } else { + return this.reporter.error('Encoding of string type: ' + tag + + ' unsupported'); + } +}; + +DERNode.prototype._encodeObjid = function encodeObjid(id, values, relative) { + if (typeof id === 'string') { + if (!values) + return this.reporter.error('string objid given, but no values map found'); + if (!values.hasOwnProperty(id)) + return this.reporter.error('objid not found in values map'); + id = values[id].split(/[\s.]+/g); + for (let i = 0; i < id.length; i++) + id[i] |= 0; + } else if (Array.isArray(id)) { + id = id.slice(); + for (let i = 0; i < id.length; i++) + id[i] |= 0; + } + + if (!Array.isArray(id)) { + return this.reporter.error('objid() should be either array or string, ' + + 'got: ' + JSON.stringify(id)); + } + + if (!relative) { + if (id[1] >= 40) + return this.reporter.error('Second objid identifier OOB'); + id.splice(0, 2, id[0] * 40 + id[1]); + } + + // Count number of octets + let size = 0; + for (let i = 0; i < id.length; i++) { + let ident = id[i]; + for (size++; ident >= 0x80; ident >>= 7) + size++; + } + + const objid = new Buffer(size); + let offset = objid.length - 1; + for (let i = id.length - 1; i >= 0; i--) { + let ident = id[i]; + objid[offset--] = ident & 0x7f; + while ((ident >>= 7) > 0) + objid[offset--] = 0x80 | (ident & 0x7f); + } + + return this._createEncoderBuffer(objid); +}; + +function two(num) { + if (num < 10) + return '0' + num; + else + return num; +} + +DERNode.prototype._encodeTime = function encodeTime(time, tag) { + let str; + const date = new Date(time); + + if (tag === 'gentime') { + str = [ + two(date.getFullYear()), + two(date.getUTCMonth() + 1), + two(date.getUTCDate()), + two(date.getUTCHours()), + two(date.getUTCMinutes()), + two(date.getUTCSeconds()), + 'Z' + ].join(''); + } else if (tag === 'utctime') { + str = [ + two(date.getFullYear() % 100), + two(date.getUTCMonth() + 1), + two(date.getUTCDate()), + two(date.getUTCHours()), + two(date.getUTCMinutes()), + two(date.getUTCSeconds()), + 'Z' + ].join(''); + } else { + this.reporter.error('Encoding ' + tag + ' time is not supported yet'); + } + + return this._encodeStr(str, 'octstr'); +}; + +DERNode.prototype._encodeNull = function encodeNull() { + return this._createEncoderBuffer(''); +}; + +DERNode.prototype._encodeInt = function encodeInt(num, values) { + if (typeof num === 'string') { + if (!values) + return this.reporter.error('String int or enum given, but no values map'); + if (!values.hasOwnProperty(num)) { + return this.reporter.error('Values map doesn\'t contain: ' + + JSON.stringify(num)); + } + num = values[num]; + } + + // Bignum, assume big endian + if (typeof num !== 'number' && !Buffer.isBuffer(num)) { + const numArray = num.toArray(); + if (!num.sign && numArray[0] & 0x80) { + numArray.unshift(0); + } + num = new Buffer(numArray); + } + + if (Buffer.isBuffer(num)) { + let size = num.length; + if (num.length === 0) + size++; + + const out = new Buffer(size); + num.copy(out); + if (num.length === 0) + out[0] = 0; + return this._createEncoderBuffer(out); + } + + if (num < 0x80) + return this._createEncoderBuffer(num); + + if (num < 0x100) + return this._createEncoderBuffer([0, num]); + + let size = 1; + for (let i = num; i >= 0x100; i >>= 8) + size++; + + const out = new Array(size); + for (let i = out.length - 1; i >= 0; i--) { + out[i] = num & 0xff; + num >>= 8; + } + if(out[0] & 0x80) { + out.unshift(0); + } + + return this._createEncoderBuffer(new Buffer(out)); +}; + +DERNode.prototype._encodeBool = function encodeBool(value) { + return this._createEncoderBuffer(value ? 0xff : 0); +}; + +DERNode.prototype._use = function use(entity, obj) { + if (typeof entity === 'function') + entity = entity(obj); + return entity._getEncoder('der').tree; +}; + +DERNode.prototype._skipDefault = function skipDefault(dataBuffer, reporter, parent) { + const state = this._baseState; + let i; + if (state['default'] === null) + return false; + + const data = dataBuffer.join(); + if (state.defaultBuffer === undefined) + state.defaultBuffer = this._encodeValue(state['default'], reporter, parent).join(); + + if (data.length !== state.defaultBuffer.length) + return false; + + for (i=0; i < data.length; i++) + if (data[i] !== state.defaultBuffer[i]) + return false; + + return true; +}; + +// Utility methods + +function encodeTag(tag, primitive, cls, reporter) { + let res; + + if (tag === 'seqof') + tag = 'seq'; + else if (tag === 'setof') + tag = 'set'; + + if (der.tagByName.hasOwnProperty(tag)) + res = der.tagByName[tag]; + else if (typeof tag === 'number' && (tag | 0) === tag) + res = tag; + else + return reporter.error('Unknown tag: ' + tag); + + if (res >= 0x1f) + return reporter.error('Multi-octet tag encoding unsupported'); + + if (!primitive) + res |= 0x20; + + res |= (der.tagClassByName[cls || 'universal'] << 6); + + return res; +} + +},{"../../asn1":16,"buffer":"buffer","inherits":61}],28:[function(require,module,exports){ +'use strict'; + +const encoders = exports; + +encoders.der = require('./der'); +encoders.pem = require('./pem'); + +},{"./der":27,"./pem":29}],29:[function(require,module,exports){ +'use strict'; + +const inherits = require('inherits'); + +const DEREncoder = require('./der'); + +function PEMEncoder(entity) { + DEREncoder.call(this, entity); + this.enc = 'pem'; +} +inherits(PEMEncoder, DEREncoder); +module.exports = PEMEncoder; + +PEMEncoder.prototype.encode = function encode(data, options) { + const buf = DEREncoder.prototype.encode.call(this, data); + + const p = buf.toString('base64'); + const out = [ '-----BEGIN ' + options.label + '-----' ]; + for (let i = 0; i < p.length; i += 64) + out.push(p.slice(i, i + 64)); + out.push('-----END ' + options.label + '-----'); + return out.join('\n'); +}; + +},{"./der":27,"inherits":61}],30:[function(require,module,exports){ (function (module, exports) { 'use strict'; @@ -13347,7 +15120,7 @@ function joinBytes() { }; })(typeof module === 'undefined' || module, this); -},{"buffer":"buffer"}],17:[function(require,module,exports){ +},{"buffer":"buffer"}],31:[function(require,module,exports){ var r; module.exports = function rand(len) { @@ -13414,7 +15187,7 @@ if (typeof self === 'object') { } } -},{"crypto":"crypto"}],18:[function(require,module,exports){ +},{"crypto":"crypto"}],32:[function(require,module,exports){ 'use strict'; var elliptic = exports; @@ -13428,7 +15201,7 @@ elliptic.curves = require('./elliptic/curves'); elliptic.ec = require('./elliptic/ec'); elliptic.eddsa = require('./elliptic/eddsa'); -},{"./elliptic/curve":21,"./elliptic/curves":24,"./elliptic/ec":25,"./elliptic/eddsa":28,"./elliptic/utils":32,"brorand":17}],19:[function(require,module,exports){ +},{"./elliptic/curve":35,"./elliptic/curves":38,"./elliptic/ec":39,"./elliptic/eddsa":42,"./elliptic/utils":46,"brorand":31}],33:[function(require,module,exports){ 'use strict'; var BN = require('bn.js'); @@ -13804,7 +15577,7 @@ BasePoint.prototype.dblp = function dblp(k) { return r; }; -},{"../utils":32,"bn.js":16}],20:[function(require,module,exports){ +},{"../utils":46,"bn.js":30}],34:[function(require,module,exports){ 'use strict'; var utils = require('../utils'); @@ -14238,7 +16011,7 @@ Point.prototype.eqXToP = function eqXToP(x) { Point.prototype.toP = Point.prototype.normalize; Point.prototype.mixedAdd = Point.prototype.add; -},{"../utils":32,"./base":19,"bn.js":16,"inherits":47}],21:[function(require,module,exports){ +},{"../utils":46,"./base":33,"bn.js":30,"inherits":61}],35:[function(require,module,exports){ 'use strict'; var curve = exports; @@ -14248,7 +16021,7 @@ curve.short = require('./short'); curve.mont = require('./mont'); curve.edwards = require('./edwards'); -},{"./base":19,"./edwards":20,"./mont":22,"./short":23}],22:[function(require,module,exports){ +},{"./base":33,"./edwards":34,"./mont":36,"./short":37}],36:[function(require,module,exports){ 'use strict'; var BN = require('bn.js'); @@ -14449,7 +16222,7 @@ Point.prototype.getX = function getX() { return this.x.fromRed(); }; -},{"../utils":32,"./base":19,"bn.js":16,"inherits":47}],23:[function(require,module,exports){ +},{"../utils":46,"./base":33,"bn.js":30,"inherits":61}],37:[function(require,module,exports){ 'use strict'; var utils = require('../utils'); @@ -15388,7 +17161,7 @@ JPoint.prototype.isInfinity = function isInfinity() { return this.z.cmpn(0) === 0; }; -},{"../utils":32,"./base":19,"bn.js":16,"inherits":47}],24:[function(require,module,exports){ +},{"../utils":46,"./base":33,"bn.js":30,"inherits":61}],38:[function(require,module,exports){ 'use strict'; var curves = exports; @@ -15660,7 +17433,7 @@ defineCurve('secp256k1', { ] }); -},{"./curve":21,"./precomputed/secp256k1":31,"./utils":32,"hash.js":34}],25:[function(require,module,exports){ +},{"./curve":35,"./precomputed/secp256k1":45,"./utils":46,"hash.js":48}],39:[function(require,module,exports){ 'use strict'; var BN = require('bn.js'); @@ -15930,7 +17703,7 @@ EC.prototype.getKeyRecoveryParam = function(e, signature, Q, enc) { throw new Error('Unable to find valid recovery factor'); }; -},{"../curves":24,"../utils":32,"./key":26,"./signature":27,"bn.js":16,"brorand":17,"hmac-drbg":46}],26:[function(require,module,exports){ +},{"../curves":38,"../utils":46,"./key":40,"./signature":41,"bn.js":30,"brorand":31,"hmac-drbg":60}],40:[function(require,module,exports){ 'use strict'; var BN = require('bn.js'); @@ -16053,7 +17826,7 @@ KeyPair.prototype.inspect = function inspect() { ' pub: ' + (this.pub && this.pub.inspect()) + ' >'; }; -},{"../utils":32,"bn.js":16}],27:[function(require,module,exports){ +},{"../utils":46,"bn.js":30}],41:[function(require,module,exports){ 'use strict'; var BN = require('bn.js'); @@ -16189,7 +17962,7 @@ Signature.prototype.toDER = function toDER(enc) { return utils.encode(res, enc); }; -},{"../utils":32,"bn.js":16}],28:[function(require,module,exports){ +},{"../utils":46,"bn.js":30}],42:[function(require,module,exports){ 'use strict'; var hash = require('hash.js'); @@ -16332,7 +18105,7 @@ EDDSA.prototype.isPoint = function isPoint(val) { return val instanceof this.pointClass; }; -},{"../curves":24,"../utils":32,"./key":29,"./signature":30,"brorand":17,"hash.js":34,"hmac-drbg":46}],29:[function(require,module,exports){ +},{"../curves":38,"../utils":46,"./key":43,"./signature":44,"brorand":31,"hash.js":48,"hmac-drbg":60}],43:[function(require,module,exports){ 'use strict'; var utils = require('../utils'); @@ -16437,7 +18210,7 @@ KeyPair.prototype.getPublic = function getPublic(enc, compact) { module.exports = KeyPair; -},{"../utils":32}],30:[function(require,module,exports){ +},{"../utils":46}],44:[function(require,module,exports){ 'use strict'; var BN = require('bn.js'); @@ -16504,7 +18277,7 @@ Signature.prototype.toHex = function toHex() { module.exports = Signature; -},{"../utils":32,"bn.js":16}],31:[function(require,module,exports){ +},{"../utils":46,"bn.js":30}],45:[function(require,module,exports){ module.exports = { doubles: { step: 4, @@ -17286,7 +19059,7 @@ module.exports = { } }; -},{}],32:[function(require,module,exports){ +},{}],46:[function(require,module,exports){ 'use strict'; var utils = exports; @@ -17408,7 +19181,7 @@ function intFromLE(bytes) { utils.intFromLE = intFromLE; -},{"bn.js":16,"minimalistic-assert":48,"minimalistic-crypto-utils":49}],33:[function(require,module,exports){ +},{"bn.js":30,"minimalistic-assert":62,"minimalistic-crypto-utils":63}],47:[function(require,module,exports){ "use strict"; // email-addresses.js - RFC 5322 email address parser @@ -18382,7 +20155,7 @@ utils.intFromLE = intFromLE; } })(undefined); -},{}],34:[function(require,module,exports){ +},{}],48:[function(require,module,exports){ var hash = exports; hash.utils = require('./hash/utils'); @@ -18399,7 +20172,7 @@ hash.sha384 = hash.sha.sha384; hash.sha512 = hash.sha.sha512; hash.ripemd160 = hash.ripemd.ripemd160; -},{"./hash/common":35,"./hash/hmac":36,"./hash/ripemd":37,"./hash/sha":38,"./hash/utils":45}],35:[function(require,module,exports){ +},{"./hash/common":49,"./hash/hmac":50,"./hash/ripemd":51,"./hash/sha":52,"./hash/utils":59}],49:[function(require,module,exports){ 'use strict'; var utils = require('./utils'); @@ -18493,7 +20266,7 @@ BlockHash.prototype._pad = function pad() { return res; }; -},{"./utils":45,"minimalistic-assert":48}],36:[function(require,module,exports){ +},{"./utils":59,"minimalistic-assert":62}],50:[function(require,module,exports){ 'use strict'; var utils = require('./utils'); @@ -18542,7 +20315,7 @@ Hmac.prototype.digest = function digest(enc) { return this.outer.digest(enc); }; -},{"./utils":45,"minimalistic-assert":48}],37:[function(require,module,exports){ +},{"./utils":59,"minimalistic-assert":62}],51:[function(require,module,exports){ 'use strict'; var utils = require('./utils'); @@ -18690,7 +20463,7 @@ var sh = [ 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11 ]; -},{"./common":35,"./utils":45}],38:[function(require,module,exports){ +},{"./common":49,"./utils":59}],52:[function(require,module,exports){ 'use strict'; exports.sha1 = require('./sha/1'); @@ -18699,7 +20472,7 @@ exports.sha256 = require('./sha/256'); exports.sha384 = require('./sha/384'); exports.sha512 = require('./sha/512'); -},{"./sha/1":39,"./sha/224":40,"./sha/256":41,"./sha/384":42,"./sha/512":43}],39:[function(require,module,exports){ +},{"./sha/1":53,"./sha/224":54,"./sha/256":55,"./sha/384":56,"./sha/512":57}],53:[function(require,module,exports){ 'use strict'; var utils = require('../utils'); @@ -18775,7 +20548,7 @@ SHA1.prototype._digest = function digest(enc) { return utils.split32(this.h, 'big'); }; -},{"../common":35,"../utils":45,"./common":44}],40:[function(require,module,exports){ +},{"../common":49,"../utils":59,"./common":58}],54:[function(require,module,exports){ 'use strict'; var utils = require('../utils'); @@ -18807,7 +20580,7 @@ SHA224.prototype._digest = function digest(enc) { }; -},{"../utils":45,"./256":41}],41:[function(require,module,exports){ +},{"../utils":59,"./256":55}],55:[function(require,module,exports){ 'use strict'; var utils = require('../utils'); @@ -18914,7 +20687,7 @@ SHA256.prototype._digest = function digest(enc) { return utils.split32(this.h, 'big'); }; -},{"../common":35,"../utils":45,"./common":44,"minimalistic-assert":48}],42:[function(require,module,exports){ +},{"../common":49,"../utils":59,"./common":58,"minimalistic-assert":62}],56:[function(require,module,exports){ 'use strict'; var utils = require('../utils'); @@ -18951,7 +20724,7 @@ SHA384.prototype._digest = function digest(enc) { return utils.split32(this.h.slice(0, 12), 'big'); }; -},{"../utils":45,"./512":43}],43:[function(require,module,exports){ +},{"../utils":59,"./512":57}],57:[function(require,module,exports){ 'use strict'; var utils = require('../utils'); @@ -19283,7 +21056,7 @@ function g1_512_lo(xh, xl) { return r; } -},{"../common":35,"../utils":45,"minimalistic-assert":48}],44:[function(require,module,exports){ +},{"../common":49,"../utils":59,"minimalistic-assert":62}],58:[function(require,module,exports){ 'use strict'; var utils = require('../utils'); @@ -19334,7 +21107,7 @@ function g1_256(x) { } exports.g1_256 = g1_256; -},{"../utils":45}],45:[function(require,module,exports){ +},{"../utils":59}],59:[function(require,module,exports){ 'use strict'; var assert = require('minimalistic-assert'); @@ -19589,7 +21362,7 @@ function shr64_lo(ah, al, num) { } exports.shr64_lo = shr64_lo; -},{"inherits":47,"minimalistic-assert":48}],46:[function(require,module,exports){ +},{"inherits":61,"minimalistic-assert":62}],60:[function(require,module,exports){ 'use strict'; var hash = require('hash.js'); @@ -19704,7 +21477,7 @@ HmacDRBG.prototype.generate = function generate(len, enc, add, addEnc) { return utils.encode(res, enc); }; -},{"hash.js":34,"minimalistic-assert":48,"minimalistic-crypto-utils":49}],47:[function(require,module,exports){ +},{"hash.js":48,"minimalistic-assert":62,"minimalistic-crypto-utils":63}],61:[function(require,module,exports){ if (typeof Object.create === 'function') { // implementation from standard node.js 'util' module module.exports = function inherits(ctor, superCtor) { @@ -19729,7 +21502,7 @@ if (typeof Object.create === 'function') { } } -},{}],48:[function(require,module,exports){ +},{}],62:[function(require,module,exports){ module.exports = assert; function assert(val, msg) { @@ -19742,7 +21515,7 @@ assert.equal = function assertEqual(l, r, msg) { throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r)); }; -},{}],49:[function(require,module,exports){ +},{}],63:[function(require,module,exports){ 'use strict'; var utils = exports; @@ -19802,7 +21575,7 @@ utils.encode = function encode(arr, enc) { return arr; }; -},{}],50:[function(require,module,exports){ +},{}],64:[function(require,module,exports){ // Top level file is just a mixin of submodules & constants 'use strict'; @@ -19818,7 +21591,7 @@ assign(pako, deflate, inflate, constants); module.exports = pako; -},{"./lib/deflate":51,"./lib/inflate":52,"./lib/utils/common":53,"./lib/zlib/constants":56}],51:[function(require,module,exports){ +},{"./lib/deflate":65,"./lib/inflate":66,"./lib/utils/common":67,"./lib/zlib/constants":70}],65:[function(require,module,exports){ 'use strict'; @@ -20220,7 +21993,7 @@ exports.deflate = deflate; exports.deflateRaw = deflateRaw; exports.gzip = gzip; -},{"./utils/common":53,"./utils/strings":54,"./zlib/deflate":58,"./zlib/messages":63,"./zlib/zstream":65}],52:[function(require,module,exports){ +},{"./utils/common":67,"./utils/strings":68,"./zlib/deflate":72,"./zlib/messages":77,"./zlib/zstream":79}],66:[function(require,module,exports){ 'use strict'; @@ -20640,7 +22413,7 @@ exports.inflate = inflate; exports.inflateRaw = inflateRaw; exports.ungzip = inflate; -},{"./utils/common":53,"./utils/strings":54,"./zlib/constants":56,"./zlib/gzheader":59,"./zlib/inflate":61,"./zlib/messages":63,"./zlib/zstream":65}],53:[function(require,module,exports){ +},{"./utils/common":67,"./utils/strings":68,"./zlib/constants":70,"./zlib/gzheader":73,"./zlib/inflate":75,"./zlib/messages":77,"./zlib/zstream":79}],67:[function(require,module,exports){ 'use strict'; @@ -20747,7 +22520,7 @@ exports.setTyped = function (on) { exports.setTyped(TYPED_OK); -},{}],54:[function(require,module,exports){ +},{}],68:[function(require,module,exports){ // String encode/decode helpers 'use strict'; @@ -20934,7 +22707,7 @@ exports.utf8border = function (buf, max) { return (pos + _utf8len[buf[pos]] > max) ? pos : max; }; -},{"./common":53}],55:[function(require,module,exports){ +},{"./common":67}],69:[function(require,module,exports){ 'use strict'; // Note: adler32 takes 12% for level 0 and 2% for level 6. @@ -20987,7 +22760,7 @@ function adler32(adler, buf, len, pos) { module.exports = adler32; -},{}],56:[function(require,module,exports){ +},{}],70:[function(require,module,exports){ 'use strict'; // (C) 1995-2013 Jean-loup Gailly and Mark Adler @@ -21057,7 +22830,7 @@ module.exports = { //Z_NULL: null // Use -1 or null inline, depending on var type }; -},{}],57:[function(require,module,exports){ +},{}],71:[function(require,module,exports){ 'use strict'; // Note: we can't get significant speed boost here. @@ -21118,7 +22891,7 @@ function crc32(crc, buf, len, pos) { module.exports = crc32; -},{}],58:[function(require,module,exports){ +},{}],72:[function(require,module,exports){ 'use strict'; // (C) 1995-2013 Jean-loup Gailly and Mark Adler @@ -22994,7 +24767,7 @@ exports.deflatePrime = deflatePrime; exports.deflateTune = deflateTune; */ -},{"../utils/common":53,"./adler32":55,"./crc32":57,"./messages":63,"./trees":64}],59:[function(require,module,exports){ +},{"../utils/common":67,"./adler32":69,"./crc32":71,"./messages":77,"./trees":78}],73:[function(require,module,exports){ 'use strict'; // (C) 1995-2013 Jean-loup Gailly and Mark Adler @@ -23054,7 +24827,7 @@ function GZheader() { module.exports = GZheader; -},{}],60:[function(require,module,exports){ +},{}],74:[function(require,module,exports){ 'use strict'; // (C) 1995-2013 Jean-loup Gailly and Mark Adler @@ -23401,7 +25174,7 @@ module.exports = function inflate_fast(strm, start) { return; }; -},{}],61:[function(require,module,exports){ +},{}],75:[function(require,module,exports){ 'use strict'; // (C) 1995-2013 Jean-loup Gailly and Mark Adler @@ -24959,7 +26732,7 @@ exports.inflateSyncPoint = inflateSyncPoint; exports.inflateUndermine = inflateUndermine; */ -},{"../utils/common":53,"./adler32":55,"./crc32":57,"./inffast":60,"./inftrees":62}],62:[function(require,module,exports){ +},{"../utils/common":67,"./adler32":69,"./crc32":71,"./inffast":74,"./inftrees":76}],76:[function(require,module,exports){ 'use strict'; // (C) 1995-2013 Jean-loup Gailly and Mark Adler @@ -25304,7 +27077,7 @@ module.exports = function inflate_table(type, lens, lens_index, codes, table, ta return 0; }; -},{"../utils/common":53}],63:[function(require,module,exports){ +},{"../utils/common":67}],77:[function(require,module,exports){ 'use strict'; // (C) 1995-2013 Jean-loup Gailly and Mark Adler @@ -25338,7 +27111,7 @@ module.exports = { '-6': 'incompatible version' /* Z_VERSION_ERROR (-6) */ }; -},{}],64:[function(require,module,exports){ +},{}],78:[function(require,module,exports){ 'use strict'; // (C) 1995-2013 Jean-loup Gailly and Mark Adler @@ -26560,7 +28333,7 @@ exports._tr_flush_block = _tr_flush_block; exports._tr_tally = _tr_tally; exports._tr_align = _tr_align; -},{"../utils/common":53}],65:[function(require,module,exports){ +},{"../utils/common":67}],79:[function(require,module,exports){ 'use strict'; // (C) 1995-2013 Jean-loup Gailly and Mark Adler @@ -26609,7 +28382,7 @@ function ZStream() { module.exports = ZStream; -},{}],66:[function(require,module,exports){ +},{}],80:[function(require,module,exports){ // shim for using process in browser var process = module.exports = {}; @@ -26795,7 +28568,7 @@ process.chdir = function (dir) { }; process.umask = function() { return 0; }; -},{}],67:[function(require,module,exports){ +},{}],81:[function(require,module,exports){ 'use strict'; /* @@ -26893,7 +28666,7 @@ function bufToHex(buf) { module.exports = BitReader; -},{}],68:[function(require,module,exports){ +},{}],82:[function(require,module,exports){ "use strict"; /* CRC32, used in Bzip2 implementation. @@ -26968,7 +28741,7 @@ module.exports = function () { return CRC32; }(); -},{}],69:[function(require,module,exports){ +},{}],83:[function(require,module,exports){ 'use strict'; /* @@ -27566,7 +29339,7 @@ Bunzip.Stream = Stream; module.exports = Bunzip; -},{"./bitreader":67,"./crc32":68,"./stream":70}],70:[function(require,module,exports){ +},{"./bitreader":81,"./crc32":82,"./stream":84}],84:[function(require,module,exports){ "use strict"; /* very simple input/output stream interface */ @@ -27611,7 +29384,7 @@ Stream.prototype.flush = function () {}; module.exports = Stream; -},{}],71:[function(require,module,exports){ +},{}],85:[function(require,module,exports){ 'use strict'; // This is free and unencumbered software released into the public domain. @@ -28254,7 +30027,7 @@ function UTF8Encoder(options) { exports.TextEncoder = TextEncoder; exports.TextDecoder = TextDecoder; -},{}],72:[function(require,module,exports){ +},{}],86:[function(require,module,exports){ /*jshint bitwise: false*/ (function(nacl) { @@ -29192,7 +30965,158 @@ nacl.setPRNG = function(fn) { })(typeof module !== 'undefined' && module.exports ? module.exports : (self.nacl = self.nacl || {})); -},{"crypto":"crypto"}],73:[function(require,module,exports){ +},{"crypto":"crypto"}],87:[function(require,module,exports){ +var indexOf = function (xs, item) { + if (xs.indexOf) return xs.indexOf(item); + else for (var i = 0; i < xs.length; i++) { + if (xs[i] === item) return i; + } + return -1; +}; +var Object_keys = function (obj) { + if (Object.keys) return Object.keys(obj) + else { + var res = []; + for (var key in obj) res.push(key) + return res; + } +}; + +var forEach = function (xs, fn) { + if (xs.forEach) return xs.forEach(fn) + else for (var i = 0; i < xs.length; i++) { + fn(xs[i], i, xs); + } +}; + +var defineProp = (function() { + try { + Object.defineProperty({}, '_', {}); + return function(obj, name, value) { + Object.defineProperty(obj, name, { + writable: true, + enumerable: false, + configurable: true, + value: value + }) + }; + } catch(e) { + return function(obj, name, value) { + obj[name] = value; + }; + } +}()); + +var globals = ['Array', 'Boolean', 'Date', 'Error', 'EvalError', 'Function', +'Infinity', 'JSON', 'Math', 'NaN', 'Number', 'Object', 'RangeError', +'ReferenceError', 'RegExp', 'String', 'SyntaxError', 'TypeError', 'URIError', +'decodeURI', 'decodeURIComponent', 'encodeURI', 'encodeURIComponent', 'escape', +'eval', 'isFinite', 'isNaN', 'parseFloat', 'parseInt', 'undefined', 'unescape']; + +function Context() {} +Context.prototype = {}; + +var Script = exports.Script = function NodeScript (code) { + if (!(this instanceof Script)) return new Script(code); + this.code = code; +}; + +Script.prototype.runInContext = function (context) { + if (!(context instanceof Context)) { + throw new TypeError("needs a 'context' argument."); + } + + var iframe = document.createElement('iframe'); + if (!iframe.style) iframe.style = {}; + iframe.style.display = 'none'; + + document.body.appendChild(iframe); + + var win = iframe.contentWindow; + var wEval = win.eval, wExecScript = win.execScript; + + if (!wEval && wExecScript) { + // win.eval() magically appears when this is called in IE: + wExecScript.call(win, 'null'); + wEval = win.eval; + } + + forEach(Object_keys(context), function (key) { + win[key] = context[key]; + }); + forEach(globals, function (key) { + if (context[key]) { + win[key] = context[key]; + } + }); + + var winKeys = Object_keys(win); + + var res = wEval.call(win, this.code); + + forEach(Object_keys(win), function (key) { + // Avoid copying circular objects like `top` and `window` by only + // updating existing context properties or new properties in the `win` + // that was only introduced after the eval. + if (key in context || indexOf(winKeys, key) === -1) { + context[key] = win[key]; + } + }); + + forEach(globals, function (key) { + if (!(key in context)) { + defineProp(context, key, win[key]); + } + }); + + document.body.removeChild(iframe); + + return res; +}; + +Script.prototype.runInThisContext = function () { + return eval(this.code); // maybe... +}; + +Script.prototype.runInNewContext = function (context) { + var ctx = Script.createContext(context); + var res = this.runInContext(ctx); + + if (context) { + forEach(Object_keys(ctx), function (key) { + context[key] = ctx[key]; + }); + } + + return res; +}; + +forEach(Object_keys(Script.prototype), function (name) { + exports[name] = Script[name] = function (code) { + var s = Script(code); + return s[name].apply(s, [].slice.call(arguments, 1)); + }; +}); + +exports.isContext = function (context) { + return context instanceof Context; +}; + +exports.createScript = function (code) { + return exports.Script(code); +}; + +exports.createContext = Script.createContext = function (context) { + var copy = new Context(); + if(typeof context === 'object') { + forEach(Object_keys(context), function (key) { + copy[key] = context[key]; + }); + } + return copy; +}; + +},{}],88:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -29308,7 +31232,7 @@ if (NodeReadableStream) { exports.nodeToWeb = nodeToWeb; exports.webToNode = webToNode; -},{"./streams":75,"./util":76,"stream":"stream"}],74:[function(require,module,exports){ +},{"./streams":90,"./util":91,"stream":"stream"}],89:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -29512,7 +31436,7 @@ Reader.prototype.readToEnd = async function (join = _streams2.default.concat) { exports.Reader = Reader; exports.externalBuffer = externalBuffer; -},{"./streams":75}],75:[function(require,module,exports){ +},{"./streams":90}],90:[function(require,module,exports){ (function (process){ 'use strict'; @@ -29974,7 +31898,7 @@ function fromAsync(fn) { exports.default = { isStream: _util.isStream, isUint8Array: _util.isUint8Array, toStream, concatUint8Array: _util.concatUint8Array, concatStream, concat, getReader, getWriter, pipe, transformRaw, transform, transformPair, parse, clone, passiveClone, slice, readToEnd, cancel, fromAsync, nodeToWeb: _nodeConversions.nodeToWeb, webToNode: _nodeConversions.webToNode }; }).call(this,require('_process')) -},{"./node-conversions":73,"./reader":74,"./util":76,"_process":66,"buffer":"buffer"}],76:[function(require,module,exports){ +},{"./node-conversions":88,"./reader":89,"./util":91,"_process":80,"buffer":"buffer"}],91:[function(require,module,exports){ (function (global){ 'use strict'; @@ -30042,7 +31966,7 @@ exports.isUint8Array = isUint8Array; exports.concatUint8Array = concatUint8Array; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"stream":"stream"}],77:[function(require,module,exports){ +},{"stream":"stream"}],92:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -30289,7 +32213,7 @@ function fromText(text) { return new CleartextMessage(text); } -},{"./encoding/armor":111,"./enums":113,"./message":126,"./packet":131,"./signature":151,"./util":158}],78:[function(require,module,exports){ +},{"./encoding/armor":126,"./enums":128,"./message":141,"./packet":146,"./signature":166,"./util":173}],93:[function(require,module,exports){ (function (global){ "use strict"; @@ -30533,7 +32457,7 @@ exports.default = { */ }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"../enums":113}],79:[function(require,module,exports){ +},{"../enums":128}],94:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -30551,7 +32475,7 @@ Object.defineProperty(exports, 'default', { function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -},{"./config.js":78}],80:[function(require,module,exports){ +},{"./config.js":93}],95:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -30721,7 +32645,7 @@ exports.default = { unwrap }; -},{"../util":158,"./cipher":86}],81:[function(require,module,exports){ +},{"../util":173,"./cipher":101}],96:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -30912,7 +32836,7 @@ function nodeDecrypt(algo, key, ct, iv) { return _webStreamTools2.default.transform(ct, value => new Uint8Array(decipherObj.update(Buffer.from(value)))); } -},{"../config":79,"../util":158,"./cipher":86,"asmcrypto.js/dist_es5/aes/cfb":5,"web-stream-tools":75}],82:[function(require,module,exports){ +},{"../config":94,"../util":173,"./cipher":101,"asmcrypto.js/dist_es5/aes/cfb":5,"web-stream-tools":90}],97:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -30945,7 +32869,7 @@ function aes(length) { exports.default = aes; -},{"asmcrypto.js/dist_es5/aes/ecb":7}],83:[function(require,module,exports){ +},{"asmcrypto.js/dist_es5/aes/ecb":7}],98:[function(require,module,exports){ "use strict"; Object.defineProperty(exports, "__esModule", { @@ -31165,7 +33089,7 @@ BF.blockSize = BF.prototype.blockSize = 8; exports.default = BF; -},{}],84:[function(require,module,exports){ +},{}],99:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -31515,7 +33439,7 @@ Cast5.keySize = Cast5.prototype.keySize = 16; exports.default = Cast5; -},{}],85:[function(require,module,exports){ +},{}],100:[function(require,module,exports){ "use strict"; Object.defineProperty(exports, "__esModule", { @@ -31895,7 +33819,7 @@ function DES(key) { exports.default = { DES, TripleDES }; -},{}],86:[function(require,module,exports){ +},{}],101:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -32008,7 +33932,7 @@ exports.default = { * @module crypto/cipher */ -},{"./aes":82,"./blowfish":83,"./cast5":84,"./des.js":85,"./twofish":87}],87:[function(require,module,exports){ +},{"./aes":97,"./blowfish":98,"./cast5":99,"./des.js":100,"./twofish":102}],102:[function(require,module,exports){ "use strict"; Object.defineProperty(exports, "__esModule", { @@ -32324,7 +34248,7 @@ TF.blockSize = TF.prototype.blockSize = 16; exports.default = TF; -},{}],88:[function(require,module,exports){ +},{}],103:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -32435,7 +34359,7 @@ async function CBC(key) { }; } -},{"../util":158,"asmcrypto.js/dist_es5/aes/cbc":4}],89:[function(require,module,exports){ +},{"../util":173,"asmcrypto.js/dist_es5/aes/cbc":4}],104:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -32888,7 +34812,7 @@ exports.default = { constructParams: constructParams }; -},{"../enums":113,"../type/ecdh_symkey":152,"../type/kdf_params":153,"../type/mpi":155,"../type/oid":156,"../util":158,"./cipher":86,"./pkcs1":96,"./pkcs5":97,"./public_key":106,"./random":109}],90:[function(require,module,exports){ +},{"../enums":128,"../type/ecdh_symkey":167,"../type/kdf_params":168,"../type/mpi":170,"../type/oid":171,"../util":173,"./cipher":101,"./pkcs1":111,"./pkcs5":112,"./public_key":121,"./random":124}],105:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -33068,7 +34992,7 @@ EAX.tagLength = tagLength; exports.default = EAX; -},{"../util":158,"./cmac":88,"asmcrypto.js/dist_es5/aes/ctr":6}],91:[function(require,module,exports){ +},{"../util":173,"./cmac":103,"asmcrypto.js/dist_es5/aes/ctr":6}],106:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -33221,7 +35145,7 @@ GCM.tagLength = tagLength; exports.default = GCM; -},{"../util":158,"asmcrypto.js/dist_es5/aes/gcm":8}],92:[function(require,module,exports){ +},{"../util":173,"asmcrypto.js/dist_es5/aes/gcm":8}],107:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -33425,7 +35349,7 @@ exports.default = { } }; -},{"../../config":79,"../../util":158,"./md5":93,"asmcrypto.js/dist_es5/hash/sha1/sha1":11,"asmcrypto.js/dist_es5/hash/sha256/sha256":13,"hash.js/lib/hash/ripemd":37,"hash.js/lib/hash/sha/224":40,"hash.js/lib/hash/sha/384":42,"hash.js/lib/hash/sha/512":43,"web-stream-tools":75}],93:[function(require,module,exports){ +},{"../../config":94,"../../util":173,"./md5":108,"asmcrypto.js/dist_es5/hash/sha1/sha1":11,"asmcrypto.js/dist_es5/hash/sha256/sha256":13,"hash.js/lib/hash/ripemd":51,"hash.js/lib/hash/sha/224":54,"hash.js/lib/hash/sha/384":56,"hash.js/lib/hash/sha/512":57,"web-stream-tools":90}],108:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -33640,7 +35564,7 @@ function add32(a, b) { exports.default = md5; -},{"../../util":158}],94:[function(require,module,exports){ +},{"../../util":173}],109:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -33743,7 +35667,7 @@ Object.assign(mod, _crypto2.default); exports.default = mod; -},{"./aes_kw":80,"./cfb":81,"./cipher":86,"./crypto":89,"./eax":90,"./gcm":91,"./hash":92,"./ocb":95,"./pkcs1":96,"./pkcs5":97,"./public_key":106,"./random":109,"./signature":110}],95:[function(require,module,exports){ +},{"./aes_kw":95,"./cfb":96,"./cipher":101,"./crypto":104,"./eax":105,"./gcm":106,"./hash":107,"./ocb":110,"./pkcs1":111,"./pkcs5":112,"./public_key":121,"./random":124,"./signature":125}],110:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -34027,7 +35951,7 @@ OCB.tagLength = tagLength; exports.default = OCB; -},{"../util":158,"./cipher":86}],96:[function(require,module,exports){ +},{"../util":173,"./cipher":101}],111:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -34202,7 +36126,7 @@ emsa.encode = async function (algo, hashed, emLen) { exports.default = { eme, emsa }; -},{"../util":158,"./hash":92,"./random":109}],97:[function(require,module,exports){ +},{"../util":173,"./hash":107,"./random":124}],112:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -34264,7 +36188,7 @@ function decode(msg) { exports.default = { encode, decode }; -},{}],98:[function(require,module,exports){ +},{}],113:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -34472,7 +36396,7 @@ exports.default = { } }; -},{"../../util":158,"../random":109,"./prime":107,"bn.js":16}],99:[function(require,module,exports){ +},{"../../util":173,"../random":124,"./prime":122,"bn.js":30}],114:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -34624,7 +36548,7 @@ exports.default = { } }; -},{"../random":109,"bn.js":16}],100:[function(require,module,exports){ +},{"../random":124,"bn.js":30}],115:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -35047,7 +36971,7 @@ function privateToJwk(payloadSize, name, publicKey, privateKey) { return jwk; } -},{"../../../enums":113,"../../../type/oid":156,"../../../util":158,"../../random":109,"./indutnyKey":105,"bn.js":16,"tweetnacl/nacl-fast-light.js":72}],101:[function(require,module,exports){ +},{"../../../enums":128,"../../../type/oid":171,"../../../util":173,"../../random":124,"./indutnyKey":120,"bn.js":30,"tweetnacl/nacl-fast-light.js":86}],116:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -35499,7 +37423,7 @@ async function nodePublicEphemeralKey(curve, Q) { exports.default = { encrypt, decrypt, genPublicEphemeralKey, genPrivateEphemeralKey, buildEcdhParam, kdf, webPublicEphemeralKey, webPrivateEphemeralKey, ellipticPublicEphemeralKey, ellipticPrivateEphemeralKey, nodePublicEphemeralKey, nodePrivateEphemeralKey, validateParams, parseParams }; -},{"../../../enums":113,"../../../util":158,"../../aes_kw":80,"../../cipher":86,"../../hash":92,"../../random":109,"./curves":100,"./indutnyKey":105,"bn.js":16,"tweetnacl/nacl-fast-light.js":72}],102:[function(require,module,exports){ +},{"../../../enums":128,"../../../util":173,"../../aes_kw":95,"../../cipher":101,"../../hash":107,"../../random":124,"./curves":115,"./indutnyKey":120,"bn.js":30,"tweetnacl/nacl-fast-light.js":86}],117:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -35833,7 +37757,7 @@ const SubjectPublicKeyInfo = nodeCrypto ? asn1.define('SubjectPublicKeyInfo', fu this.seq().obj(this.key('algorithm').use(AlgorithmIdentifier), this.key('subjectPublicKey').bitstr()); }) : undefined; -},{"../../../enums":113,"../../../util":158,"../../hash":92,"../../random":109,"./curves":100,"./indutnyKey":105,"asn1.js":"asn1.js","bn.js":16}],103:[function(require,module,exports){ +},{"../../../enums":128,"../../../util":173,"../../hash":107,"../../random":124,"./curves":115,"./indutnyKey":120,"asn1.js":16,"bn.js":30}],118:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -35973,7 +37897,7 @@ function parseParams(params) { exports.default = { sign, verify, validateParams, parseParams }; -},{"../../../util":158,"hash.js/lib/hash/sha/512":43,"tweetnacl/nacl-fast-light.js":72}],104:[function(require,module,exports){ +},{"../../../util":173,"hash.js/lib/hash/sha/512":57,"tweetnacl/nacl-fast-light.js":86}],119:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -36028,7 +37952,7 @@ exports.default = { Curve: _curves2.default, ecdh: _ecdh2.default, ecdsa: _ecdsa2.default, eddsa: _eddsa2.default, generate: _curves.generate, getPreferredHashAlgo: _curves.getPreferredHashAlgo }; -},{"./curves":100,"./ecdh":101,"./ecdsa":102,"./eddsa":103}],105:[function(require,module,exports){ +},{"./curves":115,"./ecdh":116,"./ecdsa":117,"./eddsa":118}],120:[function(require,module,exports){ (function (global){ 'use strict'; @@ -36132,7 +38056,7 @@ async function getIndutnyCurve(name) { } }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"../../../config":79,"../../../lightweight_helper":125,"../../../util":158,"elliptic":18}],106:[function(require,module,exports){ +},{"../../../config":94,"../../../lightweight_helper":140,"../../../util":173,"elliptic":32}],121:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -36182,7 +38106,7 @@ exports.default = { * @module crypto/public_key */ -},{"./dsa":98,"./elgamal":99,"./elliptic":104,"./rsa":108,"tweetnacl/nacl-fast-light.js":72}],107:[function(require,module,exports){ +},{"./dsa":113,"./elgamal":114,"./elliptic":119,"./rsa":123,"tweetnacl/nacl-fast-light.js":86}],122:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -36394,7 +38318,7 @@ async function millerRabin(n, k, rand) { return true; } -},{"../random":109,"bn.js":16}],108:[function(require,module,exports){ +},{"../random":124,"bn.js":30}],123:[function(require,module,exports){ (function (global){ 'use strict'; @@ -37032,7 +38956,7 @@ function publicToJwk(n, e) { } }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"../../config":79,"../../enums":113,"../../type/mpi":155,"../../util":158,"../pkcs1":96,"../random":109,"./prime":107,"asn1.js":"asn1.js","bn.js":16}],109:[function(require,module,exports){ +},{"../../config":94,"../../enums":128,"../../type/mpi":170,"../../util":173,"../pkcs1":111,"../random":124,"./prime":122,"asn1.js":16,"bn.js":30}],124:[function(require,module,exports){ (function (global){ 'use strict'; @@ -37195,7 +39119,7 @@ RandomBuffer.prototype.get = async function (buf) { }; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"../util":158,"bn.js":16,"crypto":"crypto"}],110:[function(require,module,exports){ +},{"../util":173,"bn.js":30,"crypto":"crypto"}],125:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -37371,7 +39295,7 @@ exports.default = { } }; -},{"../enums":113,"../util":158,"./crypto":89,"./public_key":106}],111:[function(require,module,exports){ +},{"../enums":128,"../util":173,"./crypto":104,"./public_key":121}],126:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -37819,7 +39743,7 @@ exports.default = { decode: dearmor }; -},{"../config":79,"../enums.js":113,"../util":158,"./base64.js":112,"web-stream-tools":75}],112:[function(require,module,exports){ +},{"../config":94,"../enums.js":128,"../util":173,"./base64.js":127,"web-stream-tools":90}],127:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -37930,7 +39854,7 @@ function decode(data) { exports.default = { encode, decode }; -},{"../util":158,"web-stream-tools":75}],113:[function(require,module,exports){ +},{"../util":173,"web-stream-tools":90}],128:[function(require,module,exports){ "use strict"; Object.defineProperty(exports, "__esModule", { @@ -38417,7 +40341,7 @@ exports.default = { }; -},{}],114:[function(require,module,exports){ +},{}],129:[function(require,module,exports){ (function (global){ 'use strict'; @@ -38445,7 +40369,7 @@ function HKP(keyServerBaseUrl) { /** * Search for a public key on the key server either by key ID or part of the user ID. - * @param {String} options.keyID The long public key ID. + * @param {String} options.keyId The long public key ID. * @param {String} options.query This can be any part of the key user ID such as name * or email address. * @returns {Promise} The ascii armored public key. @@ -38520,7 +40444,7 @@ HKP.prototype.upload = function (publicKeyArmored) { exports.default = HKP; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./config":79,"node-fetch":"node-fetch"}],115:[function(require,module,exports){ +},{"./config":94,"node-fetch":"node-fetch"}],130:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -38844,7 +40768,7 @@ const cleartext = exports.cleartext = cleartextMod; */ const lightweight = exports.lightweight = lightweightMod; -},{"./cleartext":77,"./config/config":78,"./crypto":94,"./encoding/armor":111,"./enums":113,"./hkp":114,"./key":118,"./keyring":122,"./lightweight_helper":125,"./message":126,"./openpgp":127,"./packet":131,"./signature":151,"./type/ecdh_symkey":152,"./type/kdf_params":153,"./type/keyid":154,"./type/mpi":155,"./type/oid":156,"./type/s2k":157,"./util":158,"./wkd":159,"./worker/async_proxy":160,"web-stream-tools":75}],116:[function(require,module,exports){ +},{"./cleartext":92,"./config/config":93,"./crypto":109,"./encoding/armor":126,"./enums":128,"./hkp":129,"./key":133,"./keyring":137,"./lightweight_helper":140,"./message":141,"./openpgp":142,"./packet":146,"./signature":166,"./type/ecdh_symkey":167,"./type/kdf_params":168,"./type/keyid":169,"./type/mpi":170,"./type/oid":171,"./type/s2k":172,"./util":173,"./wkd":174,"./worker/async_proxy":175,"web-stream-tools":90}],131:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -39195,7 +41119,7 @@ async function readArmored(armoredText) { } } -},{"../config":79,"../encoding/armor":111,"../enums":113,"../packet":131,"../util":158,"./helper":117,"./key":119}],117:[function(require,module,exports){ +},{"../config":94,"../encoding/armor":126,"../enums":128,"../packet":146,"../util":173,"./helper":132,"./key":134}],132:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -39592,7 +41516,7 @@ function isValidDecryptionKeyPacket(signature) { return !signature.keyFlags || (signature.keyFlags[0] & _enums2.default.keyFlags.encrypt_communication) !== 0 || (signature.keyFlags[0] & _enums2.default.keyFlags.encrypt_storage) !== 0; } -},{"../config":79,"../crypto":94,"../enums":113,"../packet":131,"../util":158}],118:[function(require,module,exports){ +},{"../config":94,"../crypto":109,"../enums":128,"../packet":146,"../util":173}],133:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -39623,7 +41547,7 @@ exports.Key = _key2.default; /** * @module key */ -},{"./factory":116,"./helper":117,"./key.js":119}],119:[function(require,module,exports){ +},{"./factory":131,"./helper":132,"./key.js":134}],134:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -40533,7 +42457,7 @@ Key.prototype.addSubkey = async function (options = {}) { Key.prototype[name] = _subkey2.default.prototype[name]; }); -},{"../encoding/armor":111,"../enums":113,"../packet":131,"../util":158,"./helper":117,"./subkey":120,"./user":121}],120:[function(require,module,exports){ +},{"../encoding/armor":126,"../enums":128,"../packet":146,"../util":173,"./helper":132,"./subkey":135,"./user":136}],135:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -40735,7 +42659,7 @@ SubKey.prototype.hasSameFingerprintAs = function (other) { return this.keyPacket.hasSameFingerprintAs(other.keyPacket || other); }; -},{"../enums":113,"../packet":131,"./helper":117}],121:[function(require,module,exports){ +},{"../enums":128,"../packet":146,"./helper":132}],136:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -40982,7 +42906,7 @@ User.prototype.update = async function (user, primaryKey) { }); }; -},{"../enums":113,"../packet":131,"../util":158,"./helper":117}],122:[function(require,module,exports){ +},{"../enums":128,"../packet":146,"../util":173,"./helper":132}],137:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -41009,7 +42933,7 @@ _keyring2.default.localstore = _localstore2.default; exports.default = _keyring2.default; -},{"./keyring.js":123,"./localstore.js":124}],123:[function(require,module,exports){ +},{"./keyring.js":138,"./localstore.js":139}],138:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -41248,7 +43172,7 @@ KeyArray.prototype.removeForId = function (keyId) { exports.default = Keyring; -},{"../key":118,"./localstore":124}],124:[function(require,module,exports){ +},{"../key":133,"./localstore":139}],139:[function(require,module,exports){ (function (global){ 'use strict'; @@ -41388,7 +43312,7 @@ async function storeKeys(storage, itemname, keys) { exports.default = LocalStore; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"../config":79,"../key":118,"../util":158,"node-localstorage":"node-localstorage","web-stream-tools":75}],125:[function(require,module,exports){ +},{"../config":94,"../key":133,"../util":173,"node-localstorage":"node-localstorage","web-stream-tools":90}],140:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -41421,7 +43345,7 @@ const dl = exports.dl = async function dl(path, options) { return response.arrayBuffer(); }; -},{}],126:[function(require,module,exports){ +},{}],141:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -42278,7 +44202,7 @@ function fromBinary(bytes, filename, date = new Date(), type = 'binary') { return message; } -},{"./config":79,"./crypto":94,"./encoding/armor":111,"./enums":113,"./key":118,"./packet":131,"./signature":151,"./type/keyid":154,"./util":158,"web-stream-tools":75}],127:[function(require,module,exports){ +},{"./config":94,"./crypto":109,"./encoding/armor":126,"./enums":128,"./key":133,"./packet":146,"./signature":166,"./type/keyid":169,"./util":173,"web-stream-tools":90}],142:[function(require,module,exports){ (function (global){ 'use strict'; @@ -43043,7 +44967,7 @@ function nativeAEAD() { } }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./cleartext":77,"./config/config":78,"./enums":113,"./key":118,"./message":126,"./polyfills":150,"./util":158,"./worker/async_proxy":160,"web-stream-tools":75}],128:[function(require,module,exports){ +},{"./cleartext":92,"./config/config":93,"./enums":128,"./key":133,"./message":141,"./polyfills":165,"./util":173,"./worker/async_proxy":175,"web-stream-tools":90}],143:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -43257,7 +45181,7 @@ function packetClassFromTagName(tag) { return tag.substr(0, 1).toUpperCase() + tag.substr(1); } -},{"../enums.js":113,"./all_packets.js":128,"./compressed.js":130,"./literal.js":132,"./marker.js":133,"./one_pass_signature.js":134,"./public_key.js":137,"./public_key_encrypted_session_key.js":138,"./public_subkey.js":139,"./secret_key.js":140,"./secret_subkey.js":141,"./signature.js":142,"./sym_encrypted_aead_protected.js":143,"./sym_encrypted_integrity_protected.js":144,"./sym_encrypted_session_key.js":145,"./symmetrically_encrypted.js":146,"./trust.js":147,"./user_attribute.js":148,"./userid.js":149}],129:[function(require,module,exports){ +},{"../enums.js":128,"./all_packets.js":143,"./compressed.js":145,"./literal.js":147,"./marker.js":148,"./one_pass_signature.js":149,"./public_key.js":152,"./public_key_encrypted_session_key.js":153,"./public_subkey.js":154,"./secret_key.js":155,"./secret_subkey.js":156,"./signature.js":157,"./sym_encrypted_aead_protected.js":158,"./sym_encrypted_integrity_protected.js":159,"./sym_encrypted_session_key.js":160,"./symmetrically_encrypted.js":161,"./trust.js":162,"./user_attribute.js":163,"./userid.js":164}],144:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -43472,7 +45396,7 @@ function packetlistCloneToSignature(clone) { return new _signature.Signature(packetlist); } -},{"../cleartext":77,"../key":118,"../message":126,"../signature":151,"../type/keyid":154,"../util":158,"./packetlist":136,"web-stream-tools":75}],130:[function(require,module,exports){ +},{"../cleartext":92,"../key":133,"../message":141,"../signature":166,"../type/keyid":169,"../util":173,"./packetlist":151,"web-stream-tools":90}],145:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -43693,7 +45617,7 @@ if (nodeZlib) { }; } -},{"../config":79,"../enums":113,"../util":158,"pako":50,"seek-bzip":69,"web-stream-tools":75}],131:[function(require,module,exports){ +},{"../config":94,"../enums":128,"../util":173,"pako":64,"seek-bzip":83,"web-stream-tools":90}],146:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -43731,7 +45655,7 @@ Object.assign(mod, packets); exports.default = mod; -},{"./all_packets":128,"./clone":129,"./packetlist":136}],132:[function(require,module,exports){ +},{"./all_packets":143,"./clone":144,"./packetlist":151}],147:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -43914,7 +45838,7 @@ Literal.prototype.write = function () { exports.default = Literal; -},{"../enums":113,"../util":158,"web-stream-tools":75}],133:[function(require,module,exports){ +},{"../enums":128,"../util":173,"web-stream-tools":90}],148:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -43989,7 +45913,7 @@ Marker.prototype.read = function (bytes) { exports.default = Marker; -},{"../enums":113}],134:[function(require,module,exports){ +},{"../enums":128}],149:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -44162,7 +46086,7 @@ OnePassSignature.prototype.verify = async function () { exports.default = OnePassSignature; -},{"../enums":113,"../type/keyid":154,"../util":158,"./signature":142,"web-stream-tools":75}],135:[function(require,module,exports){ +},{"../enums":128,"../type/keyid":169,"../util":173,"./signature":157,"web-stream-tools":90}],150:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -44479,7 +46403,7 @@ exports.default = { } }; -},{"../enums":113,"../util":158,"web-stream-tools":75}],136:[function(require,module,exports){ +},{"../enums":128,"../util":173,"web-stream-tools":90}],151:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -44744,7 +46668,7 @@ List.fromStructuredClone = function (packetlistClone) { exports.default = List; -},{"../config":79,"../enums":113,"../util":158,"./all_packets":128,"./packet":135,"web-stream-tools":75}],137:[function(require,module,exports){ +},{"../config":94,"../enums":128,"../util":173,"./all_packets":143,"./packet":150,"web-stream-tools":90}],152:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -45053,7 +46977,7 @@ PublicKey.prototype.postCloneTypeFix = function () { exports.default = PublicKey; -},{"../config":79,"../crypto":94,"../enums":113,"../type/keyid":154,"../type/mpi":155,"../util":158,"asmcrypto.js/dist_es5/hash/sha1/sha1":11,"asmcrypto.js/dist_es5/hash/sha256/sha256":13}],138:[function(require,module,exports){ +},{"../config":94,"../crypto":109,"../enums":128,"../type/keyid":169,"../type/mpi":170,"../util":173,"asmcrypto.js/dist_es5/hash/sha1/sha1":11,"asmcrypto.js/dist_es5/hash/sha256/sha256":13}],153:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -45234,7 +47158,7 @@ PublicKeyEncryptedSessionKey.prototype.postCloneTypeFix = function () { exports.default = PublicKeyEncryptedSessionKey; -},{"../crypto":94,"../enums":113,"../type/keyid":154,"../util":158}],139:[function(require,module,exports){ +},{"../crypto":109,"../enums":128,"../type/keyid":169,"../util":173}],154:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -45293,7 +47217,7 @@ PublicSubkey.prototype.constructor = PublicSubkey; exports.default = PublicSubkey; -},{"../enums":113,"./public_key":137}],140:[function(require,module,exports){ +},{"../enums":128,"./public_key":152}],155:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -45775,7 +47699,7 @@ SecretKey.prototype.postCloneTypeFix = function () { exports.default = SecretKey; -},{"../crypto":94,"../enums":113,"../type/keyid.js":154,"../type/s2k":157,"../util":158,"./public_key":137}],141:[function(require,module,exports){ +},{"../crypto":109,"../enums":128,"../type/keyid.js":169,"../type/s2k":172,"../util":173,"./public_key":152}],156:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -45831,7 +47755,7 @@ SecretSubkey.prototype.constructor = SecretSubkey; exports.default = SecretSubkey; -},{"../enums":113,"./secret_key":140}],142:[function(require,module,exports){ +},{"../enums":128,"./secret_key":155}],157:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -46637,7 +48561,7 @@ Signature.prototype.postCloneTypeFix = function () { exports.default = Signature; -},{"../config":79,"../crypto":94,"../enums":113,"../type/keyid.js":154,"../type/mpi.js":155,"../util":158,"./packet":135,"web-stream-tools":75}],143:[function(require,module,exports){ +},{"../config":94,"../crypto":109,"../enums":128,"../type/keyid.js":169,"../type/mpi.js":170,"../util":173,"./packet":150,"web-stream-tools":90}],158:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -46852,7 +48776,7 @@ SymEncryptedAEADProtected.prototype.crypt = async function (fn, key, data, strea }); }; -},{"../config":79,"../crypto":94,"../enums":113,"../util":158,"web-stream-tools":75}],144:[function(require,module,exports){ +},{"../config":94,"../crypto":109,"../enums":128,"../util":173,"web-stream-tools":90}],159:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -47012,7 +48936,7 @@ SymEncryptedIntegrityProtected.prototype.decrypt = async function (sessionKeyAlg exports.default = SymEncryptedIntegrityProtected; -},{"../config":79,"../crypto":94,"../enums":113,"../util":158,"web-stream-tools":75}],145:[function(require,module,exports){ +},{"../config":94,"../crypto":109,"../enums":128,"../util":173,"web-stream-tools":90}],160:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -47234,7 +49158,7 @@ SymEncryptedSessionKey.prototype.postCloneTypeFix = function () { exports.default = SymEncryptedSessionKey; -},{"../config":79,"../crypto":94,"../enums":113,"../type/s2k":157,"../util":158}],146:[function(require,module,exports){ +},{"../config":94,"../crypto":109,"../enums":128,"../type/s2k":172,"../util":173}],161:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -47371,7 +49295,7 @@ SymmetricallyEncrypted.prototype.encrypt = async function (algo, key) { exports.default = SymmetricallyEncrypted; -},{"../config":79,"../crypto":94,"../enums":113,"../util":158,"web-stream-tools":75}],147:[function(require,module,exports){ +},{"../config":94,"../crypto":109,"../enums":128,"../util":173,"web-stream-tools":90}],162:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -47418,7 +49342,7 @@ Trust.prototype.read = function () {}; // TODO exports.default = Trust; -},{"../enums":113}],148:[function(require,module,exports){ +},{"../enums":128}],163:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -47530,7 +49454,7 @@ UserAttribute.prototype.equals = function (usrAttr) { exports.default = UserAttribute; -},{"../enums":113,"../util":158,"./packet":135}],149:[function(require,module,exports){ +},{"../enums":128,"../util":173,"./packet":150}],164:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -47632,7 +49556,7 @@ Userid.prototype.format = function (userid) { exports.default = Userid; -},{"../enums":113,"../util":158}],150:[function(require,module,exports){ +},{"../enums":128,"../util":173}],165:[function(require,module,exports){ (function (global){ 'use strict'; @@ -47704,7 +49628,7 @@ if (typeof TextEncoder === 'undefined') { } }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./util":158,"@mattiasbuelens/web-streams-polyfill/es6":1,"core-js/fn/array/fill":"core-js/fn/array/fill","core-js/fn/array/find":"core-js/fn/array/find","core-js/fn/array/from":"core-js/fn/array/from","core-js/fn/array/includes":"core-js/fn/array/includes","core-js/fn/object/assign":"core-js/fn/object/assign","core-js/fn/promise":"core-js/fn/promise","core-js/fn/string/repeat":"core-js/fn/string/repeat","core-js/fn/symbol":"core-js/fn/symbol","core-js/fn/typed/uint8-array":"core-js/fn/typed/uint8-array","text-encoding-utf-8":71,"whatwg-fetch":"whatwg-fetch"}],151:[function(require,module,exports){ +},{"./util":173,"@mattiasbuelens/web-streams-polyfill/es6":1,"core-js/fn/array/fill":"core-js/fn/array/fill","core-js/fn/array/find":"core-js/fn/array/find","core-js/fn/array/from":"core-js/fn/array/from","core-js/fn/array/includes":"core-js/fn/array/includes","core-js/fn/object/assign":"core-js/fn/object/assign","core-js/fn/promise":"core-js/fn/promise","core-js/fn/string/repeat":"core-js/fn/string/repeat","core-js/fn/symbol":"core-js/fn/symbol","core-js/fn/typed/uint8-array":"core-js/fn/typed/uint8-array","text-encoding-utf-8":85,"whatwg-fetch":"whatwg-fetch"}],166:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -47797,7 +49721,7 @@ async function read(input) { return new Signature(packetlist); } -},{"./encoding/armor":111,"./enums":113,"./packet":131}],152:[function(require,module,exports){ +},{"./encoding/armor":126,"./enums":128,"./packet":146}],167:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -47878,7 +49802,7 @@ ECDHSymmetricKey.fromClone = function (clone) { exports.default = ECDHSymmetricKey; -},{"../util":158}],153:[function(require,module,exports){ +},{"../util":173}],168:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -47962,7 +49886,7 @@ KDFParams.fromClone = function (clone) { exports.default = KDFParams; -},{}],154:[function(require,module,exports){ +},{}],169:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -48085,7 +50009,7 @@ Keyid.wildcard = function () { exports.default = Keyid; -},{"../util.js":158}],155:[function(require,module,exports){ +},{"../util.js":173}],170:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -48238,7 +50162,7 @@ MPI.fromClone = function (clone) { exports.default = MPI; -},{"../util":158,"bn.js":16}],156:[function(require,module,exports){ +},{"../util":173,"bn.js":30}],171:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -48363,7 +50287,7 @@ OID.fromClone = function (clone) { exports.default = OID; -},{"../enums":113,"../util":158}],157:[function(require,module,exports){ +},{"../enums":128,"../util":173}],172:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -48587,7 +50511,7 @@ S2K.fromClone = function (clone) { exports.default = S2K; -},{"../config":79,"../crypto":94,"../enums.js":113,"../util.js":158}],158:[function(require,module,exports){ +},{"../config":94,"../crypto":109,"../enums.js":128,"../util.js":173}],173:[function(require,module,exports){ (function (global){ 'use strict'; @@ -49460,7 +51384,7 @@ exports.default = { */ }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./config":79,"./encoding/base64":112,"./util":158,"email-addresses":33,"web-stream-tools":75}],159:[function(require,module,exports){ +},{"./config":94,"./encoding/base64":127,"./util":173,"email-addresses":47,"web-stream-tools":90}],174:[function(require,module,exports){ (function (global){ 'use strict'; @@ -49571,7 +51495,7 @@ WKD.prototype.lookup = async function (options) { exports.default = WKD; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./crypto":94,"./key":118,"./util":158,"node-fetch":"node-fetch"}],160:[function(require,module,exports){ +},{"./crypto":109,"./key":133,"./util":173,"node-fetch":"node-fetch"}],175:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -49780,7 +51704,7 @@ AsyncProxy.prototype.delegate = function (method, options) { exports.default = AsyncProxy; -},{"../config":79,"../crypto":94,"../packet":131,"../util.js":158}]},{},[115])(115) +},{"../config":94,"../crypto":109,"../packet":146,"../util.js":173}]},{},[130])(130) }); diff --git a/package-lock.json b/package-lock.json index a287f515..fa6a335b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -808,13 +808,13 @@ } }, "@hashicorp/js-releases": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@hashicorp/js-releases/-/js-releases-1.2.0.tgz", - "integrity": "sha512-SXMzKOVdLKHRGSpCVowKC2vUAsvc/cZm0WRd5mOiDn/7SkTC9hFIuGUo/e8yXriJj/FbZepm/30cTKBWY/qH5w==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@hashicorp/js-releases/-/js-releases-1.2.1.tgz", + "integrity": "sha512-6rrHgqS0+NMRgbhmYNEor+pE1ZaGCLz19GMvakhJwx/H8HwDWAd3duTGq8AO7xh25WbGRHgVedo0XreHqgUZiw==", "requires": { "@types/semver": "^7.3.1", "del": "^5.1.0", - "openpgp": "^4.10.7", + "openpgp": "github:vordimous/openpgpjs", "semver": "^7.3.2", "yauzl": "^2.10.0" } @@ -5387,9 +5387,8 @@ "dev": true }, "openpgp": { - "version": "4.10.8", - "resolved": "https://registry.npmjs.org/openpgp/-/openpgp-4.10.8.tgz", - "integrity": "sha512-l+/u3TyR3+qS7mN0+HoNQRu/2BzHdLOMOOCDRLDE9gZGAqpKkD9ZD7hkpjan+GGY3f0nHaE7Qv7kI6qmQK+AkA==", + "version": "github:vordimous/openpgpjs#058265f3748b37b6e830e7e675cb28c8202aeded", + "from": "github:vordimous/openpgpjs", "requires": { "asn1.js": "^5.0.0", "node-fetch": "^2.1.2", diff --git a/package.json b/package.json index fe52a522..0b25c1ad 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "@actions/github": "^4.0.0", "@actions/io": "^1.0.2", "@actions/tool-cache": "^1.6.1", - "@hashicorp/js-releases": "^1.2.0" + "@hashicorp/js-releases": "^1.2.1" }, "devDependencies": { "@vercel/ncc": "^0.25.1", From 12850e082619576c18f128779a35191f60c979c9 Mon Sep 17 00:00:00 2001 From: Audrey Eschright Date: Wed, 9 Dec 2020 12:14:26 -0800 Subject: [PATCH 2/2] Remove install deps step for more accurate testing --- .github/workflows/setup-terraform.yml | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/.github/workflows/setup-terraform.yml b/.github/workflows/setup-terraform.yml index 530bb24f..7e8418cb 100644 --- a/.github/workflows/setup-terraform.yml +++ b/.github/workflows/setup-terraform.yml @@ -21,8 +21,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Install dependencies - run: npm ci - name: Setup Terraform - ${{ matrix['terraform-versions'] }} uses: ./ @@ -47,8 +45,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Install dependencies - run: npm ci - name: Setup Terraform (no wrapper) - ${{ matrix['terraform-versions'] }} uses: ./ @@ -74,8 +70,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Install dependencies - run: npm ci - name: Setup Terraform - ${{ matrix['terraform-versions'] }} uses: ./ @@ -95,8 +89,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Install dependencies - run: npm ci - name: Setup Terraform (no wrapper) - ${{ matrix['terraform-versions'] }} uses: ./ @@ -118,8 +110,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Install dependencies - run: npm ci - name: Setup Terraform uses: ./ @@ -149,8 +139,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Install dependencies - run: npm ci - name: Setup Terraform uses: ./ @@ -179,8 +167,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Install dependencies - run: npm ci - name: Setup Terraform uses: ./ @@ -204,8 +190,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Install dependencies - run: npm ci - name: Setup Terraform uses: ./ @@ -237,8 +221,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Install dependencies - run: npm ci - name: Setup Terraform uses: ./ @@ -275,8 +257,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Install dependencies - run: npm ci - name: Setup Terraform uses: ./ @@ -310,8 +290,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Install dependencies - run: npm ci - name: Setup Terraform uses: ./