fsevents 1.0.15 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fsevents might be problematic. Click here for more details.
- package/lib/binding/Release/node-v48-darwin-x64/fse.node +0 -0
- package/node_modules/abbrev/package.json +16 -8
- package/node_modules/ansi-regex/package.json +31 -23
- package/node_modules/ansi-styles/package.json +27 -19
- package/node_modules/aproba/package.json +16 -8
- package/node_modules/are-we-there-yet/package.json +14 -6
- package/node_modules/asn1/package.json +16 -8
- package/node_modules/assert-plus/package.json +16 -8
- package/node_modules/{node-uuid/LICENSE.md → asynckit/LICENSE} +1 -1
- package/node_modules/asynckit/README.md +233 -0
- package/node_modules/asynckit/bench.js +76 -0
- package/node_modules/asynckit/index.js +6 -0
- package/node_modules/asynckit/lib/abort.js +29 -0
- package/node_modules/asynckit/lib/async.js +34 -0
- package/node_modules/asynckit/lib/defer.js +26 -0
- package/node_modules/asynckit/lib/iterate.js +75 -0
- package/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- package/node_modules/asynckit/lib/readable_parallel.js +25 -0
- package/node_modules/asynckit/lib/readable_serial.js +25 -0
- package/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- package/node_modules/asynckit/lib/state.js +37 -0
- package/node_modules/asynckit/lib/streamify.js +141 -0
- package/node_modules/asynckit/lib/terminator.js +29 -0
- package/node_modules/asynckit/package.json +126 -0
- package/node_modules/asynckit/parallel.js +43 -0
- package/node_modules/asynckit/serial.js +17 -0
- package/node_modules/asynckit/serialOrdered.js +75 -0
- package/node_modules/asynckit/stream.js +21 -0
- package/node_modules/aws-sign2/package.json +15 -7
- package/node_modules/aws4/README.md +9 -0
- package/node_modules/aws4/aws4.js +8 -3
- package/node_modules/aws4/package.json +62 -54
- package/node_modules/balanced-match/package.json +27 -19
- package/node_modules/bcrypt-pbkdf/README.md +39 -0
- package/node_modules/bcrypt-pbkdf/index.js +559 -0
- package/node_modules/bcrypt-pbkdf/package.json +72 -0
- package/node_modules/block-stream/package.json +15 -7
- package/node_modules/boom/package.json +14 -6
- package/node_modules/brace-expansion/index.js +10 -0
- package/node_modules/brace-expansion/package.json +35 -27
- package/node_modules/buffer-shims/package.json +16 -7
- package/node_modules/caseless/package.json +18 -10
- package/node_modules/chalk/node_modules/supports-color/index.js +50 -0
- package/node_modules/{supports-color → chalk/node_modules/supports-color}/license +0 -0
- package/node_modules/chalk/node_modules/supports-color/package.json +113 -0
- package/node_modules/chalk/node_modules/supports-color/readme.md +36 -0
- package/node_modules/chalk/package.json +30 -22
- package/node_modules/code-point-at/index.js +3 -4
- package/node_modules/code-point-at/package.json +40 -30
- package/node_modules/code-point-at/readme.md +2 -4
- package/node_modules/combined-stream/package.json +15 -7
- package/node_modules/commander/package.json +16 -8
- package/node_modules/concat-map/package.json +30 -22
- package/node_modules/console-control-strings/package.json +15 -7
- package/node_modules/core-util-is/package.json +22 -14
- package/node_modules/cryptiles/package.json +14 -6
- package/node_modules/dashdash/CHANGES.md +364 -0
- package/node_modules/dashdash/LICENSE.txt +24 -0
- package/node_modules/dashdash/etc/dashdash.bash_completion.in +4 -3
- package/node_modules/dashdash/node_modules/assert-plus/package.json +16 -8
- package/node_modules/dashdash/package.json +33 -24
- package/node_modules/debug/package.json +20 -12
- package/node_modules/deep-extend/package.json +23 -15
- package/node_modules/delayed-stream/package.json +15 -7
- package/node_modules/delegates/package.json +14 -6
- package/node_modules/ecc-jsbn/package.json +17 -9
- package/node_modules/escape-string-regexp/package.json +20 -12
- package/node_modules/extend/package.json +16 -8
- package/node_modules/extsprintf/package.json +14 -6
- package/node_modules/forever-agent/package.json +15 -7
- package/node_modules/form-data/README.md +7 -8
- package/node_modules/form-data/lib/browser.js +1 -1
- package/node_modules/form-data/lib/form_data.js +101 -72
- package/node_modules/form-data/lib/populate.js +6 -5
- package/node_modules/form-data/package.json +68 -52
- package/node_modules/fs.realpath/package.json +19 -11
- package/node_modules/fstream/package.json +15 -7
- package/node_modules/fstream-ignore/package.json +15 -7
- package/node_modules/gauge/CHANGELOG.md +14 -0
- package/node_modules/gauge/README.md +4 -0
- package/node_modules/gauge/index.js +7 -3
- package/node_modules/gauge/package.json +37 -28
- package/node_modules/generate-function/package.json +16 -8
- package/node_modules/generate-object-property/package.json +14 -6
- package/node_modules/getpass/node_modules/assert-plus/package.json +16 -8
- package/node_modules/getpass/package.json +16 -8
- package/node_modules/glob/README.md +3 -0
- package/node_modules/glob/common.js +6 -1
- package/node_modules/glob/glob.js +23 -14
- package/node_modules/glob/package.json +29 -21
- package/node_modules/glob/sync.js +29 -11
- package/node_modules/graceful-fs/README.md +1 -1
- package/node_modules/graceful-fs/graceful-fs.js +23 -14
- package/node_modules/graceful-fs/package.json +35 -27
- package/node_modules/graceful-fs/polyfills.js +99 -21
- package/node_modules/graceful-readlink/package.json +14 -6
- package/node_modules/har-validator/package.json +16 -8
- package/node_modules/has-ansi/package.json +29 -21
- package/node_modules/has-unicode/package.json +18 -10
- package/node_modules/hawk/package.json +18 -10
- package/node_modules/hoek/package.json +14 -6
- package/node_modules/http-signature/package.json +14 -6
- package/node_modules/inflight/inflight.js +22 -12
- package/node_modules/inflight/package.json +28 -20
- package/node_modules/inherits/inherits.js +7 -1
- package/node_modules/inherits/package.json +41 -21
- package/node_modules/ini/package.json +15 -7
- package/node_modules/is-fullwidth-code-point/package.json +27 -19
- package/node_modules/is-my-json-valid/index.js +10 -0
- package/node_modules/is-my-json-valid/package.json +36 -20
- package/node_modules/is-my-json-valid/test/misc.js +24 -0
- package/node_modules/is-property/package.json +19 -11
- package/node_modules/is-typedarray/package.json +16 -8
- package/node_modules/isarray/package.json +28 -20
- package/node_modules/isstream/package.json +19 -11
- package/node_modules/jodid25519/package.json +18 -10
- package/node_modules/jsbn/package.json +15 -7
- package/node_modules/json-schema/lib/links.js +17 -3
- package/node_modules/json-schema/lib/validate.js +18 -5
- package/node_modules/json-schema/package.json +32 -18
- package/node_modules/json-stringify-safe/package.json +18 -10
- package/node_modules/{async/LICENSE → jsonpointer/LICENSE.md} +3 -1
- package/node_modules/jsonpointer/README.md +17 -10
- package/node_modules/jsonpointer/jsonpointer.js +73 -56
- package/node_modules/jsonpointer/package.json +47 -26
- package/node_modules/jsprim/CHANGES.md +4 -0
- package/node_modules/jsprim/package.json +25 -17
- package/node_modules/mime-db/HISTORY.md +34 -0
- package/node_modules/mime-db/db.json +86 -1
- package/node_modules/mime-db/package.json +43 -31
- package/node_modules/mime-types/HISTORY.md +13 -0
- package/node_modules/mime-types/index.js +8 -8
- package/node_modules/mime-types/package.json +31 -19
- package/node_modules/minimatch/minimatch.js +19 -20
- package/node_modules/minimatch/package.json +25 -17
- package/node_modules/minimist/package.json +24 -16
- package/node_modules/mkdirp/package.json +21 -13
- package/node_modules/ms/package.json +14 -6
- package/node_modules/node-pre-gyp/CHANGELOG.md +16 -0
- package/node_modules/node-pre-gyp/README.md +574 -0
- package/node_modules/node-pre-gyp/appveyor.yml +19 -9
- package/node_modules/node-pre-gyp/lib/install.js +31 -7
- package/node_modules/node-pre-gyp/lib/node-pre-gyp.js +2 -0
- package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +88 -0
- package/node_modules/node-pre-gyp/package.json +48 -40
- package/node_modules/nopt/package.json +19 -11
- package/node_modules/npmlog/CHANGELOG.md +9 -0
- package/node_modules/npmlog/README.md +7 -1
- package/node_modules/npmlog/log.js +12 -8
- package/node_modules/npmlog/package.json +30 -22
- package/node_modules/number-is-nan/package.json +39 -30
- package/node_modules/number-is-nan/readme.md +1 -3
- package/node_modules/oauth-sign/package.json +15 -7
- package/node_modules/object-assign/package.json +22 -14
- package/node_modules/once/README.md +28 -0
- package/node_modules/once/once.js +21 -0
- package/node_modules/once/package.json +31 -20
- package/node_modules/path-is-absolute/index.js +5 -5
- package/node_modules/path-is-absolute/package.json +45 -31
- package/node_modules/path-is-absolute/readme.md +19 -11
- package/node_modules/pinkie/package.json +18 -10
- package/node_modules/pinkie-promise/package.json +18 -10
- package/node_modules/process-nextick-args/package.json +16 -8
- package/node_modules/punycode/LICENSE-MIT.txt +20 -0
- package/node_modules/punycode/README.md +176 -0
- package/node_modules/punycode/package.json +127 -0
- package/node_modules/punycode/punycode.js +533 -0
- package/node_modules/qs/.eslintrc +15 -15
- package/node_modules/qs/CHANGELOG.md +24 -0
- package/node_modules/qs/README.md +398 -0
- package/node_modules/qs/dist/qs.js +138 -51
- package/node_modules/qs/lib/formats.js +18 -0
- package/node_modules/qs/lib/index.js +6 -4
- package/node_modules/qs/lib/parse.js +23 -24
- package/node_modules/qs/lib/stringify.js +63 -13
- package/node_modules/qs/lib/utils.js +22 -6
- package/node_modules/qs/package.json +40 -30
- package/node_modules/qs/test/.eslintrc +9 -0
- package/node_modules/qs/test/index.js +2 -0
- package/node_modules/qs/test/parse.js +81 -45
- package/node_modules/qs/test/stringify.js +260 -27
- package/node_modules/qs/test/utils.js +13 -0
- package/node_modules/rc/node_modules/minimist/package.json +24 -16
- package/node_modules/rc/package.json +21 -13
- package/node_modules/readable-stream/.npmignore +1 -0
- package/node_modules/readable-stream/.travis.yml +2 -7
- package/node_modules/readable-stream/README.md +6 -2
- package/node_modules/readable-stream/lib/_stream_readable.js +158 -110
- package/node_modules/readable-stream/lib/_stream_transform.js +7 -5
- package/node_modules/readable-stream/lib/_stream_writable.js +35 -7
- package/node_modules/readable-stream/lib/internal/streams/BufferList.js +64 -0
- package/node_modules/readable-stream/package.json +34 -26
- package/node_modules/request/CHANGELOG.md +49 -18
- package/node_modules/request/README.md +3 -2
- package/node_modules/request/index.js +2 -3
- package/node_modules/request/lib/auth.js +1 -1
- package/node_modules/request/lib/helpers.js +4 -13
- package/node_modules/request/lib/multipart.js +1 -1
- package/node_modules/request/lib/oauth.js +1 -1
- package/node_modules/request/lib/redirect.js +5 -1
- package/node_modules/request/package.json +50 -31
- package/node_modules/request/request.js +84 -43
- package/node_modules/rimraf/package.json +28 -20
- package/node_modules/rimraf/rimraf.js +2 -2
- package/node_modules/semver/README.md +4 -0
- package/node_modules/semver/package.json +27 -19
- package/node_modules/semver/semver.js +14 -5
- package/node_modules/set-blocking/package.json +21 -13
- package/node_modules/signal-exit/CHANGELOG.md +10 -0
- package/node_modules/signal-exit/LICENSE.txt +2 -0
- package/node_modules/signal-exit/index.js +9 -0
- package/node_modules/signal-exit/package.json +32 -24
- package/node_modules/signal-exit/signals.js +5 -4
- package/node_modules/sntp/package.json +16 -8
- package/node_modules/sshpk/README.md +214 -3
- package/node_modules/sshpk/bin/sshpk-conv +6 -0
- package/node_modules/sshpk/lib/certificate.js +291 -0
- package/node_modules/sshpk/lib/errors.js +14 -1
- package/node_modules/sshpk/lib/fingerprint.js +28 -7
- package/node_modules/sshpk/lib/formats/openssh-cert.js +289 -0
- package/node_modules/sshpk/lib/formats/pem.js +2 -2
- package/node_modules/sshpk/lib/formats/pkcs8.js +2 -7
- package/node_modules/sshpk/lib/formats/ssh-private.js +140 -17
- package/node_modules/sshpk/lib/formats/x509-pem.js +77 -0
- package/node_modules/sshpk/lib/formats/x509.js +484 -0
- package/node_modules/sshpk/lib/identity.js +255 -0
- package/node_modules/sshpk/lib/index.js +13 -1
- package/node_modules/sshpk/lib/key.js +1 -0
- package/node_modules/sshpk/lib/signature.js +14 -6
- package/node_modules/sshpk/lib/ssh-buffer.js +24 -0
- package/node_modules/sshpk/lib/utils.js +43 -1
- package/node_modules/sshpk/node_modules/assert-plus/package.json +16 -8
- package/node_modules/sshpk/package.json +31 -21
- package/node_modules/string-width/index.js +5 -0
- package/node_modules/string-width/package.json +49 -36
- package/node_modules/string-width/readme.md +4 -3
- package/node_modules/string_decoder/package.json +19 -11
- package/node_modules/stringstream/package.json +18 -10
- package/node_modules/strip-ansi/package.json +29 -21
- package/node_modules/strip-json-comments/package.json +27 -19
- package/node_modules/supports-color/cli.js +28 -0
- package/node_modules/supports-color/index.js +2 -20
- package/node_modules/supports-color/package.json +52 -45
- package/node_modules/supports-color/readme.md +14 -6
- package/node_modules/tar/package.json +19 -11
- package/node_modules/tar-pack/README.md +4 -1
- package/node_modules/tar-pack/index.js +17 -12
- package/node_modules/tar-pack/node_modules/once/LICENSE +15 -0
- package/node_modules/tar-pack/node_modules/once/README.md +51 -0
- package/node_modules/tar-pack/node_modules/once/once.js +21 -0
- package/node_modules/tar-pack/node_modules/once/package.json +96 -0
- package/node_modules/tar-pack/node_modules/readable-stream/.npmignore +8 -0
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/.travis.yml +4 -7
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/LICENSE +0 -0
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/README.md +2 -2
- package/node_modules/tar-pack/node_modules/readable-stream/doc/stream.md +2015 -0
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -0
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/duplex.js +0 -0
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_duplex.js +0 -0
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_passthrough.js +0 -0
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_readable.js +164 -107
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_transform.js +3 -3
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_writable.js +25 -15
- package/node_modules/tar-pack/node_modules/readable-stream/lib/internal/streams/BufferList.js +64 -0
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/package.json +50 -30
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/passthrough.js +0 -0
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/readable.js +4 -0
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/transform.js +0 -0
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/writable.js +0 -0
- package/node_modules/tar-pack/package.json +39 -22
- package/node_modules/tar-pack/test/index.js +43 -1
- package/node_modules/tough-cookie/README.md +17 -3
- package/node_modules/tough-cookie/lib/cookie.js +6 -12
- package/node_modules/tough-cookie/package.json +50 -35
- package/node_modules/tunnel-agent/package.json +15 -7
- package/node_modules/tweetnacl/AUTHORS.md +28 -0
- package/node_modules/tweetnacl/CHANGELOG.md +93 -0
- package/node_modules/tweetnacl/LICENSE +24 -0
- package/node_modules/tweetnacl/PULL_REQUEST_TEMPLATE.md +20 -0
- package/node_modules/tweetnacl/README.md +57 -61
- package/node_modules/tweetnacl/nacl-fast.js +22 -52
- package/node_modules/tweetnacl/nacl-fast.min.js +2 -2
- package/node_modules/tweetnacl/nacl.d.ts +98 -0
- package/node_modules/tweetnacl/nacl.js +21 -51
- package/node_modules/tweetnacl/nacl.min.js +1 -1
- package/node_modules/tweetnacl/package.json +47 -46
- package/node_modules/uid-number/package.json +15 -7
- package/node_modules/util-deprecate/package.json +21 -13
- package/node_modules/uuid/.npmignore +8 -0
- package/node_modules/uuid/.travis.yml +5 -0
- package/node_modules/uuid/AUTHORS +5 -0
- package/node_modules/uuid/HISTORY.md +28 -0
- package/node_modules/uuid/LICENSE.md +21 -0
- package/node_modules/uuid/README.md +132 -0
- package/node_modules/{node-uuid → uuid}/bin/uuid +0 -0
- package/node_modules/uuid/index.js +8 -0
- package/node_modules/uuid/lib/bytesToUuid.js +23 -0
- package/node_modules/uuid/lib/rng-browser.js +33 -0
- package/node_modules/uuid/lib/rng.js +10 -0
- package/node_modules/uuid/package.json +122 -0
- package/node_modules/uuid/test/mocha.opts +3 -0
- package/node_modules/uuid/test/test.js +96 -0
- package/node_modules/uuid/v1.js +103 -0
- package/node_modules/uuid/v4.js +29 -0
- package/node_modules/verror/package.json +14 -6
- package/node_modules/wide-align/package.json +19 -11
- package/node_modules/wrappy/package.json +17 -8
- package/node_modules/xtend/package.json +29 -21
- package/package.json +1 -1
- package/node_modules/async/CHANGELOG.md +0 -125
- package/node_modules/async/README.md +0 -1877
- package/node_modules/async/dist/async.js +0 -1265
- package/node_modules/async/dist/async.min.js +0 -2
- package/node_modules/async/lib/async.js +0 -1265
- package/node_modules/async/package.json +0 -149
- package/node_modules/bl/.jshintrc +0 -59
- package/node_modules/bl/.npmignore +0 -1
- package/node_modules/bl/.travis.yml +0 -13
- package/node_modules/bl/LICENSE.md +0 -13
- package/node_modules/bl/README.md +0 -200
- package/node_modules/bl/bl.js +0 -243
- package/node_modules/bl/node_modules/readable-stream/.npmignore +0 -5
- package/node_modules/bl/node_modules/readable-stream/.zuul.yml +0 -1
- package/node_modules/bl/node_modules/readable-stream/doc/stream.markdown +0 -1760
- package/node_modules/bl/package.json +0 -96
- package/node_modules/bl/test/test.js +0 -640
- package/node_modules/form-data/.dockerignore +0 -7
- package/node_modules/form-data/.editorconfig +0 -10
- package/node_modules/form-data/.eslintignore +0 -1
- package/node_modules/form-data/.eslintrc +0 -64
- package/node_modules/form-data/wercker.yml +0 -36
- package/node_modules/gauge/CHANGELOG.md~ +0 -123
- package/node_modules/gauge/README.md~ +0 -393
- package/node_modules/has-color/index.js +0 -32
- package/node_modules/has-color/package.json +0 -97
- package/node_modules/has-color/readme.md +0 -30
- package/node_modules/inherits/test.js +0 -25
- package/node_modules/jsonpointer/.travis.yml +0 -10
- package/node_modules/jsonpointer/test.js +0 -98
- package/node_modules/node-uuid/.npmignore +0 -4
- package/node_modules/node-uuid/README.md +0 -254
- package/node_modules/node-uuid/benchmark/README.md +0 -53
- package/node_modules/node-uuid/benchmark/bench.gnu +0 -174
- package/node_modules/node-uuid/benchmark/bench.sh +0 -34
- package/node_modules/node-uuid/benchmark/benchmark-native.c +0 -34
- package/node_modules/node-uuid/benchmark/benchmark.js +0 -84
- package/node_modules/node-uuid/bower.json +0 -23
- package/node_modules/node-uuid/component.json +0 -25
- package/node_modules/node-uuid/package.json +0 -105
- package/node_modules/node-uuid/test/compare_v1.js +0 -63
- package/node_modules/node-uuid/test/test.html +0 -17
- package/node_modules/node-uuid/test/test.js +0 -231
- package/node_modules/node-uuid/uuid.js +0 -272
- package/node_modules/npmlog/CHANGELOG.md~ +0 -31
- package/node_modules/qs/.jscs.json +0 -176
- package/node_modules/readable-stream/doc/stream.md +0 -1772
- package/node_modules/request/.eslintrc +0 -45
- package/node_modules/request/.npmignore +0 -6
- package/node_modules/request/.travis.yml +0 -21
- package/node_modules/request/CONTRIBUTING.md +0 -81
- package/node_modules/request/codecov.yml +0 -2
@@ -1,39 +1,47 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
4
|
+
{
|
5
|
+
"raw": "is-my-json-valid@^2.12.4",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "is-my-json-valid",
|
8
|
+
"name": "is-my-json-valid",
|
9
|
+
"rawSpec": "^2.12.4",
|
10
|
+
"spec": ">=2.12.4 <3.0.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
5
13
|
"/Users/eshanker/Code/fsevents/node_modules/har-validator"
|
6
14
|
]
|
7
15
|
],
|
8
16
|
"_from": "is-my-json-valid@>=2.12.4 <3.0.0",
|
9
|
-
"_id": "is-my-json-valid@2.
|
17
|
+
"_id": "is-my-json-valid@2.15.0",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/is-my-json-valid",
|
13
|
-
"_nodeVersion": "4.2.
|
20
|
+
"_nodeVersion": "4.2.6",
|
14
21
|
"_npmOperationalInternal": {
|
15
|
-
"host": "packages-
|
16
|
-
"tmp": "tmp/is-my-json-valid-2.
|
22
|
+
"host": "packages-16-east.internal.npmjs.com",
|
23
|
+
"tmp": "tmp/is-my-json-valid-2.15.0.tgz_1475420473174_0.8758093405049294"
|
17
24
|
},
|
18
25
|
"_npmUser": {
|
19
|
-
"
|
20
|
-
"
|
26
|
+
"name": "mafintosh",
|
27
|
+
"email": "mathiasbuus@gmail.com"
|
21
28
|
},
|
22
|
-
"_npmVersion": "2.14.
|
29
|
+
"_npmVersion": "2.14.12",
|
23
30
|
"_phantomChildren": {},
|
24
31
|
"_requested": {
|
25
|
-
"name": "is-my-json-valid",
|
26
32
|
"raw": "is-my-json-valid@^2.12.4",
|
27
|
-
"rawSpec": "^2.12.4",
|
28
33
|
"scope": null,
|
34
|
+
"escapedName": "is-my-json-valid",
|
35
|
+
"name": "is-my-json-valid",
|
36
|
+
"rawSpec": "^2.12.4",
|
29
37
|
"spec": ">=2.12.4 <3.0.0",
|
30
38
|
"type": "range"
|
31
39
|
},
|
32
40
|
"_requiredBy": [
|
33
41
|
"/har-validator"
|
34
42
|
],
|
35
|
-
"_resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.
|
36
|
-
"_shasum": "
|
43
|
+
"_resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.15.0.tgz",
|
44
|
+
"_shasum": "936edda3ca3c211fd98f3b2d3e08da43f7b2915b",
|
37
45
|
"_shrinkwrap": null,
|
38
46
|
"_spec": "is-my-json-valid@^2.12.4",
|
39
47
|
"_where": "/Users/eshanker/Code/fsevents/node_modules/har-validator",
|
@@ -46,7 +54,7 @@
|
|
46
54
|
"dependencies": {
|
47
55
|
"generate-function": "^2.0.0",
|
48
56
|
"generate-object-property": "^1.1.0",
|
49
|
-
"jsonpointer": "
|
57
|
+
"jsonpointer": "^4.0.0",
|
50
58
|
"xtend": "^4.0.0"
|
51
59
|
},
|
52
60
|
"description": "A JSONSchema validator that uses code generation to be extremely fast",
|
@@ -55,20 +63,28 @@
|
|
55
63
|
},
|
56
64
|
"directories": {},
|
57
65
|
"dist": {
|
58
|
-
"shasum": "
|
59
|
-
"tarball": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.
|
66
|
+
"shasum": "936edda3ca3c211fd98f3b2d3e08da43f7b2915b",
|
67
|
+
"tarball": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.15.0.tgz"
|
60
68
|
},
|
61
|
-
"gitHead": "
|
69
|
+
"gitHead": "c4da71bf1e57083d2dac6e7d123d2e8bd6b9255e",
|
62
70
|
"homepage": "https://github.com/mafintosh/is-my-json-valid",
|
63
71
|
"keywords": [
|
64
72
|
"json",
|
65
|
-
"
|
73
|
+
"schema",
|
66
74
|
"orderly",
|
67
|
-
"
|
75
|
+
"jsonschema"
|
68
76
|
],
|
69
77
|
"license": "MIT",
|
70
78
|
"main": "index.js",
|
71
79
|
"maintainers": [
|
80
|
+
{
|
81
|
+
"name": "emilbay",
|
82
|
+
"email": "github@tixz.dk"
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"name": "emilbayes",
|
86
|
+
"email": "github@tixz.dk"
|
87
|
+
},
|
72
88
|
{
|
73
89
|
"name": "freeall",
|
74
90
|
"email": "freeall@gmail.com"
|
@@ -96,5 +112,5 @@
|
|
96
112
|
"scripts": {
|
97
113
|
"test": "tape test/*.js"
|
98
114
|
},
|
99
|
-
"version": "2.
|
115
|
+
"version": "2.15.0"
|
100
116
|
}
|
@@ -20,6 +20,14 @@ tape('simple', function(t) {
|
|
20
20
|
t.end()
|
21
21
|
})
|
22
22
|
|
23
|
+
tape('data is undefined', function (t) {
|
24
|
+
var validate = validator({type: 'string'})
|
25
|
+
|
26
|
+
t.notOk(validate(null))
|
27
|
+
t.notOk(validate(undefined))
|
28
|
+
t.end()
|
29
|
+
})
|
30
|
+
|
23
31
|
tape('advanced', function(t) {
|
24
32
|
var validate = validator(cosmic.schema)
|
25
33
|
|
@@ -194,6 +202,22 @@ tape('exclusiveMinimum/exclusiveMaximum', function(t) {
|
|
194
202
|
t.end()
|
195
203
|
})
|
196
204
|
|
205
|
+
tape('minimum/maximum number type', function(t) {
|
206
|
+
var validate = validator({
|
207
|
+
type: ['integer', 'null'],
|
208
|
+
minimum: 1,
|
209
|
+
maximum: 100
|
210
|
+
})
|
211
|
+
|
212
|
+
t.notOk(validate(-1))
|
213
|
+
t.notOk(validate(0))
|
214
|
+
t.ok(validate(null))
|
215
|
+
t.ok(validate(1))
|
216
|
+
t.ok(validate(100))
|
217
|
+
t.notOk(validate(101))
|
218
|
+
t.end()
|
219
|
+
})
|
220
|
+
|
197
221
|
tape('custom format', function(t) {
|
198
222
|
var validate = validator({
|
199
223
|
type: 'object',
|
@@ -1,27 +1,35 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
4
|
+
{
|
5
|
+
"raw": "is-property@^1.0.0",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "is-property",
|
8
|
+
"name": "is-property",
|
9
|
+
"rawSpec": "^1.0.0",
|
10
|
+
"spec": ">=1.0.0 <2.0.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
5
13
|
"/Users/eshanker/Code/fsevents/node_modules/generate-object-property"
|
6
14
|
]
|
7
15
|
],
|
8
16
|
"_from": "is-property@>=1.0.0 <2.0.0",
|
9
17
|
"_id": "is-property@1.0.2",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/is-property",
|
13
20
|
"_nodeVersion": "0.10.26",
|
14
21
|
"_npmUser": {
|
15
|
-
"
|
16
|
-
"
|
22
|
+
"name": "mikolalysenko",
|
23
|
+
"email": "mikolalysenko@gmail.com"
|
17
24
|
},
|
18
25
|
"_npmVersion": "2.1.4",
|
19
26
|
"_phantomChildren": {},
|
20
27
|
"_requested": {
|
21
|
-
"name": "is-property",
|
22
28
|
"raw": "is-property@^1.0.0",
|
23
|
-
"rawSpec": "^1.0.0",
|
24
29
|
"scope": null,
|
30
|
+
"escapedName": "is-property",
|
31
|
+
"name": "is-property",
|
32
|
+
"rawSpec": "^1.0.0",
|
25
33
|
"spec": ">=1.0.0 <2.0.0",
|
26
34
|
"type": "range"
|
27
35
|
},
|
@@ -54,13 +62,13 @@
|
|
54
62
|
"gitHead": "0a85ea5b6b1264ea1cdecc6e5cf186adbb3ffc50",
|
55
63
|
"homepage": "https://github.com/mikolalysenko/is-property",
|
56
64
|
"keywords": [
|
57
|
-
".",
|
58
|
-
"[]",
|
59
|
-
"bracket",
|
60
|
-
"dot",
|
61
65
|
"is",
|
66
|
+
"property",
|
62
67
|
"json",
|
63
|
-
"
|
68
|
+
"dot",
|
69
|
+
"bracket",
|
70
|
+
".",
|
71
|
+
"[]"
|
64
72
|
],
|
65
73
|
"license": "MIT",
|
66
74
|
"main": "is-property.js",
|
@@ -1,27 +1,35 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
4
|
+
{
|
5
|
+
"raw": "is-typedarray@~1.0.0",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "is-typedarray",
|
8
|
+
"name": "is-typedarray",
|
9
|
+
"rawSpec": "~1.0.0",
|
10
|
+
"spec": ">=1.0.0 <1.1.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
5
13
|
"/Users/eshanker/Code/fsevents/node_modules/request"
|
6
14
|
]
|
7
15
|
],
|
8
16
|
"_from": "is-typedarray@>=1.0.0 <1.1.0",
|
9
17
|
"_id": "is-typedarray@1.0.0",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/is-typedarray",
|
13
20
|
"_nodeVersion": "0.10.36",
|
14
21
|
"_npmUser": {
|
15
|
-
"
|
16
|
-
"
|
22
|
+
"name": "hughsk",
|
23
|
+
"email": "hughskennedy@gmail.com"
|
17
24
|
},
|
18
25
|
"_npmVersion": "2.7.5",
|
19
26
|
"_phantomChildren": {},
|
20
27
|
"_requested": {
|
21
|
-
"name": "is-typedarray",
|
22
28
|
"raw": "is-typedarray@~1.0.0",
|
23
|
-
"rawSpec": "~1.0.0",
|
24
29
|
"scope": null,
|
30
|
+
"escapedName": "is-typedarray",
|
31
|
+
"name": "is-typedarray",
|
32
|
+
"rawSpec": "~1.0.0",
|
25
33
|
"spec": ">=1.0.0 <1.1.0",
|
26
34
|
"type": "range"
|
27
35
|
},
|
@@ -34,8 +42,8 @@
|
|
34
42
|
"_spec": "is-typedarray@~1.0.0",
|
35
43
|
"_where": "/Users/eshanker/Code/fsevents/node_modules/request",
|
36
44
|
"author": {
|
37
|
-
"email": "hughskennedy@gmail.com",
|
38
45
|
"name": "Hugh Kennedy",
|
46
|
+
"email": "hughskennedy@gmail.com",
|
39
47
|
"url": "http://hughsk.io/"
|
40
48
|
},
|
41
49
|
"bugs": {
|
@@ -54,10 +62,10 @@
|
|
54
62
|
"gitHead": "0617cfa871686cf541af62b144f130488f44f6fe",
|
55
63
|
"homepage": "https://github.com/hughsk/is-typedarray",
|
56
64
|
"keywords": [
|
65
|
+
"typed",
|
57
66
|
"array",
|
58
67
|
"detect",
|
59
68
|
"is",
|
60
|
-
"typed",
|
61
69
|
"util"
|
62
70
|
],
|
63
71
|
"license": "MIT",
|
@@ -1,33 +1,41 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
4
|
+
{
|
5
|
+
"raw": "isarray@~1.0.0",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "isarray",
|
8
|
+
"name": "isarray",
|
9
|
+
"rawSpec": "~1.0.0",
|
10
|
+
"spec": ">=1.0.0 <1.1.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
5
13
|
"/Users/eshanker/Code/fsevents/node_modules/readable-stream"
|
6
14
|
]
|
7
15
|
],
|
8
16
|
"_from": "isarray@>=1.0.0 <1.1.0",
|
9
17
|
"_id": "isarray@1.0.0",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/isarray",
|
13
20
|
"_nodeVersion": "5.1.0",
|
14
21
|
"_npmUser": {
|
15
|
-
"
|
16
|
-
"
|
22
|
+
"name": "juliangruber",
|
23
|
+
"email": "julian@juliangruber.com"
|
17
24
|
},
|
18
25
|
"_npmVersion": "3.3.12",
|
19
26
|
"_phantomChildren": {},
|
20
27
|
"_requested": {
|
21
|
-
"name": "isarray",
|
22
28
|
"raw": "isarray@~1.0.0",
|
23
|
-
"rawSpec": "~1.0.0",
|
24
29
|
"scope": null,
|
30
|
+
"escapedName": "isarray",
|
31
|
+
"name": "isarray",
|
32
|
+
"rawSpec": "~1.0.0",
|
25
33
|
"spec": ">=1.0.0 <1.1.0",
|
26
34
|
"type": "range"
|
27
35
|
},
|
28
36
|
"_requiredBy": [
|
29
|
-
"/
|
30
|
-
"/readable-stream"
|
37
|
+
"/readable-stream",
|
38
|
+
"/tar-pack/readable-stream"
|
31
39
|
],
|
32
40
|
"_resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
|
33
41
|
"_shasum": "bb935d48582cba168c06834957a54a3e07124f11",
|
@@ -35,8 +43,8 @@
|
|
35
43
|
"_spec": "isarray@~1.0.0",
|
36
44
|
"_where": "/Users/eshanker/Code/fsevents/node_modules/readable-stream",
|
37
45
|
"author": {
|
38
|
-
"email": "mail@juliangruber.com",
|
39
46
|
"name": "Julian Gruber",
|
47
|
+
"email": "mail@juliangruber.com",
|
40
48
|
"url": "http://juliangruber.com"
|
41
49
|
},
|
42
50
|
"bugs": {
|
@@ -55,9 +63,9 @@
|
|
55
63
|
"gitHead": "2a23a281f369e9ae06394c0fb4d2381355a6ba33",
|
56
64
|
"homepage": "https://github.com/juliangruber/isarray",
|
57
65
|
"keywords": [
|
58
|
-
"array",
|
59
66
|
"browser",
|
60
|
-
"isarray"
|
67
|
+
"isarray",
|
68
|
+
"array"
|
61
69
|
],
|
62
70
|
"license": "MIT",
|
63
71
|
"main": "index.js",
|
@@ -78,20 +86,20 @@
|
|
78
86
|
"test": "tape test.js"
|
79
87
|
},
|
80
88
|
"testling": {
|
89
|
+
"files": "test.js",
|
81
90
|
"browsers": [
|
82
|
-
"
|
83
|
-
"chrome/22..latest",
|
84
|
-
"chrome/canary",
|
91
|
+
"ie/8..latest",
|
85
92
|
"firefox/17..latest",
|
86
93
|
"firefox/nightly",
|
87
|
-
"
|
88
|
-
"
|
89
|
-
"iphone/6.0..latest",
|
94
|
+
"chrome/22..latest",
|
95
|
+
"chrome/canary",
|
90
96
|
"opera/12..latest",
|
91
97
|
"opera/next",
|
92
|
-
"safari/5.1..latest"
|
93
|
-
|
94
|
-
|
98
|
+
"safari/5.1..latest",
|
99
|
+
"ipad/6.0..latest",
|
100
|
+
"iphone/6.0..latest",
|
101
|
+
"android-browser/4.2..latest"
|
102
|
+
]
|
95
103
|
},
|
96
104
|
"version": "1.0.0"
|
97
105
|
}
|
@@ -1,27 +1,35 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
4
|
+
{
|
5
|
+
"raw": "isstream@~0.1.2",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "isstream",
|
8
|
+
"name": "isstream",
|
9
|
+
"rawSpec": "~0.1.2",
|
10
|
+
"spec": ">=0.1.2 <0.2.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
5
13
|
"/Users/eshanker/Code/fsevents/node_modules/request"
|
6
14
|
]
|
7
15
|
],
|
8
16
|
"_from": "isstream@>=0.1.2 <0.2.0",
|
9
17
|
"_id": "isstream@0.1.2",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/isstream",
|
13
20
|
"_nodeVersion": "1.4.3",
|
14
21
|
"_npmUser": {
|
15
|
-
"
|
16
|
-
"
|
22
|
+
"name": "rvagg",
|
23
|
+
"email": "rod@vagg.org"
|
17
24
|
},
|
18
25
|
"_npmVersion": "2.6.1",
|
19
26
|
"_phantomChildren": {},
|
20
27
|
"_requested": {
|
21
|
-
"name": "isstream",
|
22
28
|
"raw": "isstream@~0.1.2",
|
23
|
-
"rawSpec": "~0.1.2",
|
24
29
|
"scope": null,
|
30
|
+
"escapedName": "isstream",
|
31
|
+
"name": "isstream",
|
32
|
+
"rawSpec": "~0.1.2",
|
25
33
|
"spec": ">=0.1.2 <0.2.0",
|
26
34
|
"type": "range"
|
27
35
|
},
|
@@ -34,8 +42,8 @@
|
|
34
42
|
"_spec": "isstream@~0.1.2",
|
35
43
|
"_where": "/Users/eshanker/Code/fsevents/node_modules/request",
|
36
44
|
"author": {
|
37
|
-
"
|
38
|
-
"
|
45
|
+
"name": "Rod Vagg",
|
46
|
+
"email": "rod@vagg.org"
|
39
47
|
},
|
40
48
|
"bugs": {
|
41
49
|
"url": "https://github.com/rvagg/isstream/issues"
|
@@ -57,11 +65,11 @@
|
|
57
65
|
"gitHead": "cd39cba6da939b4fc9110825203adc506422c3dc",
|
58
66
|
"homepage": "https://github.com/rvagg/isstream",
|
59
67
|
"keywords": [
|
60
|
-
"hippo",
|
61
|
-
"readable-stream",
|
62
68
|
"stream",
|
69
|
+
"type",
|
63
70
|
"streams",
|
64
|
-
"
|
71
|
+
"readable-stream",
|
72
|
+
"hippo"
|
65
73
|
],
|
66
74
|
"license": "MIT",
|
67
75
|
"main": "isstream.js",
|
@@ -1,27 +1,35 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
4
|
+
{
|
5
|
+
"raw": "jodid25519@^1.0.0",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "jodid25519",
|
8
|
+
"name": "jodid25519",
|
9
|
+
"rawSpec": "^1.0.0",
|
10
|
+
"spec": ">=1.0.0 <2.0.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
5
13
|
"/Users/eshanker/Code/fsevents/node_modules/sshpk"
|
6
14
|
]
|
7
15
|
],
|
8
16
|
"_from": "jodid25519@>=1.0.0 <2.0.0",
|
9
17
|
"_id": "jodid25519@1.0.2",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/jodid25519",
|
13
20
|
"_nodeVersion": "4.1.1",
|
14
21
|
"_npmUser": {
|
15
|
-
"
|
16
|
-
"
|
22
|
+
"name": "arekinath",
|
23
|
+
"email": "alex@cooperi.net"
|
17
24
|
},
|
18
25
|
"_npmVersion": "2.14.4",
|
19
26
|
"_phantomChildren": {},
|
20
27
|
"_requested": {
|
21
|
-
"name": "jodid25519",
|
22
28
|
"raw": "jodid25519@^1.0.0",
|
23
|
-
"rawSpec": "^1.0.0",
|
24
29
|
"scope": null,
|
30
|
+
"escapedName": "jodid25519",
|
31
|
+
"name": "jodid25519",
|
32
|
+
"rawSpec": "^1.0.0",
|
25
33
|
"spec": ">=1.0.0 <2.0.0",
|
26
34
|
"type": "range"
|
27
35
|
},
|
@@ -55,9 +63,9 @@
|
|
55
63
|
"sinon-chai": "^2.8.0"
|
56
64
|
},
|
57
65
|
"directories": {
|
58
|
-
"doc": "doc",
|
59
66
|
"src": "src",
|
60
|
-
"test": "test"
|
67
|
+
"test": "test",
|
68
|
+
"doc": "doc"
|
61
69
|
},
|
62
70
|
"dist": {
|
63
71
|
"shasum": "06d4912255093419477d425633606e0e90782967",
|
@@ -67,10 +75,10 @@
|
|
67
75
|
"homepage": "https://github.com/meganz/jodid25519",
|
68
76
|
"keywords": [
|
69
77
|
"Curve25519",
|
70
|
-
"ECDH",
|
71
|
-
"ECDSA",
|
72
78
|
"Ed25519",
|
79
|
+
"ECDH",
|
73
80
|
"EdDSA",
|
81
|
+
"ECDSA",
|
74
82
|
"encryption",
|
75
83
|
"signing"
|
76
84
|
],
|
@@ -1,27 +1,35 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
4
|
+
{
|
5
|
+
"raw": "jsbn@~0.1.0",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "jsbn",
|
8
|
+
"name": "jsbn",
|
9
|
+
"rawSpec": "~0.1.0",
|
10
|
+
"spec": ">=0.1.0 <0.2.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
5
13
|
"/Users/eshanker/Code/fsevents/node_modules/sshpk"
|
6
14
|
]
|
7
15
|
],
|
8
16
|
"_from": "jsbn@>=0.1.0 <0.2.0",
|
9
17
|
"_id": "jsbn@0.1.0",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/jsbn",
|
13
20
|
"_nodeVersion": "0.12.2",
|
14
21
|
"_npmUser": {
|
15
|
-
"
|
16
|
-
"
|
22
|
+
"name": "andyperlitch",
|
23
|
+
"email": "andyperlitch@gmail.com"
|
17
24
|
},
|
18
25
|
"_npmVersion": "2.7.4",
|
19
26
|
"_phantomChildren": {},
|
20
27
|
"_requested": {
|
21
|
-
"name": "jsbn",
|
22
28
|
"raw": "jsbn@~0.1.0",
|
23
|
-
"rawSpec": "~0.1.0",
|
24
29
|
"scope": null,
|
30
|
+
"escapedName": "jsbn",
|
31
|
+
"name": "jsbn",
|
32
|
+
"rawSpec": "~0.1.0",
|
25
33
|
"spec": ">=0.1.0 <0.2.0",
|
26
34
|
"type": "range"
|
27
35
|
},
|
@@ -52,9 +60,9 @@
|
|
52
60
|
"gitHead": "148a967b112806e63ddeeed78ee7938eef74c84a",
|
53
61
|
"homepage": "https://github.com/andyperlitch/jsbn",
|
54
62
|
"keywords": [
|
55
|
-
"big",
|
56
63
|
"biginteger",
|
57
64
|
"bignumber",
|
65
|
+
"big",
|
58
66
|
"integer"
|
59
67
|
],
|
60
68
|
"license": "BSD",
|
@@ -3,8 +3,22 @@
|
|
3
3
|
* Copyright (c) 2007 Kris Zyp SitePen (www.sitepen.com)
|
4
4
|
* Licensed under the MIT (MIT-LICENSE.txt) license.
|
5
5
|
*/
|
6
|
-
(
|
7
|
-
|
6
|
+
(function (root, factory) {
|
7
|
+
if (typeof define === 'function' && define.amd) {
|
8
|
+
// AMD. Register as an anonymous module.
|
9
|
+
define([], function () {
|
10
|
+
return factory();
|
11
|
+
});
|
12
|
+
} else if (typeof module === 'object' && module.exports) {
|
13
|
+
// Node. Does not work with strict CommonJS, but
|
14
|
+
// only CommonJS-like environments that support module.exports,
|
15
|
+
// like Node.
|
16
|
+
module.exports = factory();
|
17
|
+
} else {
|
18
|
+
// Browser globals
|
19
|
+
root.jsonSchemaLinks = factory();
|
20
|
+
}
|
21
|
+
}(this, function () {// setup primitive classes to be JSON Schema types
|
8
22
|
var exports = {};
|
9
23
|
exports.cacheLinks = true;
|
10
24
|
exports.getLink = function(relation, instance, schema){
|
@@ -49,4 +63,4 @@ exports.substitute = function(linkTemplate, instance){
|
|
49
63
|
});
|
50
64
|
};
|
51
65
|
return exports;
|
52
|
-
});
|
66
|
+
}));
|
@@ -13,10 +13,23 @@ empty list will be returned. A validation error will have two properties:
|
|
13
13
|
"property" which indicates which property had the error
|
14
14
|
"message" which indicates what the error was
|
15
15
|
*/
|
16
|
-
(
|
17
|
-
|
18
|
-
|
19
|
-
|
16
|
+
(function (root, factory) {
|
17
|
+
if (typeof define === 'function' && define.amd) {
|
18
|
+
// AMD. Register as an anonymous module.
|
19
|
+
define([], function () {
|
20
|
+
return factory();
|
21
|
+
});
|
22
|
+
} else if (typeof module === 'object' && module.exports) {
|
23
|
+
// Node. Does not work with strict CommonJS, but
|
24
|
+
// only CommonJS-like environments that support module.exports,
|
25
|
+
// like Node.
|
26
|
+
module.exports = factory();
|
27
|
+
} else {
|
28
|
+
// Browser globals
|
29
|
+
root.jsonSchema = factory();
|
30
|
+
}
|
31
|
+
}(this, function () {// setup primitive classes to be JSON Schema types
|
32
|
+
var exports = validate
|
20
33
|
exports.Integer = {type:"integer"};
|
21
34
|
var primitiveConstructors = {
|
22
35
|
String: String,
|
@@ -257,4 +270,4 @@ exports.mustBeValid = function(result){
|
|
257
270
|
}
|
258
271
|
|
259
272
|
return exports;
|
260
|
-
});
|
273
|
+
}));
|