diff --git a/.circleci/config.yml b/.circleci/config.yml index 50ae73f..09cdf23 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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} diff --git a/package.json b/package.json index 929aaee..9da49fc 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/src/index.ts b/src/index.ts index f1227c4..885e1e3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import { ValidatorMap, ObjectTypeGuard, ValueMap, ValueTypeGuard, IterableTypeGuard, ArrayTypeGuard } from "./types"; +import { ValidatorMap, ObjectTypeGuard, ValueMap, ValueTypeGuard, ArrayTypeGuard } from "./types"; const Guard = (validators: ValidatorMap): ObjectTypeGuard => ( @@ -28,4 +28,4 @@ const GuardEach = ( 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"; diff --git a/yarn.lock b/yarn.lock index 5538724..19681ef 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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" @@ -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"