New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@0x/utils

Package Overview
Dependencies
Maintainers
11
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0x/utils - npm Package Compare versions

Comparing version 5.4.1 to 5.5.0

lib/src/revert_errors/zero-ex/common_revert_errors.d.ts

34

CHANGELOG.json
[
{
"version": "5.5.0",
"changes": [
{
"note": "Add `ZeroExRevertErrors`",
"pr": 2540
},
{
"note": "Print full revert error in stack traces.",
"pr": 2540
},
{
"note": "`ZeroExRevertErrors.Migrate` -> `ZeroExRevertErrors.Ownable`",
"pr": 2564
},
{
"note": "`instanceof Array` => `Array.isArray`",
"pr": 2567
},
{
"note": "Add more `ZeroExRevertErrors`",
"pr": 2545
},
{
"note": "Add more `ZeroExRevertErrors`",
"pr": 2576
},
{
"note": "Update `ZeroExRevertErrors`",
"pr": 2597
}
],
"timestamp": 1592969527
},
{
"version": "5.4.1",

@@ -4,0 +38,0 @@ "changes": [

@@ -8,2 +8,12 @@ <!--

## v5.5.0 - _June 24, 2020_
* Add `ZeroExRevertErrors` (#2540)
* Print full revert error in stack traces. (#2540)
* `ZeroExRevertErrors.Migrate` -> `ZeroExRevertErrors.Ownable` (#2564)
* `instanceof Array` => `Array.isArray` (#2567)
* Add more `ZeroExRevertErrors` (#2545)
* Add more `ZeroExRevertErrors` (#2576)
* Update `ZeroExRevertErrors` (#2597)
## v5.4.1 - _February 25, 2020_

@@ -10,0 +20,0 @@

2

lib/src/abi_encoder/abstract_data_types/types/set.js

@@ -59,3 +59,3 @@ "use strict";

AbstractSetDataType.prototype.generateCalldataBlock = function (value, parentBlock) {
var block = value instanceof Array
var block = Array.isArray(value)
? this._generateCalldataBlockFromArray(value, parentBlock)

@@ -62,0 +62,0 @@ : this._generateCalldataBlockFromObject(value, parentBlock);

@@ -36,2 +36,11 @@ export { promisify } from './promisify';

export import SafeMathRevertErrors = require('./revert_errors/utils/safe_math_revert_errors');
export declare const ZeroExRevertErrors: {
Common: any;
Proxy: any;
SimpleFunctionRegistry: any;
Ownable: any;
Spender: any;
TransformERC20: any;
Wallet: any;
};
//# sourceMappingURL=index.d.ts.map

@@ -64,2 +64,11 @@ "use strict";

exports.SafeMathRevertErrors = require("./revert_errors/utils/safe_math_revert_errors");
exports.ZeroExRevertErrors = {
Common: require('./revert_errors/zero-ex/common_revert_errors'),
Proxy: require('./revert_errors/zero-ex/proxy_revert_errors'),
SimpleFunctionRegistry: require('./revert_errors/zero-ex/simple_function_registry_revert_errors'),
Ownable: require('./revert_errors/zero-ex/ownable_revert_errors'),
Spender: require('./revert_errors/zero-ex/spender_revert_errors'),
TransformERC20: require('./revert_errors/zero-ex/transform_erc20_revert_errors'),
Wallet: require('./revert_errors/zero-ex/wallet_revert_errors'),
};
//# sourceMappingURL=index.js.map

@@ -5,3 +5,3 @@ /// <reference types="node" />

import { BigNumber } from './configured_bignumber';
declare type ArgTypes = string | BigNumber | number | boolean | BigNumber[] | string[] | number[] | boolean[];
declare type ArgTypes = string | BigNumber | number | boolean | BigNumber[] | string[] | number[] | boolean[] | Array<BigNumber | number | string>;
declare type ValueMap = ObjectMap<ArgTypes | undefined>;

@@ -8,0 +8,0 @@ interface RevertErrorType {

@@ -161,3 +161,5 @@ "use strict";

var values = decoder(_bytes);
return _.assign(instance, { values: values });
_.assign(instance, { values: values });
instance.message = instance.toString();
return instance;
}

@@ -164,0 +166,0 @@ catch (err) {

@@ -9,2 +9,5 @@ import { BigNumber } from '../../configured_bignumber';

}
export declare class CompleteSellFailedError extends RevertError {
constructor(expectedAssetSellAmount?: BigNumber | number | string, actualAssetSellAmount?: BigNumber | number | string);
}
export declare class UnsupportedFeeError extends RevertError {

@@ -11,0 +14,0 @@ constructor(takerFeeAssetData?: string);

@@ -45,2 +45,10 @@ "use strict";

exports.CompleteBuyFailedError = CompleteBuyFailedError;
var CompleteSellFailedError = /** @class */ (function (_super) {
__extends(CompleteSellFailedError, _super);
function CompleteSellFailedError(expectedAssetSellAmount, actualAssetSellAmount) {
return _super.call(this, 'CompleteSellFailedError', 'CompleteSellFailedError(uint256 expectedAssetSellAmount, uint256 actualAssetSellAmount)', { expectedAssetSellAmount: expectedAssetSellAmount, actualAssetSellAmount: actualAssetSellAmount }) || this;
}
return CompleteSellFailedError;
}(revert_error_1.RevertError));
exports.CompleteSellFailedError = CompleteSellFailedError;
var UnsupportedFeeError = /** @class */ (function (_super) {

@@ -76,2 +84,3 @@ __extends(UnsupportedFeeError, _super);

CompleteBuyFailedError,
CompleteSellFailedError,
UnsupportedFeeError,

@@ -78,0 +87,0 @@ OverspentWethError,

{
"name": "@0x/utils",
"version": "5.4.1",
"version": "5.5.0",
"engines": {

@@ -48,4 +48,4 @@ "node": ">=6.12"

"dependencies": {
"@0x/types": "^3.1.2",
"@0x/typescript-typings": "^5.0.2",
"@0x/types": "^3.1.3",
"@0x/typescript-typings": "^5.1.0",
"@types/node": "*",

@@ -56,3 +56,3 @@ "abortcontroller-polyfill": "^1.1.9",

"detect-node": "2.0.3",
"ethereum-types": "^3.1.0",
"ethereum-types": "^3.1.1",
"ethereumjs-util": "^5.1.1",

@@ -67,3 +67,3 @@ "ethers": "~4.0.4",

},
"gitHead": "2dd47a21033c42d738503a36494505962353a3c4"
"gitHead": "7bf710f153a51d4904e37f456466fb3c0037071f"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc