From a2c790db9e19bae4eab3248775f649eb7391bcd4 Mon Sep 17 00:00:00 2001 From: Josh Wooding <12938082+joshwooding@users.noreply.github.com> Date: Thu, 28 Nov 2024 13:21:34 +0000 Subject: [PATCH] Update magic-string --- .changeset/six-keys-destroy.md | 5 + .../package.json | 2 +- .../__snapshots__/index.test.ts.snap | 110 +++++++----------- yarn.lock | 13 +-- 4 files changed, 52 insertions(+), 78 deletions(-) create mode 100644 .changeset/six-keys-destroy.md diff --git a/.changeset/six-keys-destroy.md b/.changeset/six-keys-destroy.md new file mode 100644 index 0000000..cca9d3e --- /dev/null +++ b/.changeset/six-keys-destroy.md @@ -0,0 +1,5 @@ +--- +"@joshwooding/vite-plugin-react-docgen-typescript": patch +--- + +Update magic-string diff --git a/packages/vite-plugin-react-docgen-typescript/package.json b/packages/vite-plugin-react-docgen-typescript/package.json index dbe487a..55a4fac 100644 --- a/packages/vite-plugin-react-docgen-typescript/package.json +++ b/packages/vite-plugin-react-docgen-typescript/package.json @@ -29,7 +29,7 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "magic-string": "^0.27.0", + "magic-string": "^0.30.0", "react-docgen-typescript": "^2.2.2" }, "peerDependencies": { diff --git a/packages/vite-plugin-react-docgen-typescript/src/__tests__/__snapshots__/index.test.ts.snap b/packages/vite-plugin-react-docgen-typescript/src/__tests__/__snapshots__/index.test.ts.snap index 205186e..9459da5 100644 --- a/packages/vite-plugin-react-docgen-typescript/src/__tests__/__snapshots__/index.test.ts.snap +++ b/packages/vite-plugin-react-docgen-typescript/src/__tests__/__snapshots__/index.test.ts.snap @@ -25,15 +25,13 @@ try { } catch (__react_docgen_typescript_loader_error) { }", "map": SourceMap { - "file": null, - "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;", + "file": undefined, + "mappings": "AAAA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;", "names": [], "sources": [ - null, - ], - "sourcesContent": [ - null, + "", ], + "sourcesContent": undefined, "version": 3, }, } @@ -66,15 +64,13 @@ try { } catch (__react_docgen_typescript_loader_error) { }", "map": SourceMap { - "file": null, - "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;", + "file": undefined, + "mappings": "AAAA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;", "names": [], "sources": [ - null, - ], - "sourcesContent": [ - null, + "", ], + "sourcesContent": undefined, "version": 3, }, } @@ -127,15 +123,13 @@ try { } catch (__react_docgen_typescript_loader_error) { }", "map": SourceMap { - "file": null, - "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;", + "file": undefined, + "mappings": "AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;", "names": [], "sources": [ - null, - ], - "sourcesContent": [ - null, + "", ], + "sourcesContent": undefined, "version": 3, }, } @@ -168,15 +162,13 @@ try { } catch (__react_docgen_typescript_loader_error) { }", "map": SourceMap { - "file": null, - "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;", + "file": undefined, + "mappings": "AAAA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;", "names": [], "sources": [ - null, - ], - "sourcesContent": [ - null, + "", ], + "sourcesContent": undefined, "version": 3, }, } @@ -208,15 +200,13 @@ try { } catch (__react_docgen_typescript_loader_error) { }", "map": SourceMap { - "file": null, - "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;", + "file": undefined, + "mappings": "AAAA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;", "names": [], "sources": [ - null, - ], - "sourcesContent": [ - null, + "", ], + "sourcesContent": undefined, "version": 3, }, } @@ -249,15 +239,13 @@ try { } catch (__react_docgen_typescript_loader_error) { }", "map": SourceMap { - "file": null, - "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;", + "file": undefined, + "mappings": "AAAA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;", "names": [], "sources": [ - null, - ], - "sourcesContent": [ - null, + "", ], + "sourcesContent": undefined, "version": 3, }, } @@ -292,15 +280,13 @@ try { } catch (__react_docgen_typescript_loader_error) { }", "map": SourceMap { - "file": null, - "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;", + "file": undefined, + "mappings": "AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;", "names": [], "sources": [ - null, - ], - "sourcesContent": [ - null, + "", ], + "sourcesContent": undefined, "version": 3, }, } @@ -329,15 +315,13 @@ try { } catch (__react_docgen_typescript_loader_error) { }", "map": SourceMap { - "file": null, - "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;", + "file": undefined, + "mappings": "AAAA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;", "names": [], "sources": [ - null, - ], - "sourcesContent": [ - null, + "", ], + "sourcesContent": undefined, "version": 3, }, } @@ -368,15 +352,13 @@ try { } catch (__react_docgen_typescript_loader_error) { }", "map": SourceMap { - "file": null, - "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;", + "file": undefined, + "mappings": "AAAA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;", "names": [], "sources": [ - null, - ], - "sourcesContent": [ - null, + "", ], + "sourcesContent": undefined, "version": 3, }, } @@ -402,15 +384,13 @@ try { } catch (__react_docgen_typescript_loader_error) { }", "map": SourceMap { - "file": null, - "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;", + "file": undefined, + "mappings": "AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;", "names": [], "sources": [ - null, - ], - "sourcesContent": [ - null, + "", ], + "sourcesContent": undefined, "version": 3, }, } @@ -463,15 +443,13 @@ try { } catch (__react_docgen_typescript_loader_error) { }", "map": SourceMap { - "file": null, - "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;", + "file": undefined, + "mappings": "AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;", "names": [], "sources": [ - null, - ], - "sourcesContent": [ - null, + "", ], + "sourcesContent": undefined, "version": 3, }, } diff --git a/yarn.lock b/yarn.lock index 65537f9..972ba88 100644 --- a/yarn.lock +++ b/yarn.lock @@ -757,7 +757,7 @@ __metadata: version: 0.0.0-use.local resolution: "@joshwooding/vite-plugin-react-docgen-typescript@workspace:packages/vite-plugin-react-docgen-typescript" dependencies: - magic-string: "npm:^0.27.0" + magic-string: "npm:^0.30.0" react-docgen-typescript: "npm:^2.2.2" peerDependencies: typescript: ">= 4.3.x" @@ -793,7 +793,7 @@ __metadata: languageName: node linkType: hard -"@jridgewell/sourcemap-codec@npm:^1.4.10, @jridgewell/sourcemap-codec@npm:^1.4.13, @jridgewell/sourcemap-codec@npm:^1.4.14, @jridgewell/sourcemap-codec@npm:^1.5.0": +"@jridgewell/sourcemap-codec@npm:^1.4.10, @jridgewell/sourcemap-codec@npm:^1.4.14, @jridgewell/sourcemap-codec@npm:^1.5.0": version: 1.5.0 resolution: "@jridgewell/sourcemap-codec@npm:1.5.0" checksum: 10/4ed6123217569a1484419ac53f6ea0d9f3b57e5b57ab30d7c267bdb27792a27eb0e4b08e84a2680aa55cc2f2b411ffd6ec3db01c44fdc6dc43aca4b55f8374fd @@ -4161,15 +4161,6 @@ __metadata: languageName: node linkType: hard -"magic-string@npm:^0.27.0": - version: 0.27.0 - resolution: "magic-string@npm:0.27.0" - dependencies: - "@jridgewell/sourcemap-codec": "npm:^1.4.13" - checksum: 10/10a18a48d22fb14467d6cb4204aba58d6790ae7ba023835dc7a65e310cf216f042a17fab1155ba43e47117310a9b7c3fd3bb79f40be40f5124d6b1af9e96399b - languageName: node - linkType: hard - "magic-string@npm:^0.30.0, magic-string@npm:^0.30.10, magic-string@npm:^0.30.12, magic-string@npm:^0.30.3": version: 0.30.14 resolution: "magic-string@npm:0.30.14"