Skip to content

Commit

Permalink
fix(npm) Removing dot-json as a dependency from built code, and exten…
Browse files Browse the repository at this point in the history
…ding intended methods
  • Loading branch information
seanmay committed Jul 16, 2018
1 parent 4d233d5 commit 03bae67
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 deletions.
4 changes: 0 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ jobs:
name: Write auth-token
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc

- run:
name: Install dot-json
command: npm install dot-json

- run:
name: update version
command: $(yarn bin)/dot-json package.json version ${CIRCLE_TAG:1}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "io-guard",
"version": "0.2.0",
"version": "0.2.2",
"main": "./bundle.common.js",
"module": "./bundle.es6.mjs",
"types": "./dist/index.d.ts",
Expand All @@ -27,6 +27,7 @@
"@types/jest": "22",
"babel-core": "^7.0.0-beta.3",
"codecov": "^3.0.4",
"dot-json": "^1.0.4",
"jest": "22",
"rollup": "^0.62.0",
"rollup-plugin-sourcemaps": "^0.4.2",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ValidatorMap, ObjectTypeGuard, ValueMap, ValueTypeGuard, IterableTypeGuard, ArrayTypeGuard } from "./types";
import { ValidatorMap, ObjectTypeGuard, ValueMap, ValueTypeGuard, ArrayTypeGuard } from "./types";


const Guard = <T>(validators: ValidatorMap<T>): ObjectTypeGuard<T> => (
Expand Down Expand Up @@ -28,4 +28,4 @@ const GuardEach = <T>(
export { Guard, GuardEach };

export { isNumber, isString, isBoolean, isArray } from "./guards/guards";
export { compose, and, or, optional, nullable, erratic } from "./operators/operators";
export { compose, and, or, optional, nullable, erratic, unsafeTest, customTest } from "./operators/operators";
21 changes: 21 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -880,12 +880,23 @@ diff@^3.2.0:
version "3.5.0"
resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12"

docopt@~0.6.2:
version "0.6.2"
resolved "https://registry.yarnpkg.com/docopt/-/docopt-0.6.2.tgz#b28e9e2220da5ec49f7ea5bb24a47787405eeb11"

domexception@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz#937442644ca6a31261ef36e3ec677fe805582c90"
dependencies:
webidl-conversions "^4.0.2"

dot-json@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/dot-json/-/dot-json-1.0.4.tgz#b5c5818eb526a7917ac02df017fe9fba37b11195"
dependencies:
docopt "~0.6.2"
underscore-keypath "~0.0.22"

duplexer@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1"
Expand Down Expand Up @@ -3277,6 +3288,16 @@ uglify-to-browserify@~1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7"

underscore-keypath@~0.0.22:
version "0.0.22"
resolved "https://registry.yarnpkg.com/underscore-keypath/-/underscore-keypath-0.0.22.tgz#48a528392bb6efc424be1caa56da4b5faccf264d"
dependencies:
underscore "*"

underscore@*:
version "1.9.1"
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.9.1.tgz#06dce34a0e68a7babc29b365b8e74b8925203961"

union-value@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.0.tgz#5c71c34cb5bad5dcebe3ea0cd08207ba5aa1aea4"
Expand Down

0 comments on commit 03bae67

Please sign in to comment.