Comparing version 2.1.8 to 2.1.9
@@ -0,1 +1,5 @@ | ||
## 2.1.9 (2020-01-27) | ||
- Add some preliminary typing | ||
## 2.1.8 (2020-01-22) | ||
@@ -2,0 +6,0 @@ |
// Generated by IcedCoffeeScript 108.0.11 | ||
(function() { | ||
var C, DH, EdDSA, EncKeyManager, Encryption, K, KeyManager, KeyManagerInterface, Signature, SignatureEngine, SignatureEngineInterface, akatch, alloc, asyncify, athrow, base64u, box, buffer_xor, bufferify, decode_sig, encode, errors, get_sig_body, iced, konst, make_esc, unbox, unbox_decode, __iced_k, __iced_k_noop, _ref, _ref1, | ||
var C, DH, EdDSA, EncKeyManager, Encryption, K, KeyManager, KeyManagerInterface, Signature, SignatureEngine, SignatureEngineInterface, akatch, alloc, asyncify, athrow, base64u, box, buffer_xor, bufferify, decode_sig, encode, errors, get_sig_body, iced, konst, make_esc, unbox, unbox_decode, verify, __iced_k, __iced_k_noop, _ref, _ref1, | ||
__hasProp = {}.hasOwnProperty, | ||
@@ -373,3 +373,3 @@ __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, | ||
})(), | ||
lineno: 157 | ||
lineno: 158 | ||
})); | ||
@@ -460,3 +460,3 @@ __iced_deferrals._fulfill(); | ||
})(), | ||
lineno: 200 | ||
lineno: 201 | ||
}))); | ||
@@ -483,3 +483,3 @@ __iced_deferrals._fulfill(); | ||
})(), | ||
lineno: 202 | ||
lineno: 203 | ||
}))); | ||
@@ -536,3 +536,3 @@ __iced_deferrals._fulfill(); | ||
})(), | ||
lineno: 219 | ||
lineno: 220 | ||
}))); | ||
@@ -557,3 +557,3 @@ __iced_deferrals._fulfill(); | ||
})(), | ||
lineno: 221 | ||
lineno: 222 | ||
}))); | ||
@@ -577,2 +577,56 @@ __iced_deferrals._fulfill(); | ||
verify = function(_arg, cb) { | ||
var armored, binary, err, esc, kid, km, res, ___iced_passed_deferral, __iced_deferrals, __iced_k; | ||
__iced_k = __iced_k_noop; | ||
___iced_passed_deferral = iced.findDeferral(arguments); | ||
armored = _arg.armored, binary = _arg.binary, kid = _arg.kid; | ||
esc = make_esc(cb); | ||
err = null; | ||
(function(_this) { | ||
return (function(__iced_k) { | ||
__iced_deferrals = new iced.Deferrals(__iced_k, { | ||
parent: ___iced_passed_deferral, | ||
filename: "/Users/max/src/keybase/kbpgp/src/keybase/hilev.iced" | ||
}); | ||
KeyManager.import_public({ | ||
hex: kid | ||
}, esc(__iced_deferrals.defer({ | ||
assign_fn: (function() { | ||
return function() { | ||
return km = arguments[0]; | ||
}; | ||
})(), | ||
lineno: 233 | ||
}))); | ||
__iced_deferrals._fulfill(); | ||
}); | ||
})(this)((function(_this) { | ||
return function() { | ||
(function(__iced_k) { | ||
__iced_deferrals = new iced.Deferrals(__iced_k, { | ||
parent: ___iced_passed_deferral, | ||
filename: "/Users/max/src/keybase/kbpgp/src/keybase/hilev.iced" | ||
}); | ||
unbox({ | ||
armored: armored, | ||
binary: binary | ||
}, esc(__iced_deferrals.defer({ | ||
assign_fn: (function() { | ||
return function() { | ||
return res = arguments[0]; | ||
}; | ||
})(), | ||
lineno: 234 | ||
}))); | ||
__iced_deferrals._fulfill(); | ||
})(function() { | ||
if (!res.km.check_public_eq(km)) { | ||
err = new errors.WrongSigningKeyError("Got wrong signing key"); | ||
} | ||
return cb(err, res.payload); | ||
}); | ||
}; | ||
})(this)); | ||
}; | ||
get_sig_body = function(_arg) { | ||
@@ -630,3 +684,3 @@ var armored, decoded, err, _ref2; | ||
})(), | ||
lineno: 256 | ||
lineno: 268 | ||
}))); | ||
@@ -649,3 +703,3 @@ __iced_deferrals._fulfill(); | ||
})(), | ||
lineno: 257 | ||
lineno: 269 | ||
}))); | ||
@@ -691,3 +745,3 @@ __iced_deferrals._fulfill(); | ||
})(), | ||
lineno: 270 | ||
lineno: 282 | ||
}))); | ||
@@ -739,3 +793,3 @@ __iced_deferrals._fulfill(); | ||
})(), | ||
lineno: 282 | ||
lineno: 294 | ||
}))); | ||
@@ -770,5 +824,6 @@ __iced_deferrals._fulfill(); | ||
get_sig_body: get_sig_body, | ||
encode: encode | ||
encode: encode, | ||
verify: verify | ||
}; | ||
}).call(this); |
@@ -10,4 +10,5 @@ { | ||
"author": "Maxwell Krohn", | ||
"version": "2.1.8", | ||
"version": "2.1.9", | ||
"license": "BSD-3-Clause", | ||
"types": "./index.d.ts", | ||
"main": "./lib/main.js", | ||
@@ -49,2 +50,2 @@ "directories": { | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
1262474
157
18595