From 7b47b89d20198752b755ef12d23a53ec218eb8d3 Mon Sep 17 00:00:00 2001 From: yamadapc Date: Mon, 17 Jul 2017 09:34:19 -0300 Subject: [PATCH 1/4] Use a js file for methods --- src/api/{methods.json => methods.js} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename src/api/{methods.json => methods.js} (99%) diff --git a/src/api/methods.json b/src/api/methods.js similarity index 99% rename from src/api/methods.json rename to src/api/methods.js index 51f5bbaf..a93afed4 100644 --- a/src/api/methods.json +++ b/src/api/methods.js @@ -1,4 +1,4 @@ -[ +module.exports = [ { "api": "database_api", "method": "set_subscribe_callback", @@ -492,4 +492,4 @@ "method": "get_market_history_buckets", "params": [] } -] +]; From c98c17907c92fd8a238b9e885ee4f660504ef5ed Mon Sep 17 00:00:00 2001 From: yamadapc Date: Mon, 17 Jul 2017 09:36:19 -0300 Subject: [PATCH 2/4] Use a js file for operations --- src/broadcast/index.js | 2 +- src/broadcast/{operations.json => operations.js} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/broadcast/{operations.json => operations.js} (99%) diff --git a/src/broadcast/index.js b/src/broadcast/index.js index 1053aaa7..323b6e0a 100644 --- a/src/broadcast/index.js +++ b/src/broadcast/index.js @@ -3,7 +3,7 @@ import newDebug from 'debug'; import broadcastHelpers from './helpers'; import formatterFactory from '../formatter'; -import operations from './operations.json'; +import operations from './operations'; import steemApi from '../api'; import steemAuth from '../auth'; import { camelCase } from '../utils'; diff --git a/src/broadcast/operations.json b/src/broadcast/operations.js similarity index 99% rename from src/broadcast/operations.json rename to src/broadcast/operations.js index a94bae75..964893d2 100644 --- a/src/broadcast/operations.json +++ b/src/broadcast/operations.js @@ -1,4 +1,4 @@ -[ +module.exports = [ { "roles": ["posting"], "operation": "vote", @@ -493,4 +493,4 @@ "memo" ] } -] +]; From 7561963686796a171b7540226f460abb6857b4b7 Mon Sep 17 00:00:00 2001 From: yamadapc Date: Mon, 17 Jul 2017 09:42:36 -0300 Subject: [PATCH 3/4] Update webpack example without JSON loader --- examples/webpack-example/README.md | 17 ----------------- examples/webpack-example/webpack.config.js | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/examples/webpack-example/README.md b/examples/webpack-example/README.md index 4aaa441d..b2a6ba49 100644 --- a/examples/webpack-example/README.md +++ b/examples/webpack-example/README.md @@ -2,23 +2,6 @@ This is a demo of `steem-js` and webpack usage targetting both the Web and Node.js platforms. -## Minimal configuration -`steem-js` requires JSON files internally, so you need JSON loader configured: -```json -{ - ... - module: { - loaders: [ - { test: /\.json$/, loader: 'json-loader'}, - ] - } - ... -} -``` - -Make sure `resolve.extensions` and `json-loader`'s `module.loaders[...].exclude` -do not exclude `.json` files or `node_modules` from resolving. - ## Compiling the example Compiling for the web (`bundle.js`, which you can test with `open index.html`): ``` diff --git a/examples/webpack-example/webpack.config.js b/examples/webpack-example/webpack.config.js index d8a3297d..9472dec6 100644 --- a/examples/webpack-example/webpack.config.js +++ b/examples/webpack-example/webpack.config.js @@ -6,7 +6,7 @@ module.exports = { }, module: { loaders: [ - { test: /\.json$/, loader: 'json-loader'}, + // { test: /\.json$/, loader: 'json-loader'}, ] }, } From d52e5394f2c891accff44a6619079996f8b66ca5 Mon Sep 17 00:00:00 2001 From: adcpm Date: Mon, 17 Jul 2017 23:10:54 +0700 Subject: [PATCH 4/4] Release v0.6.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f0d90083..98cef63f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "steem", - "version": "0.6.0", + "version": "0.6.1", "description": "Steem.js the JavaScript API for Steem blockchain", "main": "lib/index.js", "scripts": {