Skip to content

Commit f439b2c

Browse files
author
craig
committed
1.0.4 / 2021-07-21
================== * Reverted exports, updated README.md - @craigparra
1 parent bda90f0 commit f439b2c

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

History.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
1.0.4 / 2021-07-21
2+
==================
3+
4+
* Reverted exports, updated README.md - @craigparra
5+
16
1.0.3 / 2021-07-21
27
==================
38

@@ -16,4 +21,4 @@
1621
1.0.0 / 2021-07-12
1722
==================
1823

19-
* Initial npm publish - @craigparra
24+
* Initial npm publish - @craigparra

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To use the module, simply import the substituted package as you would with the p
2222
[config](https://www.npmjs.com/package/config) package
2323

2424
```javascript
25-
const config = require('@alt-javascript/config');
25+
const {config} = require('@alt-javascript/config');
2626

2727
config.get('key');
2828
config.get('nested.key');
@@ -40,7 +40,7 @@ Config values that start with the prefix `url.` can be fetched and resolved asyn
4040
and HTTP options can be specified as in the example config file.
4141

4242
```javascript
43-
const config = require('@alt-javascript/config');
43+
const {config} = require('@alt-javascript/config');
4444
const webdata = await config.fetch('pathToUrlPrefixedValue');
4545
```
4646
> :warning: While we have implemented asynchronous fetch from "the network", we discourage it.

index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const Selector = require('./Selector');
1111
const URLResolver = require('./URLResolver');
1212
const ValueResolvingConfig = require('./ValueResolvingConfig');
1313
const ConfigFactory = require('./ConfigFactory');
14-
let config = ConfigFactory.getConfig(),
14+
1515
module.exports = {
1616
ConfigFactory,
1717
DelegatingConfig,
@@ -26,6 +26,5 @@ module.exports = {
2626
Selector,
2727
URLResolver,
2828
ValueResolvingConfig,
29-
config,
30-
default: config
29+
config : ConfigFactory.getConfig()
3130
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alt-javascript/config",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "An extensible wrapper of the popular config package, supporting placeholder resolution, encrypted values and url fetch.",
55
"author": "Craig Parravicini",
66
"keywords": [

0 commit comments

Comments
 (0)