diff --git a/.nvmrc b/.nvmrc
new file mode 100644
index 0000000..dae199a
--- /dev/null
+++ b/.nvmrc
@@ -0,0 +1 @@
+v12
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5237432..9e195b7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,15 +1,64 @@
-# 0.1.6 -- unhandled promise rejection
+# Changelog
+All notable changes to this project will be documented in this file.
-1. Fixed unhandled promise rejection
-2. Removed promise watch, only for callbacks
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
-# 0.1.5 -- config fixes
+## [Unreleased]
-1. webpack config updates
-2. build config updates
+## [0.2.0]
+### Uncategorized
+- chore: add missing releases to CHANGELOG.md
+- format CHANGELOG.md
+- rename package from ethjs-filter to @metamask/ethjs-filter
+- npm v5+ compat: rename prepublish script to prepare
+- chore: add .nvmrc set to v12
+- chore: remove unused devDependencies
+- chore: remove lint:staged script
+- npm dedupe; npm audit fix
+- ci: move from TravisCI to GitHub Actions ([#4](https://github.com/legobeat/ethjs-filter/pull/4))
+- deprecate nodejs <8.17, npm<6 ([#5](https://github.com/legobeat/ethjs-filter/pull/5))
+- Check in lockfile ([#3](https://github.com/legobeat/ethjs-filter/pull/3))
+- v0.1.8
+- v0.1.7
+- v0.1.6
+- fix for BlockFilter
+- version 0.1.5 -- config fixes
+- version 0.1.4 -- minor fix to object assign
+- version 0.1.3 -- decoder, defaultTxObject
-# 0.0.1 -- ethjs-filter
+## [0.1.8]
+### Fixed
+- Remove redundant dependency `ganache-core`
-1. Basic testing
-2. Basic docs
-3. License
+## [0.1.7]
+### Changed
+- Add dependency `ganache-core`
+
+## [0.1.6]
+### Removed
+- Removed promise watch, only for callbacks
+
+### Fixed
+- Fixed unhandled promise rejection
+
+## [0.1.5]
+### Changed
+- config fixes
+ - webpack config updates
+ - build config updates
+
+## [0.0.1]
+### Added
+- ethjs-filter
+ - Basic testing
+ - Basic docs
+ - License
+
+[Unreleased]: https://github.com/legobeat/ethjs-filter/compare/v0.2.0...HEAD
+[0.2.0]: https://github.com/legobeat/ethjs-filter/compare/v0.1.8...v0.2.0
+[0.1.8]: https://github.com/legobeat/ethjs-filter/compare/v0.1.7...v0.1.8
+[0.1.7]: https://github.com/legobeat/ethjs-filter/compare/v0.1.6...v0.1.7
+[0.1.6]: https://github.com/legobeat/ethjs-filter/compare/v0.1.5...v0.1.6
+[0.1.5]: https://github.com/legobeat/ethjs-filter/compare/v0.0.1...v0.1.5
+[0.0.1]: https://github.com/legobeat/ethjs-filter/releases/tag/v0.0.1
diff --git a/README.md b/README.md
index 41dfce4..ce8645b 100644
--- a/README.md
+++ b/README.md
@@ -1,32 +1,11 @@
## ethjs-filter
@@ -36,7 +15,7 @@ A simple module for handling Ethereum RPC filters that require watching.
## Install
```
-npm install --save ethjs-filter
+npm install --save @metamask/ethjs-filter
```
## Usage
@@ -44,7 +23,7 @@ npm install --save ethjs-filter
```js
const HttpProvider = require('ethjs-provider-http');
const Eth = require('ethjs-query');
-const EthFilter = require('ethjs-filter');
+const EthFilter = require('@metamask/ethjs-filter');
const eth = new Eth(new HttpProvider('http://localhost:8545'));
const filters = new EthFilter(eth);
@@ -133,13 +112,13 @@ There is always a lot of work to do, and will have many rules to maintain. So pl
Please consult our [Code of Conduct](CODE_OF_CONDUCT.md) docs before helping out.
-We communicate via [issues](https://github.com/ethjs/ethjs-filter/issues) and [pull requests](https://github.com/ethjs/ethjs-filter/pulls).
+We communicate via [issues](https://github.com/MetaMask/ethjs-filter/issues) and [pull requests](https://github.com/MetaMask/ethjs-filter/pulls).
## Important documents
- [Changelog](CHANGELOG.md)
- [Code of Conduct](CODE_OF_CONDUCT.md)
-- [License](https://raw.githubusercontent.com/ethjs/ethjs-filter/master/LICENSE)
+- [License](https://raw.githubusercontent.com/MetaMask/ethjs-filter/main/LICENSE)
## Licence
diff --git a/docs/README.md b/docs/README.md
index 1840aa1..4e41d3b 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -10,14 +10,14 @@
### Structure
-The [`src/`](../../../tree/master/src) directory contains your entire application code, including JavaScript, and tests.
+The [`src/`](../../../tree/main/src) directory contains your entire application code, including JavaScript, and tests.
The rest of the folders and files only exist to make your life easier, and
should not need to be touched.
For more in-depth structure, see the developer-guide.md.
-*(If they do have to be changed, please [submit an issue](https://github.com/ethjs/ethjs-filter/issues)!)*
+*(If they do have to be changed, please [submit an issue](https://github.com/MetaMask/ethjs-filter/issues)!)*
### Testing
diff --git a/docs/developer-guide.md b/docs/developer-guide.md
index b0baf54..e9658da 100644
--- a/docs/developer-guide.md
+++ b/docs/developer-guide.md
@@ -5,13 +5,13 @@ All information regarding contributing to and progressing `ethjs-filter` module
## Install
```
-npm install --save ethjs-filter
+npm install --save @metamask/ethjs-filter
```
## Install from Source
```
-git clone http://github.com/ethjs/ethjs-filter
+git clone http://github.com/MetaMask/ethjs-filter
npm install
```
@@ -78,8 +78,6 @@ Note, the `./lib` dir is generated from the babel build staging. `./coverage` is
## NPM Practice
-Across all `ethjs-` repos, we enforce version hardening (i.e. "0.0.3" not "^0.0.3"). We want to reduce potential hazardous install changes from dependancies as much as possible to ensure package preformace, testing, security and design. Please make sure all your commits and PR's are version hardend if you are installing or removing new packages.
-
After build staging it is the `lib` folder which actually gets published to NPM. This allows for easy inclusion into other modules which may not use babel transpiling or which may not support es2015+.
## NPM/Node Version Requirements
diff --git a/docs/user-guide.md b/docs/user-guide.md
index a4664cc..28f215d 100644
--- a/docs/user-guide.md
+++ b/docs/user-guide.md
@@ -5,7 +5,7 @@ All information for developers using `ethjs-filter` should consult this document
## Install
```
-npm install --save ethjs-filter
+npm install --save @metamask/ethjs-filter
```
## Usage
diff --git a/package-lock.json b/package-lock.json
index 8428278..fb5b89e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
- "name": "ethjs-filter",
- "version": "0.1.8",
+ "name": "@metamask/ethjs-filter",
+ "version": "0.2.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@@ -125,7 +125,8 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz",
"integrity": "sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==",
- "dev": true
+ "dev": true,
+ "optional": true
},
"ansi-escapes": {
"version": "1.4.0",
@@ -285,12 +286,6 @@
"dev": true,
"optional": true
},
- "ast-types": {
- "version": "0.9.6",
- "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.9.6.tgz",
- "integrity": "sha512-qEdtR2UH78yyHX/AUNfXmJTlM48XoFZKBdwi1nzkI1mJL21cmbu0cvjxjpkXJ5NENMq42H+hNs8VLJcqXLerBQ==",
- "dev": true
- },
"async": {
"version": "2.6.4",
"resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz",
@@ -970,12 +965,6 @@
"safe-buffer": "^5.0.1"
}
},
- "base62": {
- "version": "1.2.8",
- "resolved": "https://registry.npmjs.org/base62/-/base62-1.2.8.tgz",
- "integrity": "sha512-V6YHUbjLxN1ymqNLb1DPHoU1CpfdL7d2YTIp5W3U4hhoG4hhxNmsFDs66M9EXxBiSEke5Bt5dwdfMwwZF70iLA==",
- "dev": true
- },
"base64-js": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
@@ -1075,12 +1064,6 @@
"integrity": "sha512-QXUSXI3QVc/gJME0dBpXrag1kbzOqCjCX8/b54ntNyW6sjtoqxqRk3LTmXzaJoh71zMsDCjM+47jS7XiwN/+fQ==",
"dev": true
},
- "bluebird": {
- "version": "3.7.2",
- "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz",
- "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==",
- "dev": true
- },
"bn.js": {
"version": "4.12.0",
"resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
@@ -1390,62 +1373,6 @@
"supports-color": "^2.0.0"
}
},
- "check-es3-syntax": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/check-es3-syntax/-/check-es3-syntax-1.0.2.tgz",
- "integrity": "sha512-lSUrOkmAE2zFu7p6nGHF+iKqaMMgsdsFy46ssIYMJ3mP8dTXHNW89gSH4IKTmAkDEm3l9YV28ll7qz63A+krkg==",
- "dev": true,
- "requires": {
- "bluebird": "^3.4.6",
- "diff": "^3.0.1",
- "es3ify": "^0.2.2",
- "fs-readdir-recursive": "^1.0.0",
- "lodash.flatten": "^4.4.0"
- }
- },
- "check-es3-syntax-cli": {
- "version": "0.1.3",
- "resolved": "https://registry.npmjs.org/check-es3-syntax-cli/-/check-es3-syntax-cli-0.1.3.tgz",
- "integrity": "sha512-mUBlgFwGzHMPt/PC7DTdFkTjUykiS23yEMDmC0Iecxph0wi+FvUyeN/SuVhhv5E1jmOIUNeMCZVN5DdYkZ8l/Q==",
- "dev": true,
- "requires": {
- "chalk": "^1.1.3",
- "check-es3-syntax": "^1.0.1",
- "yargs": "^6.2.0"
- },
- "dependencies": {
- "yargs": {
- "version": "6.6.0",
- "resolved": "https://registry.npmjs.org/yargs/-/yargs-6.6.0.tgz",
- "integrity": "sha512-6/QWTdisjnu5UHUzQGst+UOEuEVwIzFVGBjq3jMTFNs5WJQsH/X6nMURSaScIdF5txylr1Ao9bvbWiKi2yXbwA==",
- "dev": true,
- "requires": {
- "camelcase": "^3.0.0",
- "cliui": "^3.2.0",
- "decamelize": "^1.1.1",
- "get-caller-file": "^1.0.1",
- "os-locale": "^1.4.0",
- "read-pkg-up": "^1.0.1",
- "require-directory": "^2.1.1",
- "require-main-filename": "^1.0.1",
- "set-blocking": "^2.0.0",
- "string-width": "^1.0.2",
- "which-module": "^1.0.0",
- "y18n": "^3.2.1",
- "yargs-parser": "^4.2.0"
- }
- },
- "yargs-parser": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-4.2.1.tgz",
- "integrity": "sha512-+QQWqC2xeL0N5/TE+TY6OGEqyNRM+g2/r712PDNYgiCdXYCApXf1vzfmDSLBxfGRwV+moTq/V8FnMI24JCm2Yg==",
- "dev": true,
- "requires": {
- "camelcase": "^3.0.0"
- }
- }
- }
- },
"checkpoint-store": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/checkpoint-store/-/checkpoint-store-1.1.0.tgz",
@@ -1530,12 +1457,6 @@
"restore-cursor": "^1.0.1"
}
},
- "cli-spinners": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-0.1.2.tgz",
- "integrity": "sha512-t22oC6e068eEBQ86SO3arUtd1ojcA3/lz3Fp2g/oL/lmDlFz/2yD8JHiebeCGYmoAovYpwKq4T64Uq5j+28Q9w==",
- "dev": true
- },
"cli-width": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.1.tgz",
@@ -1603,34 +1524,6 @@
"integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==",
"dev": true
},
- "commoner": {
- "version": "0.10.8",
- "resolved": "https://registry.npmjs.org/commoner/-/commoner-0.10.8.tgz",
- "integrity": "sha512-3/qHkNMM6o/KGXHITA14y78PcfmXh4+AOCJpSoF73h4VY1JpdGv3CHMS5+JW6SwLhfJt4RhNmLAa7+RRX/62EQ==",
- "dev": true,
- "requires": {
- "commander": "^2.5.0",
- "detective": "^4.3.1",
- "glob": "^5.0.15",
- "graceful-fs": "^4.1.2",
- "iconv-lite": "^0.4.5",
- "mkdirp": "^0.5.0",
- "private": "^0.1.6",
- "q": "^1.1.2",
- "recast": "^0.11.17"
- },
- "dependencies": {
- "iconv-lite": {
- "version": "0.4.24",
- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
- "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
- "dev": true,
- "requires": {
- "safer-buffer": ">= 2.1.2 < 3"
- }
- }
- }
- },
"component-emitter": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz",
@@ -1693,27 +1586,6 @@
"integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",
"dev": true
},
- "coveralls": {
- "version": "2.11.9",
- "resolved": "https://registry.npmjs.org/coveralls/-/coveralls-2.11.9.tgz",
- "integrity": "sha512-2lRSlB2de2VQBrCiDbnaMxQbIEL1/Ec2MxAoX06hRaHm2iR7GI7o63JCDqz3IXUbYIIl8G40vcY1OnMBdKH0Aw==",
- "dev": true,
- "requires": {
- "js-yaml": "3.0.1",
- "lcov-parse": "0.0.6",
- "log-driver": "1.2.4",
- "minimist": "1.2.0",
- "request": "2.67.0"
- },
- "dependencies": {
- "minimist": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
- "integrity": "sha512-7Wl+Jz+IGWuSdgsQEJ4JunV0si/iMhg42MnQQG6h1R6TNeVenp4U9x5CC5v/gYqz/fENLQITAWXidNtVL0NNbw==",
- "dev": true
- }
- }
- },
"create-ecdh": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz",
@@ -2010,28 +1882,10 @@
"repeating": "^2.0.0"
}
},
- "detective": {
- "version": "4.7.1",
- "resolved": "https://registry.npmjs.org/detective/-/detective-4.7.1.tgz",
- "integrity": "sha512-H6PmeeUcZloWtdt4DAkFyzFL94arpHr3NOwwmVILFiy+9Qd4JTxxXrzfyGk/lmct2qVGBwTSwSXagqu2BxmWig==",
- "dev": true,
- "requires": {
- "acorn": "^5.2.1",
- "defined": "^1.0.0"
- },
- "dependencies": {
- "acorn": {
- "version": "5.7.4",
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.4.tgz",
- "integrity": "sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg==",
- "dev": true
- }
- }
- },
"diff": {
- "version": "3.5.0",
- "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz",
- "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==",
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/diff/-/diff-1.4.0.tgz",
+ "integrity": "sha512-VzVc42hMZbYU9Sx/ltb7KYuQ6pqAw+cbFWVy4XKdkuEL2CFaRLGEnISPs7YdzaUGpi+CpIqvRmu7hPQ4T7EQ5w==",
"dev": true
},
"diffie-hellman": {
@@ -2229,25 +2083,6 @@
"is-symbol": "^1.0.2"
}
},
- "es3ify": {
- "version": "0.2.2",
- "resolved": "https://registry.npmjs.org/es3ify/-/es3ify-0.2.2.tgz",
- "integrity": "sha512-QQ6yXmQM/cfWYj9/DM3hPRcHBZdWCoJU+35CoaMqw53sH2uqr29EZ0ne1PF/3LIG/cmawn1SbCPqcZE+siHmwg==",
- "dev": true,
- "requires": {
- "esprima": "^2.7.1",
- "jstransform": "~11.0.0",
- "through": "~2.3.4"
- },
- "dependencies": {
- "esprima": {
- "version": "2.7.3",
- "resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz",
- "integrity": "sha512-OarPfz0lFCiW4/AV2Oy1Rp9qu0iusTKqykwTspGCZtPxmF81JR4MmIebvF1F9+UOKth2ZubLQ4XGGaU+hSn99A==",
- "dev": true
- }
- }
- },
"es5-ext": {
"version": "0.10.62",
"resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.62.tgz",
@@ -2575,12 +2410,6 @@
"integrity": "sha512-rp5dMKN8zEs9dfi9g0X1ClLmV//WRyk/R15mppFNICIFRG5P92VP7Z04p8pk++gABo9W2tY+kHyu6P1mEHgmTA==",
"dev": true
},
- "esprima-fb": {
- "version": "15001.1.0-dev-harmony-fb",
- "resolved": "https://registry.npmjs.org/esprima-fb/-/esprima-fb-15001.1.0-dev-harmony-fb.tgz",
- "integrity": "sha512-59dDGQo2b3M/JfKIws0/z8dcXH2mnVHkfSPRhCYS91JNGfGNwr7GsSF6qzWZuOGvw5Ii0w9TtylrX07MGmlOoQ==",
- "dev": true
- },
"esrecurse": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
@@ -2946,12 +2775,6 @@
"integrity": "sha512-kEcvvCBByWXGnZy6JUlgAp2gBIUjfCAV6P6TgT1/aaQKcmuAEC4OZTV1I4EWQLz2gxZw76atuVyvHhTxvi0Flw==",
"dev": true
},
- "eventsource-polyfill": {
- "version": "0.9.6",
- "resolved": "https://registry.npmjs.org/eventsource-polyfill/-/eventsource-polyfill-0.9.6.tgz",
- "integrity": "sha512-LyMFp2oPDGhum2lMvkjqKZEwWd2/AoXyt8aoyftTBMWwPHNgU+2tdxhTHPluDxoz+z4gNj0uHAPR9nqevATMbg==",
- "dev": true
- },
"evp_bytestokey": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz",
@@ -3510,21 +3333,6 @@
"integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=",
"dev": true
},
- "elliptic": {
- "version": "6.5.4",
- "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz",
- "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==",
- "dev": true,
- "requires": {
- "bn.js": "^4.11.9",
- "brorand": "^1.1.0",
- "hash.js": "^1.0.0",
- "hmac-drbg": "^1.0.1",
- "inherits": "^2.0.4",
- "minimalistic-assert": "^1.0.1",
- "minimalistic-crypto-utils": "^1.0.1"
- }
- },
"emoji-regex": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz",
@@ -3964,12 +3772,6 @@
"node-gyp-build": "^4.2.0"
}
},
- "semver": {
- "version": "5.7.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
- "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
- "dev": true
- },
"set-blocking": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
@@ -5272,36 +5074,6 @@
}
}
},
- "jstransform": {
- "version": "11.0.3",
- "resolved": "https://registry.npmjs.org/jstransform/-/jstransform-11.0.3.tgz",
- "integrity": "sha512-LGm87w0A8E92RrcXt94PnNHkFqHmgDy3mKHvNZOG7QepKCTCH/VB6S+IEN+bT4uLN3gVpOT0vvOOVd96osG71g==",
- "dev": true,
- "requires": {
- "base62": "^1.1.0",
- "commoner": "^0.10.1",
- "esprima-fb": "^15001.1.0-dev-harmony-fb",
- "object-assign": "^2.0.0",
- "source-map": "^0.4.2"
- },
- "dependencies": {
- "object-assign": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-2.1.1.tgz",
- "integrity": "sha512-CdsOUYIh5wIiozhJ3rLQgmUTgcyzFwZZrqhkKhODMoGtPKM+wt0h0CNIoauJWMsS9822EdzPsF/6mb4nLvPN5g==",
- "dev": true
- },
- "source-map": {
- "version": "0.4.4",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz",
- "integrity": "sha512-Y8nIfcb1s/7DcobUz1yOO1GSp7gyL+D9zLHDehT7iRESqGSxjJ448Sg7rvfgsRJCnKLdSl11uGf0s9X80cH0/A==",
- "dev": true,
- "requires": {
- "amdefine": ">=0.0.4"
- }
- }
- }
- },
"keccak": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/keccak/-/keccak-3.0.4.tgz",
@@ -5359,12 +5131,6 @@
"invert-kv": "^1.0.0"
}
},
- "lcov-parse": {
- "version": "0.0.6",
- "resolved": "https://registry.npmjs.org/lcov-parse/-/lcov-parse-0.0.6.tgz",
- "integrity": "sha512-chuBQJZiBq28YUM6Yr3tf3h5Lxhb+DvhbxxSNpsHURSXiZXOzp49phiWG2pKHboOehJDujivwNQGRP8mAErMvQ==",
- "dev": true
- },
"level-codec": {
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/level-codec/-/level-codec-7.0.1.tgz",
@@ -5496,21 +5262,6 @@
"type-check": "~0.3.2"
}
},
- "lint-staged": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-1.0.1.tgz",
- "integrity": "sha512-xQJq1XfSBqZ/KcCvWQIrQWllVd4WiUE3K8RF/J6Pyoytm7ekdXNnFQlyH7xDLQBi1x6OQTLDkhZcbbE91+J97A==",
- "dev": true,
- "requires": {
- "minimatch": "^3.0.0",
- "npm-which": "^2.0.0",
- "object-assign": "^4.1.0",
- "ora": "^0.2.3",
- "staged-git-files": "0.0.4",
- "strip-eof": "^1.0.0",
- "which": "^1.2.9"
- }
- },
"load-json-file": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
@@ -5654,12 +5405,6 @@
"integrity": "sha512-yaRZoAV3Xq28F1iafWN1+a0rflOej93l1DQUejs3SZ41h2O9UJBoS9aueGjPDgAl4B6tPC0NuuchLKaDQQ3Isg==",
"dev": true
},
- "lodash.flatten": {
- "version": "4.4.0",
- "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz",
- "integrity": "sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g==",
- "dev": true
- },
"lodash.get": {
"version": "3.7.0",
"resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-3.7.0.tgz",
@@ -5705,12 +5450,6 @@
"integrity": "sha512-L4/arjjuq4noiUJpt3yS6KIKDtJwNe2fIYgMqyYYKoeIfV1iEqvPwhCx23o+R9dzouGihDAPN1dTIRWa7zk8tw==",
"dev": true
},
- "log-driver": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/log-driver/-/log-driver-1.2.4.tgz",
- "integrity": "sha512-QmyGbAcBbHk8ysCGtT6FQ+LZML6+EeT0NdotCJGu72kNhknXtdso1G/NI0r7j45whFYNTU15XMW+JGOvGX07QQ==",
- "dev": true
- },
"longest": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz",
@@ -5990,12 +5729,6 @@
"ms": "0.7.1"
}
},
- "diff": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/diff/-/diff-1.4.0.tgz",
- "integrity": "sha512-VzVc42hMZbYU9Sx/ltb7KYuQ6pqAw+cbFWVy4XKdkuEL2CFaRLGEnISPs7YdzaUGpi+CpIqvRmu7hPQ4T7EQ5w==",
- "dev": true
- },
"glob": {
"version": "7.0.5",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.0.5.tgz",
@@ -6241,26 +5974,6 @@
"remove-trailing-separator": "^1.0.1"
}
},
- "npm-path": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/npm-path/-/npm-path-1.1.0.tgz",
- "integrity": "sha512-wsL+YXGWlE3DWEqhpgKdt0RWxQrHKpVZ5u6uDYFSpxrxKYVPOctOun8q77VwD02zPTQD4wkc35elWPcocaICag==",
- "dev": true,
- "requires": {
- "which": "^1.2.4"
- }
- },
- "npm-which": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/npm-which/-/npm-which-2.0.0.tgz",
- "integrity": "sha512-O4xyhiv+2yDXjGYr12g/sDa+xi0//HEBqs51Wy+zLD6RfVdXXrtZAtHph5pc5kosTd2pv0pkoY2dPExp1gRJFg==",
- "dev": true,
- "requires": {
- "commander": "^2.2.0",
- "npm-path": "^1.0.0",
- "which": "^1.0.5"
- }
- },
"number-is-nan": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
@@ -6441,18 +6154,6 @@
"word-wrap": "~1.2.3"
}
},
- "ora": {
- "version": "0.2.3",
- "resolved": "https://registry.npmjs.org/ora/-/ora-0.2.3.tgz",
- "integrity": "sha512-MYGyg17e2GcoDlFrAP39zu4nrAQ+STzl4fosWjR8vAlT0a2wKuuAGZTecffdVLPsnEfxXVlrUcDZ1DU5skr+QQ==",
- "dev": true,
- "requires": {
- "chalk": "^1.1.1",
- "cli-cursor": "^1.0.2",
- "cli-spinners": "^0.1.2",
- "object-assign": "^4.0.1"
- }
- },
"os-browserify": {
"version": "0.2.1",
"resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.2.1.tgz",
@@ -6758,12 +6459,6 @@
"integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==",
"dev": true
},
- "q": {
- "version": "1.5.1",
- "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz",
- "integrity": "sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==",
- "dev": true
- },
"qs": {
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/qs/-/qs-5.2.1.tgz",
@@ -7111,26 +6806,6 @@
"mute-stream": "0.0.5"
}
},
- "recast": {
- "version": "0.11.23",
- "resolved": "https://registry.npmjs.org/recast/-/recast-0.11.23.tgz",
- "integrity": "sha512-+nixG+3NugceyR8O1bLU45qs84JgI3+8EauyRZafLgC9XbdAOIVgwV1Pe2da0YzGo62KzWoZwUpVEQf6qNAXWA==",
- "dev": true,
- "requires": {
- "ast-types": "0.9.6",
- "esprima": "~3.1.0",
- "private": "~0.1.5",
- "source-map": "~0.5.0"
- },
- "dependencies": {
- "esprima": {
- "version": "3.1.3",
- "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz",
- "integrity": "sha512-AWwVMNxwhN8+NIPQzAQZCm7RkLC4RbM3B1OobMuyp3i+w73X57KCKaVIxaRZb+DYCojq7rspo+fmuQfAboyhFg==",
- "dev": true
- }
- }
- },
"regenerate": {
"version": "1.4.2",
"resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz",
@@ -7882,12 +7557,6 @@
}
}
},
- "staged-git-files": {
- "version": "0.0.4",
- "resolved": "https://registry.npmjs.org/staged-git-files/-/staged-git-files-0.0.4.tgz",
- "integrity": "sha512-Z7i56Nz4hPXXYyO+sqQlCAaQfZHCJ+IejESNf4Zo95xlcUApvyu/pvrT1v704ldj2gFvBL3cAwdrYSB2xZsLQw==",
- "dev": true
- },
"static-extend": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz",
@@ -8011,12 +7680,6 @@
"is-utf8": "^0.2.0"
}
},
- "strip-eof": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz",
- "integrity": "sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q==",
- "dev": true
- },
"strip-hex-prefix": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/strip-hex-prefix/-/strip-hex-prefix-1.0.0.tgz",
diff --git a/package.json b/package.json
index fd2de00..87a2ee7 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
- "name": "ethjs-filter",
- "version": "0.1.8",
+ "name": "@metamask/ethjs-filter",
+ "version": "0.2.0",
"description": "A simple filter handler for the Ethereum RPC layer.",
"main": "lib/index.js",
"files": [
@@ -12,9 +12,6 @@
"scripts": {
"start": "npm test",
"release": "npmpub",
- "pretest": "npm run lint",
- "prepublish": "npm run build",
- "prebuild": "npm run build:clean && npm run test",
"build:clean": "npm run test:clean && rimraf ./dist",
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib --copy-files",
"build:umd": "cross-env BABEL_ENV=commonjs NODE_ENV=development webpack --config ./internals/webpack/webpack.config.js ./lib/index.js --progress",
@@ -23,7 +20,9 @@
"lint": "npm run lint:js",
"lint:eslint": "eslint --ignore-path .gitignore --ignore-pattern **/**.min.js",
"lint:js": "npm run lint:eslint -- . ",
- "lint:staged": "lint-staged",
+ "prebuild": "npm run build:clean && npm run test",
+ "prepare": "npm run build",
+ "pretest": "npm run lint",
"test:clean": "rimraf ./coverage",
"test": "mocha ./src/tests/**/*.js -R spec --timeout 2000000",
"test:lib": "mocha ./lib/tests/**/*.js -R spec --timeout 2000000",
@@ -31,7 +30,7 @@
},
"repository": {
"type": "git",
- "url": "git+ssh://git@github.com/ethjs/ethjs-filter.git"
+ "url": "https://github.com/MetaMask/ethjs-filter"
},
"babel": {
"plugins": [
@@ -128,8 +127,6 @@
"babel-register": "6.18.0",
"chai": "3.5.0",
"cross-env": "1.0.7",
- "check-es3-syntax-cli": "0.1.3",
- "coveralls": "2.11.9",
"eslint": "2.10.1",
"ganache-cli": "^6.12.2",
"eslint-config-airbnb": "9.0.1",
@@ -141,10 +138,8 @@
"ethjs-abi": "0.0.1",
"ethjs-query": "0.3.6",
"ethjs-sha3": "0.0.1",
- "eventsource-polyfill": "0.9.6",
"istanbul": "0.4.5",
"json-loader": "0.5.4",
- "lint-staged": "1.0.1",
"mocha": "3.1.2",
"pre-commit": "1.1.3",
"rimraf": "2.3.4",
@@ -162,12 +157,9 @@
"author": "Nick Dodson ",
"license": "MIT",
"bugs": {
- "url": "https://github.com/ethjs/ethjs-filter/issues"
- },
- "homepage": "https://github.com/ethjs/ethjs-filter#readme",
- "lint-staged": {
- "lint:eslint": "*.js"
+ "url": "https://github.com/MetaMask/ethjs-filter/issues"
},
+ "homepage": "https://github.com/MetaMask/ethjs-filter#readme",
"eslintConfig": {
"parser": "babel-eslint",
"extends": "airbnb",