Skip to content

Commit

Permalink
expose postSignedTx, fix bundle tests, update imports to node.js esmo…
Browse files Browse the repository at this point in the history
…dules format
  • Loading branch information
shrpne committed Jan 30, 2020
1 parent e5cdd81 commit e237f2f
Show file tree
Hide file tree
Showing 70 changed files with 3,015 additions and 1,256 deletions.
17 changes: 12 additions & 5 deletions .eslintrc.js
Expand Up @@ -22,7 +22,7 @@ module.exports = {
},
// // add your custom rules here
rules: {
'indent': ["error", 4],
'indent': ['error', 4],
// allow paren-less arrow functions
'arrow-parens': 0,
// allow braces around function body
Expand All @@ -40,7 +40,7 @@ module.exports = {
'no-param-reassign': 0,
'no-underscore-dangle': 0,
'no-else-return': 0,
"no-unused-vars": ["warn", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }],
'no-unused-vars': ['warn', { 'vars': 'all', 'args': 'after-used', 'ignoreRestSiblings': false }],
'no-use-before-define' : 0,
// allow single line imports
'object-curly-newline': 0,
Expand All @@ -53,15 +53,22 @@ module.exports = {
"array": false,
"object": false
}
}]
}],
'import/extensions': ['error', 'always', {ignorePackages: true} ],
},
overrides: [
{
files: ['examples/**/*', 'test/**/*'],
rules: {
"import/no-extraneous-dependencies": 0,
'import/no-extraneous-dependencies': 0,
'no-console': 0,
}
}
},
{
files: ['test/**/*'],
rules: {
'import/extensions': 0,
}
},
]
};
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,8 @@
## 0.27.2 - 2020-01-30
- Add: expose `.postSignedTx` method on `Minter` instance
- Add: expose data constructors in index.js
- minor refactor

## 0.27.1 - 2020-01-20
- Update: allow use `RedeemCheckTxData` without `proof` and `privateKey` it will lead to empty proof

Expand Down
1 change: 1 addition & 0 deletions jest-bundle-cjs.config.js
@@ -1,6 +1,7 @@
module.exports = {
moduleNameMapper: {
'~\/src$': '<rootDir>/dist/cjs/index.js',
'~\/test\/(.*)$': '<rootDir>/test/$1',
},
testEnvironment: 'node',
};
1 change: 1 addition & 0 deletions jest-bundle.config.js
@@ -1,6 +1,7 @@
module.exports = {
moduleNameMapper: {
'~\/src$': '<rootDir>/dist/index.js',
'~\/test\/(.*)$': '<rootDir>/test/$1',
},
transform: {
'^.+\\.jsx?$': 'babel-jest',
Expand Down

0 comments on commit e237f2f

Please sign in to comment.