Skip to content

Commit 7d3320b

Browse files
committed
housekeeping: @kyleshockey/js-yaml -> js-yaml (via #1459)
* `@kyleshockey/js-yaml` -> `js-yaml` * externalize esprima
1 parent 901ab9f commit 7d3320b

File tree

14 files changed

+28
-23
lines changed

14 files changed

+28
-23
lines changed

examples/quick.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Ensure you've built SwaggerJS
22
const Swagger = require('../dist')
3-
const jsYaml = require('@kyleshockey/js-yaml')
3+
const jsYaml = require('js-yaml')
44

55
/**
66
* This is a file, for quickly testing out functionality of SwaggerJS

package-lock.json

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@
9797
},
9898
"dependencies": {
9999
"@babel/runtime-corejs2": "^7.0.0",
100-
"@kyleshockey/js-yaml": "^1.0.1",
101100
"@kyleshockey/object-assign-deep": "^0.4.0",
102101
"btoa": "1.1.2",
103102
"buffer": "^5.1.0",
@@ -107,6 +106,7 @@
107106
"encode-3986": "^1.0.0",
108107
"fast-json-patch": "~2.1.0",
109108
"isomorphic-form-data": "0.0.1",
109+
"js-yaml": "^3.13.1",
110110
"lodash": "^4.17.14",
111111
"qs": "^6.3.0",
112112
"querystring-browser": "^1.0.4",

src/http.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'cross-fetch/polyfill' /* global fetch */
22
import qs from 'qs'
3-
import jsYaml from '@kyleshockey/js-yaml'
3+
import jsYaml from 'js-yaml'
44
import isString from 'lodash/isString'
55

66
// For testing

src/specmap/lib/refs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {fetch} from 'cross-fetch'
2-
import jsYaml from '@kyleshockey/js-yaml'
2+
import jsYaml from 'js-yaml'
33
import qs from 'querystring-browser'
44
import url from 'url'
55
import lib from '../lib'

test/oas3/execute/authorization.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import xmock from 'xmock'
22
import path from 'path'
33
import fs from 'fs'
44
import btoa from 'btoa'
5-
import jsYaml from '@kyleshockey/js-yaml'
5+
import jsYaml from 'js-yaml'
66

77
import {execute, buildRequest, baseUrl, applySecurities, self as stubs} from '../../../src/execute'
88

test/oas3/execute/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import xmock from 'xmock'
22
import path from 'path'
33
import fs from 'fs'
4-
import jsYaml from '@kyleshockey/js-yaml'
4+
import jsYaml from 'js-yaml'
55

66
import {execute, buildRequest, baseUrl, applySecurities, self as stubs} from '../../../src/execute'
77

test/oas3/execute/style-explode/cookie.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import xmock from 'xmock'
22
import path from 'path'
33
import fs from 'fs'
44
import qs from 'querystring'
5-
import jsYaml from '@kyleshockey/js-yaml'
5+
import jsYaml from 'js-yaml'
66

77
import {execute, buildRequest, baseUrl, applySecurities, self as stubs} from '../../../../src/execute'
88

test/oas3/execute/style-explode/header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import xmock from 'xmock'
22
import path from 'path'
33
import fs from 'fs'
44
import qs from 'querystring'
5-
import jsYaml from '@kyleshockey/js-yaml'
5+
import jsYaml from 'js-yaml'
66

77
import {execute, buildRequest, baseUrl, applySecurities, self as stubs} from '../../../../src/execute'
88

test/oas3/execute/style-explode/path.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import xmock from 'xmock'
22
import path from 'path'
33
import fs from 'fs'
44
import qs from 'querystring'
5-
import jsYaml from '@kyleshockey/js-yaml'
5+
import jsYaml from 'js-yaml'
66
import {execute, buildRequest, baseUrl, applySecurities, self as stubs} from '../../../../src/execute'
77

88
const petstoreSpec = jsYaml.safeLoad(fs.readFileSync(path.join('test', 'oas3', 'data', 'petstore-oas3.yaml'), 'utf8'))

0 commit comments

Comments
 (0)