@openzeppelin/hardhat-upgrades
Advanced tools
Comparing version 1.4.1 to 1.4.2
# Changelog | ||
## 1.4.2 (2020-12-04) | ||
- Fix a bug that prevented some solc errors from reaching the console. ([#253](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/253)) | ||
## 1.4.1 (2020-11-30) | ||
@@ -4,0 +8,0 @@ |
"use strict"; | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -14,5 +33,8 @@ require("@nomiclabs/hardhat-ethers"); | ||
const { output, solcBuild } = await runSuper(); | ||
const decodeSrc = upgrades_core_1.solcInputOutputDecoder(args.input, output); | ||
const validations = upgrades_core_1.validate(output, decodeSrc); | ||
await validations_1.writeValidations(hre, validations); | ||
const { isFullSolcOutput } = await Promise.resolve().then(() => __importStar(require('./utils/is-full-solc-output'))); | ||
if (isFullSolcOutput(output)) { | ||
const decodeSrc = upgrades_core_1.solcInputOutputDecoder(args.input, output); | ||
const validations = upgrades_core_1.validate(output, decodeSrc); | ||
await validations_1.writeValidations(hre, validations); | ||
} | ||
return { output, solcBuild }; | ||
@@ -19,0 +41,0 @@ }); |
{ | ||
"name": "@openzeppelin/hardhat-upgrades", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "", | ||
@@ -30,4 +30,3 @@ "repository": "https://github.com/OpenZeppelin/openzeppelin-upgrades/tree/master/packages/plugin-hardhat", | ||
"promisified": "^0.5.0", | ||
"rimraf": "^3.0.2", | ||
"ts-node": "^9.0.0" | ||
"rimraf": "^3.0.2" | ||
}, | ||
@@ -41,3 +40,3 @@ "dependencies": { | ||
}, | ||
"gitHead": "7cfc59650cd1b8f2c7615f4ecc791d162bec2e47" | ||
"gitHead": "27be6bf85b6fe45b30b6417f89fb2a28c8e1b1ab" | ||
} |
@@ -34,5 +34,10 @@ /* eslint-disable @typescript-eslint/no-var-requires */ | ||
const { output, solcBuild } = await runSuper(); | ||
const decodeSrc = solcInputOutputDecoder(args.input, output); | ||
const validations = validate(output, decodeSrc); | ||
await writeValidations(hre, validations); | ||
const { isFullSolcOutput } = await import('./utils/is-full-solc-output'); | ||
if (isFullSolcOutput(output)) { | ||
const decodeSrc = solcInputOutputDecoder(args.input, output); | ||
const validations = validate(output, decodeSrc); | ||
await writeValidations(hre, validations); | ||
} | ||
return { output, solcBuild }; | ||
@@ -39,0 +44,0 @@ }); |
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
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
54974
8
54
686