Update tempy to 2.0.0 (#12247)
* Update `tempy` * require `tempy` directly * Fix * Fix * Vendors * Remove `vendord.d.tsd` * Fix path
This commit is contained in:
1 parent
5fbb8cacc4
commit
b14b13d2cf
9 files changed
+10992
-23
No files matched your search
+1
-1
@@ -135,7 +135,7 @@
|
||||
"rimraf": "3.0.2",
|
||||
"rollup-plugin-license": "2.6.1",
|
||||
"snapshot-diff": "0.9.0",
|
||||
"tempy": "1.0.1"
|
||||
"tempy": "2.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "echo \"Error: must publish from dist/\" && exit 1",
|
||||
|
||||
Vendored
+1046
-6
File diff suppressed because it is too large.
Load diff
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
const vendors = ["string-width", "mem", "execa"];
|
||||
const vendors = ["string-width", "mem", "execa", "tempy"];
|
||||
|
||||
export default vendors;
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
const path = require("path");
|
||||
const fs = require("fs");
|
||||
const tempy = require("tempy");
|
||||
const chalk = require("chalk");
|
||||
const { default: tempy } = require("../../vendors/tempy.js");
|
||||
const { execaSync } = require("../../vendors/execa.js");
|
||||
|
||||
const allowedClients = new Set(["yarn", "npm", "pnpm"]);
|
||||
|
||||
@@ -2,12 +2,13 @@
|
||||
|
||||
const path = require("path");
|
||||
const fs = require("fs");
|
||||
const tempy = require("tempy");
|
||||
const fromPairs = require("lodash/fromPairs");
|
||||
|
||||
const prettier = require("prettier-local");
|
||||
const runPrettier = require("../run-prettier.js");
|
||||
|
||||
const { default: tempy } = require("../../../vendors/tempy.js");
|
||||
|
||||
expect.addSnapshotSerializer(require("../path-serializer.js"));
|
||||
|
||||
describe("extracts file-info for a js file", () => {
|
||||
|
||||
Vendored
+1
-1
@@ -1561,7 +1561,7 @@ var setExitHandler = async (spawned, { cleanup, detached }, timedPromise) => {
|
||||
});
|
||||
};
|
||||
|
||||
// node_modules/execa/node_modules/is-stream/index.js
|
||||
// node_modules/is-stream/index.js
|
||||
function isStream(stream) {
|
||||
return stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
|
||||
}
|
||||
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
// This file is generated automatically.
|
||||
export {default} from "tempy";
|
||||
export * from "tempy";
|
||||
Vendored
+9911
File diff suppressed because it is too large.
Load diff
@@ -2389,6 +2389,13 @@ crypto-random-string@^2.0.0:
|
||||
resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5"
|
||||
integrity sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==
|
||||
|
||||
crypto-random-string@^4.0.0:
|
||||
version "4.0.0"
|
||||
resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-4.0.0.tgz#5a3cc53d7dd86183df5da0312816ceeeb5bb1fc2"
|
||||
integrity sha512-x8dy3RnvYdlUcPOjkEHqozhiwzKNSq7GcPuXFbnyMOCHxX8V3OgIg/pYuabl2sbUPfIJaeAQB7PMOK8DFIdoRA==
|
||||
dependencies:
|
||||
type-fest "^1.0.1"
|
||||
|
||||
cspell-gitignore@^5.18.3:
|
||||
version "5.18.3"
|
||||
resolved "https://registry.yarnpkg.com/cspell-gitignore/-/cspell-gitignore-5.18.3.tgz#b10cc327c75256f7e30f11f9adb711ae34b33537"
|
||||
@@ -6043,16 +6050,16 @@ temp-dir@^2.0.0:
|
||||
resolved "https://registry.yarnpkg.com/temp-dir/-/temp-dir-2.0.0.tgz#bde92b05bdfeb1516e804c9c00ad45177f31321e"
|
||||
integrity sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==
|
||||
|
||||
tempy@1.0.1:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/tempy/-/tempy-1.0.1.tgz#30fe901fd869cfb36ee2bd999805aa72fbb035de"
|
||||
integrity sha512-biM9brNqxSc04Ee71hzFbryD11nX7VPhQQY32AdDmjFvodsRFz/3ufeoTZ6uYkRFfGo188tENcASNs3vTdsM0w==
|
||||
tempy@2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/tempy/-/tempy-2.0.0.tgz#c434b89486e112151d5e91ef25592c8ee6fec4f6"
|
||||
integrity sha512-m+QReZVhpa0Y56fmfoLFRZN4aDFdd3qVd8a9k3RfyTw/1utVYNg+Ar4BY6l4/TlkhYCCJFfhYWt9uy0127buJg==
|
||||
dependencies:
|
||||
del "^6.0.0"
|
||||
is-stream "^2.0.0"
|
||||
is-stream "^3.0.0"
|
||||
temp-dir "^2.0.0"
|
||||
type-fest "^0.16.0"
|
||||
unique-string "^2.0.0"
|
||||
type-fest "^2.0.0"
|
||||
unique-string "^3.0.0"
|
||||
|
||||
terminal-link@^2.0.0:
|
||||
version "2.1.1"
|
||||
@@ -6182,11 +6189,6 @@ type-detect@4.0.8:
|
||||
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c"
|
||||
integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==
|
||||
|
||||
type-fest@^0.16.0:
|
||||
version "0.16.0"
|
||||
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.16.0.tgz#3240b891a78b0deae910dbeb86553e552a148860"
|
||||
integrity sha512-eaBzG6MxNzEn9kiwvtre90cXaNLkmadMWa1zQMs3XORCXNbsH/OewwbxC5ia9dCxIxnTAsSxXJaa/p5y8DlvJg==
|
||||
|
||||
type-fest@^0.20.2:
|
||||
version "0.20.2"
|
||||
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4"
|
||||
@@ -6207,6 +6209,11 @@ type-fest@^0.8.1:
|
||||
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d"
|
||||
integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==
|
||||
|
||||
type-fest@^1.0.1:
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-1.4.0.tgz#e9fb813fe3bf1744ec359d55d1affefa76f14be1"
|
||||
integrity sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==
|
||||
|
||||
type-fest@^2.0.0, type-fest@^2.5.0:
|
||||
version "2.11.1"
|
||||
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-2.11.1.tgz#04ddf5c0dbbd403fb8270d98ad1b4857e7ff7b24"
|
||||
@@ -6303,6 +6310,13 @@ unique-string@^2.0.0:
|
||||
dependencies:
|
||||
crypto-random-string "^2.0.0"
|
||||
|
||||
unique-string@^3.0.0:
|
||||
version "3.0.0"
|
||||
resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-3.0.0.tgz#84a1c377aff5fd7a8bc6b55d8244b2bd90d75b9a"
|
||||
integrity sha512-VGXBUVwxKMBUznyffQweQABPRRW1vHZAbadFZud4pLFAqRGvv/96vafgjWFqzourzr8YonlQiPgH0YCJfawoGQ==
|
||||
dependencies:
|
||||
crypto-random-string "^4.0.0"
|
||||
|
||||
unist-util-is@^4.0.0:
|
||||
version "4.1.0"
|
||||
resolved "https://registry.yarnpkg.com/unist-util-is/-/unist-util-is-4.1.0.tgz#976e5f462a7a5de73d94b706bac1b90671b57797"
|
||||
|
||||
Reference in new issue
Block a user