diff --git a/examples/quick.js b/examples/quick.js index 5cd25799c..9236df02a 100644 --- a/examples/quick.js +++ b/examples/quick.js @@ -1,6 +1,6 @@ // Ensure you've built SwaggerJS const Swagger = require('../dist') -const jsYaml = require('js-yaml') +const jsYaml = require('@kyleshockey/js-yaml') /** * This is a file, for quickly testing out functionality of SwaggerJS diff --git a/package.json b/package.json index cbbf386b4..efba2cc04 100644 --- a/package.json +++ b/package.json @@ -74,6 +74,7 @@ "xmock": "^0.3.0" }, "dependencies": { + "@kyleshockey/js-yaml": "^1.0.1", "@kyleshockey/object-assign-deep": "^0.4.0", "babel-runtime": "^6.26.0", "btoa": "1.1.2", @@ -85,7 +86,6 @@ "fast-json-patch": "^2.0.6", "is-generator-fn": "^1.0.0", "isomorphic-form-data": "0.0.1", - "js-yaml": "^3.8.1", "lodash": "^4.16.2", "qs": "^6.3.0", "querystring-browser": "^1.0.4", diff --git a/src/http.js b/src/http.js index a3cf6d3a8..818d35355 100644 --- a/src/http.js +++ b/src/http.js @@ -1,6 +1,6 @@ import 'cross-fetch/polyfill' /* global fetch */ import qs from 'qs' -import jsYaml from 'js-yaml' +import jsYaml from '@kyleshockey/js-yaml' import isString from 'lodash/isString' // For testing diff --git a/src/specmap/lib/refs.js b/src/specmap/lib/refs.js index e7a6a3669..c0f821af6 100644 --- a/src/specmap/lib/refs.js +++ b/src/specmap/lib/refs.js @@ -1,5 +1,5 @@ import {fetch} from 'cross-fetch' -import jsYaml from 'js-yaml' +import jsYaml from '@kyleshockey/js-yaml' import qs from 'querystring-browser' import url from 'url' import lib from '../lib' diff --git a/test/oas3/execute/authorization.js b/test/oas3/execute/authorization.js index aa52adde8..3c64f0a72 100644 --- a/test/oas3/execute/authorization.js +++ b/test/oas3/execute/authorization.js @@ -2,7 +2,7 @@ import xmock from 'xmock' import path from 'path' import fs from 'fs' import btoa from 'btoa' -import jsYaml from 'js-yaml' +import jsYaml from '@kyleshockey/js-yaml' import {execute, buildRequest, baseUrl, applySecurities, self as stubs} from '../../../src/execute' diff --git a/test/oas3/execute/main.js b/test/oas3/execute/main.js index 468f2386d..669e1eee1 100644 --- a/test/oas3/execute/main.js +++ b/test/oas3/execute/main.js @@ -1,7 +1,7 @@ import xmock from 'xmock' import path from 'path' import fs from 'fs' -import jsYaml from 'js-yaml' +import jsYaml from '@kyleshockey/js-yaml' import {execute, buildRequest, baseUrl, applySecurities, self as stubs} from '../../../src/execute' diff --git a/test/oas3/execute/style-explode/cookie.js b/test/oas3/execute/style-explode/cookie.js index 89b25c05c..03d74d424 100644 --- a/test/oas3/execute/style-explode/cookie.js +++ b/test/oas3/execute/style-explode/cookie.js @@ -2,7 +2,7 @@ import xmock from 'xmock' import path from 'path' import fs from 'fs' import qs from 'querystring' -import jsYaml from 'js-yaml' +import jsYaml from '@kyleshockey/js-yaml' import {execute, buildRequest, baseUrl, applySecurities, self as stubs} from '../../../../src/execute' diff --git a/test/oas3/execute/style-explode/header.js b/test/oas3/execute/style-explode/header.js index 2c5d4ca43..bb63c5050 100644 --- a/test/oas3/execute/style-explode/header.js +++ b/test/oas3/execute/style-explode/header.js @@ -2,7 +2,7 @@ import xmock from 'xmock' import path from 'path' import fs from 'fs' import qs from 'querystring' -import jsYaml from 'js-yaml' +import jsYaml from '@kyleshockey/js-yaml' import {execute, buildRequest, baseUrl, applySecurities, self as stubs} from '../../../../src/execute' diff --git a/test/oas3/execute/style-explode/path.js b/test/oas3/execute/style-explode/path.js index dcd90cba9..ac70e8289 100644 --- a/test/oas3/execute/style-explode/path.js +++ b/test/oas3/execute/style-explode/path.js @@ -2,7 +2,7 @@ import xmock from 'xmock' import path from 'path' import fs from 'fs' import qs from 'querystring' -import jsYaml from 'js-yaml' +import jsYaml from '@kyleshockey/js-yaml' import {execute, buildRequest, baseUrl, applySecurities, self as stubs} from '../../../../src/execute' const petstoreSpec = jsYaml.safeLoad(fs.readFileSync(path.join('test', 'oas3', 'data', 'petstore-oas3.yaml'), 'utf8')) diff --git a/test/oas3/execute/style-explode/query.js b/test/oas3/execute/style-explode/query.js index 5ca513a85..a939561c5 100644 --- a/test/oas3/execute/style-explode/query.js +++ b/test/oas3/execute/style-explode/query.js @@ -2,7 +2,7 @@ import xmock from 'xmock' import path from 'path' import fs from 'fs' import qs from 'querystring' -import jsYaml from 'js-yaml' +import jsYaml from '@kyleshockey/js-yaml' import {execute, buildRequest, baseUrl, applySecurities, self as stubs} from '../../../../src/execute' const petstoreSpec = jsYaml.safeLoad(fs.readFileSync(path.join('test', 'oas3', 'data', 'petstore-oas3.yaml'), 'utf8')) diff --git a/test/resolver.js b/test/resolver.js index 99fd4c08c..084524867 100644 --- a/test/resolver.js +++ b/test/resolver.js @@ -1,7 +1,7 @@ import xmock from 'xmock' import path from 'path' import fs from 'fs' -import jsYaml from 'js-yaml' +import jsYaml from '@kyleshockey/js-yaml' import Swagger from '../src'