Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
jonwinton committed Aug 22, 2018
1 parent f1b0073 commit 32f2cf7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -708,7 +708,7 @@ import.parseBootstrap(string, url);
Parse an object of bootstrap data into a stream of prefixes dispatches. This method is good if you want to handle converting Yaml to JSON in your own application where you might need memoization. _Note: does NOT do http calls_

```js
import.parseBootstrapJson(obj, url);
import.parseBootstrapObject(obj, url);
```

Parse a string of dispatches into a stream of prefixed dispatches. _Note: does NOT do http calls_
Expand Down
4 changes: 2 additions & 2 deletions lib/cmd/import.js
Expand Up @@ -211,7 +211,7 @@ function parseDispatch(str, url) {
* @param {string} url
* @return {Stream}
*/
function parseBootstrapJson(obj, url) {
function parseBootstrapObject(obj, url) {
const prefix = config.get('url', url);

return h.of(obj)
Expand All @@ -222,4 +222,4 @@ function parseBootstrapJson(obj, url) {
module.exports = importItems;
module.exports.parseBootstrap = parseBootstrap;
module.exports.parseDispatch = parseDispatch;
module.exports.parseBootstrapJson = parseBootstrapJson;
module.exports.parseBootstrapObject = parseBootstrapObject;
4 changes: 2 additions & 2 deletions lib/cmd/import.test.js
Expand Up @@ -189,8 +189,8 @@ describe('import', () => {
});
});

describe('parseBootstrapJson', () => {
const fn = lib.parseBootstrapJson;
describe('parseBootstrapObject', () => {
const fn = lib.parseBootstrapObject;

it('parses single bootstrap into dispatch, adding prefixes', () => {
return fn({ _components: { a: { b: 'c' }} }, url).collect().toPromise(Promise).then((res) => {
Expand Down

0 comments on commit 32f2cf7

Please sign in to comment.