@ledgerhq/hw-app-eth
Advanced tools
Comparing version 4.24.0 to 4.26.0-beta.ad904ce3
@@ -7,13 +7,26 @@ "use strict"; | ||
var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck"); | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); /******************************************************************************** | ||
* Ledger Node JS API | ||
* (c) 2016-2017 Ledger | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
********************************************************************************/ | ||
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); | ||
var _createClass2 = require("babel-runtime/helpers/createClass"); | ||
// FIXME drop: | ||
var _createClass3 = _interopRequireDefault(_createClass2); | ||
var _utils = require("./utils"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -30,4 +43,5 @@ /** | ||
var scrambleKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "w0w"; | ||
(0, _classCallCheck3.default)(this, Eth); | ||
_classCallCheck(this, Eth); | ||
this.transport = transport; | ||
@@ -48,3 +62,3 @@ transport.decorateAppAPIMethods(this, ["getAddress", "signTransaction", "signPersonalMessage", "getAppConfiguration"], scrambleKey); | ||
(0, _createClass3.default)(Eth, [{ | ||
_createClass(Eth, [{ | ||
key: "getAddress", | ||
@@ -191,25 +205,7 @@ value: function getAddress(path, boolDisplay, boolChaincode) { | ||
}]); | ||
return Eth; | ||
}(); /******************************************************************************** | ||
* Ledger Node JS API | ||
* (c) 2016-2017 Ledger | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
********************************************************************************/ | ||
}(); | ||
// FIXME drop: | ||
exports.default = Eth; | ||
//# sourceMappingURL=Eth.js.map |
@@ -6,7 +6,2 @@ "use strict"; | ||
}); | ||
var _promise = require("babel-runtime/core-js/promise"); | ||
var _promise2 = _interopRequireDefault(_promise); | ||
exports.defer = defer; | ||
@@ -18,9 +13,6 @@ exports.splitPath = splitPath; | ||
exports.asyncWhile = asyncWhile; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function defer() { | ||
var resolve = void 0, | ||
reject = void 0; | ||
var promise = new _promise2.default(function (success, failure) { | ||
var promise = new Promise(function (success, failure) { | ||
resolve = success; | ||
@@ -75,3 +67,3 @@ reject = failure; | ||
}); | ||
}, _promise2.default.resolve()); | ||
}, Promise.resolve()); | ||
} | ||
@@ -88,3 +80,3 @@ | ||
} | ||
return _promise2.default.resolve().then(function () { | ||
return Promise.resolve().then(function () { | ||
return iterate(0, arr, []); | ||
@@ -95,3 +87,3 @@ }); | ||
function doIf(condition, callback) { | ||
return _promise2.default.resolve().then(function () { | ||
return Promise.resolve().then(function () { | ||
if (condition) { | ||
@@ -114,4 +106,4 @@ return callback(); | ||
} | ||
return _promise2.default.resolve([]).then(iterate); | ||
return Promise.resolve([]).then(iterate); | ||
} | ||
//# sourceMappingURL=utils.js.map |
{ | ||
"name": "@ledgerhq/hw-app-eth", | ||
"version": "4.24.0", | ||
"version": "4.26.0-beta.ad904ce3", | ||
"description": "Ledger Hardware Wallet Ethereum Application API", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@ledgerhq/hw-transport": "^4.24.0" | ||
"@ledgerhq/hw-transport": "^4.26.0-beta.ad904ce3" | ||
}, | ||
@@ -31,0 +31,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58873
597
1