update to latest make-hardener (0.0.4)
adapt to changes in API and default-export
MODIFY
package-lock.json
package-lock.json
"requires": true,
"dependencies": {
"@agoric/make-hardener": {
- "version": "0.0.2",
- "resolved": "https://registry.npmjs.org/@agoric/make-hardener/-/make-hardener-0.0.2.tgz",
- "integrity": "sha512-q5fMC9l96RUC8qZrYxMz8qV6t7Z293eJ3W0O8AO74n8V2PgOT80N6MRU5McbZyM05dknAEomGaSVGsV7PV/YgQ=="
+ "version": "0.0.4",
+ "resolved": "https://registry.npmjs.org/@agoric/make-hardener/-/make-hardener-0.0.4.tgz",
+ "integrity": "sha512-0k/wGkIVQO3IY7p/H/5OS3BIXsRK9Qb7nHnqyvj6hzvSyumwgPp8e4rz5QaVWSen43TGJl+zQn4mW9ZZShT1aw=="
},
"@babel/code-frame": {
"version": "7.0.0",

MODIFY
package.json
package.json
},
"homepage": "https://github.com/Agoric/Harden#readme",
"dependencies": {
- "@agoric/make-hardener": "0.0.2"
+ "@agoric/make-hardener": "0.0.4"
},
"devDependencies": {
"eslint": "^5.3.0",

MODIFY
src/index.js
src/index.js
// See the License for the specific language governing permissions and
// limitations under the License.
-const { makeHardener } = require('@agoric/make-hardener');
+const makeHardener = require('@agoric/make-hardener');
const buildTable = require('./buildTable');
// this use of 'global' is why Harden is a "resource module", whereas
// MakeHardener is "pure".
const initialRoots = buildTable(global);
-console.log('initialRoots are', initialRoots);
+// console.log('initialRoots are', initialRoots);
-const harden = makeHardener(...initialRoots);
+const harden = makeHardener(initialRoots);
module.exports = harden;

update to latest make-hardener (0.0.4)

adapt to changes in API and default-export