Skip to content

Commit

Permalink
fix: update dependencies to clean up yarn audit (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound authored Dec 1, 2022
1 parent 017c9da commit 47197b8
Show file tree
Hide file tree
Showing 5 changed files with 2,412 additions and 6,577 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- v1-dependencies-
- run: npx yarn install
- run: npx yarn build
- run: npx semantic-release
- run: npx semantic-release@17.4.5
workflows:
version: 2
test_and_release:
Expand Down
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,25 @@
"electron-docs-parser": "./dist/bin.js"
},
"devDependencies": {
"@continuous-auth/semantic-release-npm": "2.0.0",
"@continuous-auth/semantic-release-npm": "^3.0.0",
"@types/chai": "^4.2.5",
"@types/fs-extra": "^8.0.1",
"@types/jest": "^24.0.23",
"@types/lodash.camelcase": "^4.3.6",
"@types/minimist": "^1.2.0",
"@types/pretty-ms": "^5.0.1",
"jest": "^24.9.0",
"jest": "^29.3.1",
"prettier": "^1.19.1",
"semantic-release": "^17.4.7",
"ts-jest": "^24.2.0",
"typescript": "^3.7.2"
"ts-jest": "^29.0.3",
"typescript": "^4.9.3"
},
"dependencies": {
"@types/markdown-it": "^10.0.0",
"@types/markdown-it": "^12.0.0",
"chai": "^4.2.0",
"chalk": "^3.0.0",
"fs-extra": "^8.1.0",
"lodash.camelcase": "^4.3.0",
"markdown-it": "^10.0.0",
"markdown-it": "^12.0.0",
"minimist": "^1.2.0",
"ora": "^4.0.3",
"pretty-ms": "^5.1.0"
Expand All @@ -57,4 +56,4 @@
"url": "https://github.com/electron/docs-parser/issues"
},
"homepage": "https://github.com/electron/docs-parser#readme"
}
}
160 changes: 80 additions & 80 deletions src/__tests__/__snapshots__/markdown-helpers.spec.ts.snap
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`markdown-helpers rawTypeToTypeInformation() should allow commas in object types 1`] = `
Object {
{
"collection": false,
"parameters": Array [],
"returns": Object {
"parameters": [],
"returns": {
"collection": false,
"type": "{a: string, b: string}",
},
Expand All @@ -13,10 +13,10 @@ Object {
`;

exports[`markdown-helpers rawTypeToTypeInformation() should map a Promise types correctly 1`] = `
Object {
{
"collection": false,
"innerTypes": Array [
Object {
"innerTypes": [
{
"collection": false,
"type": "T",
},
Expand All @@ -26,17 +26,17 @@ Object {
`;

exports[`markdown-helpers rawTypeToTypeInformation() should map a complex Promise types correctly 1`] = `
Object {
{
"collection": false,
"innerTypes": Array [
Object {
"innerTypes": [
{
"collection": false,
"type": Array [
Object {
"type": [
{
"collection": false,
"type": "T",
},
Object {
{
"collection": false,
"type": "A",
},
Expand All @@ -48,19 +48,19 @@ Object {
`;

exports[`markdown-helpers rawTypeToTypeInformation() should map a function return type + param types correctly 1`] = `
Object {
{
"collection": false,
"parameters": Array [
Object {
"parameters": [
{
"collection": false,
"type": "P1",
},
Object {
{
"collection": false,
"type": "P2",
},
],
"returns": Object {
"returns": {
"collection": false,
"type": "R",
},
Expand All @@ -69,10 +69,10 @@ Object {
`;

exports[`markdown-helpers rawTypeToTypeInformation() should map a function return type correctly 1`] = `
Object {
{
"collection": false,
"parameters": Array [],
"returns": Object {
"parameters": [],
"returns": {
"collection": false,
"type": "R",
},
Expand All @@ -81,41 +81,41 @@ Object {
`;

exports[`markdown-helpers rawTypeToTypeInformation() should map a function with complex return type + complex param types correctly 1`] = `
Object {
{
"collection": false,
"parameters": Array [
Object {
"parameters": [
{
"collection": false,
"innerTypes": Array [
Object {
"innerTypes": [
{
"collection": false,
"type": "InnerP1",
},
Object {
{
"collection": true,
"type": "AnotherInnerP1",
},
],
"type": "P1",
},
Object {
{
"collection": false,
"innerTypes": Array [
Object {
"innerTypes": [
{
"collection": true,
"type": Array [
Object {
"type": [
{
"collection": false,
"type": "InnerP2",
},
Object {
{
"collection": false,
"innerTypes": Array [
Object {
"innerTypes": [
{
"collection": false,
"type": "SuperDeepP2",
},
Object {
{
"collection": false,
"type": "EvenDeeperP2",
},
Expand All @@ -128,10 +128,10 @@ Object {
"type": "P2",
},
],
"returns": Object {
"returns": {
"collection": false,
"innerTypes": Array [
Object {
"innerTypes": [
{
"collection": false,
"type": "Foo",
},
Expand All @@ -143,20 +143,20 @@ Object {
`;

exports[`markdown-helpers rawTypeToTypeInformation() should map a nested Function types correctly 1`] = `
Object {
{
"collection": false,
"innerTypes": Array [
Object {
"innerTypes": [
{
"collection": false,
"type": Array [
Object {
"type": [
{
"collection": false,
"type": "T",
},
Object {
{
"collection": true,
"parameters": Array [],
"returns": Object {
"parameters": [],
"returns": {
"collection": true,
"type": "A",
},
Expand All @@ -170,20 +170,20 @@ Object {
`;

exports[`markdown-helpers rawTypeToTypeInformation() should map a nested Promise types correctly 1`] = `
Object {
{
"collection": false,
"innerTypes": Array [
Object {
"innerTypes": [
{
"collection": false,
"type": Array [
Object {
"type": [
{
"collection": false,
"type": "T",
},
Object {
{
"collection": false,
"innerTypes": Array [
Object {
"innerTypes": [
{
"collection": false,
"type": "A",
},
Expand All @@ -198,20 +198,20 @@ Object {
`;

exports[`markdown-helpers rawTypeToTypeInformation() should map a nested complex Promise types correctly 1`] = `
Object {
{
"collection": false,
"innerTypes": Array [
Object {
"innerTypes": [
{
"collection": false,
"type": Array [
Object {
"type": [
{
"collection": false,
"type": "T",
},
Object {
{
"collection": true,
"innerTypes": Array [
Object {
"innerTypes": [
{
"collection": true,
"type": "A",
},
Expand All @@ -226,20 +226,20 @@ Object {
`;

exports[`markdown-helpers rawTypeToTypeInformation() should map a nested complex Promise types correctly 2`] = `
Object {
{
"collection": false,
"innerTypes": Array [
Object {
"innerTypes": [
{
"collection": false,
"type": Array [
Object {
"type": [
{
"collection": false,
"type": "T",
},
Object {
{
"collection": true,
"innerTypes": Array [
Object {
"innerTypes": [
{
"collection": true,
"type": "A",
},
Expand All @@ -254,27 +254,27 @@ Object {
`;

exports[`markdown-helpers rawTypeToTypeInformation() should map a primitive types correctly 1`] = `
Object {
{
"collection": false,
"type": "Boolean",
}
`;

exports[`markdown-helpers rawTypeToTypeInformation() should map a wrapped collection type correctly 1`] = `
Object {
{
"collection": false,
"innerTypes": Array [
Object {
"innerTypes": [
{
"collection": true,
"type": Array [
Object {
"type": [
{
"collection": false,
"type": "T",
},
Object {
{
"collection": false,
"parameters": Array [],
"returns": Object {
"parameters": [],
"returns": {
"collection": true,
"type": "A",
},
Expand All @@ -288,7 +288,7 @@ Object {
`;

exports[`markdown-helpers rawTypeToTypeInformation() should map an unknown types correctly 1`] = `
Object {
{
"collection": false,
"type": "MyType",
}
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/markdown-helpers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('markdown-helpers', () => {

it('should throw an error if there is a tag not on the whitelist', () => {
expect(() => parseHeadingTags(' _Awesome_')).toThrowErrorMatchingInlineSnapshot(
`"heading tags must be from the whitelist: [\\"macOS\\",\\"mas\\",\\"Windows\\",\\"Linux\\",\\"Experimental\\",\\"Deprecated\\",\\"Readonly\\"]: expected [ Array(7) ] to include 'Awesome'"`,
`"heading tags must be from the whitelist: ["macOS","mas","Windows","Linux","Experimental","Deprecated","Readonly"]: expected [ 'macOS', 'mas', 'Windows', …(4) ] to include 'Awesome'"`,
);
});
});
Expand Down
Loading

0 comments on commit 47197b8

Please sign in to comment.