Skip to content

Commit

Permalink
Merge pull request #3 from burdiuz/external_configs
Browse files Browse the repository at this point in the history
External configs
  • Loading branch information
burdiuz authored Oct 6, 2018
2 parents c11759d + b609bd8 commit 65111c8
Show file tree
Hide file tree
Showing 15 changed files with 151 additions and 194 deletions.
137 changes: 82 additions & 55 deletions dist/type-checkers.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/type-checkers.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/type-checkers.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/type-checkers.min.js.map

Large diffs are not rendered by default.

81 changes: 25 additions & 56 deletions index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.js.map

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@actualwave/type-checkers",
"description": "Framework for parameter/value analysis on access or mutation, used for type check in runtime.",
"version": "0.2.0",
"version": "0.2.1",
"main": "index.js",
"keywords": [
"js",
Expand All @@ -19,6 +19,7 @@
"url": "https://github.com/burdiuz/js-type-checkers.git"
},
"dependencies": {
"@actualwave/closure-value": "^0.0.3",
"@actualwave/get-class": "^0.0.2",
"@actualwave/has-own": "^0.0.1",
"@actualwave/is-function": "^0.0.1",
Expand Down
1 change: 1 addition & 0 deletions rollup.helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const cjsConfig = {
'@actualwave/is-function',
'@actualwave/path-sequence-to-string',
'@actualwave/with-proxy',
'@actualwave/closure-value',
],
};

Expand Down
4 changes: 2 additions & 2 deletions source/config/default-checker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { singleConfigFactory } from './utils';
import { singleValueFactory } from '@actualwave/closure-value';

export const {
get: getDefaultTypeChecker,
set: setDefaultTypeChecker,
} = singleConfigFactory();
} = singleValueFactory();
4 changes: 2 additions & 2 deletions source/config/enabled.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { singleConfigFactory } from './utils';
import { singleValueFactory } from '@actualwave/closure-value';

export const {
get: isEnabled,
set: setEnabled,
} = singleConfigFactory(true, (value) => !!value);
} = singleValueFactory(true, (value) => !!value);
Loading

0 comments on commit 65111c8

Please sign in to comment.