Compare commits
1 Commits
53987a7393
...
9eea005742
Author | SHA1 | Date | |
---|---|---|---|
9eea005742 |
@ -29,7 +29,7 @@ steps:
|
|||||||
- name: test
|
- name: test
|
||||||
image: 'node:21.1.0-slim'
|
image: 'node:21.1.0-slim'
|
||||||
commands:
|
commands:
|
||||||
- yarn set version 4.0.2
|
- yarn set version 4.0.1
|
||||||
- yarn install
|
- yarn install
|
||||||
- yarn run jest
|
- yarn run jest
|
||||||
|
|
||||||
|
28
.pnp.cjs
generated
28
.pnp.cjs
generated
@ -6289,12 +6289,6 @@ class ProxiedFS extends FakeFS {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function direntToPortable(dirent) {
|
|
||||||
const portableDirent = dirent;
|
|
||||||
if (typeof dirent.path === `string`)
|
|
||||||
portableDirent.path = npath.toPortablePath(dirent.path);
|
|
||||||
return portableDirent;
|
|
||||||
}
|
|
||||||
class NodeFS extends BasePortableFakeFS {
|
class NodeFS extends BasePortableFakeFS {
|
||||||
constructor(realFs = fs__default.default) {
|
constructor(realFs = fs__default.default) {
|
||||||
super();
|
super();
|
||||||
@ -6621,31 +6615,15 @@ class NodeFS extends BasePortableFakeFS {
|
|||||||
async readdirPromise(p, opts) {
|
async readdirPromise(p, opts) {
|
||||||
return await new Promise((resolve, reject) => {
|
return await new Promise((resolve, reject) => {
|
||||||
if (opts) {
|
if (opts) {
|
||||||
if (opts.recursive && process.platform === `win32`) {
|
this.realFs.readdir(npath.fromPortablePath(p), opts, this.makeCallback(resolve, reject));
|
||||||
if (opts.withFileTypes) {
|
|
||||||
this.realFs.readdir(npath.fromPortablePath(p), opts, this.makeCallback((results) => resolve(results.map(direntToPortable)), reject));
|
|
||||||
} else {
|
|
||||||
this.realFs.readdir(npath.fromPortablePath(p), opts, this.makeCallback((results) => resolve(results.map(npath.toPortablePath)), reject));
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.realFs.readdir(npath.fromPortablePath(p), opts, this.makeCallback(resolve, reject));
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.realFs.readdir(npath.fromPortablePath(p), this.makeCallback(resolve, reject));
|
this.realFs.readdir(npath.fromPortablePath(p), this.makeCallback((value) => resolve(value), reject));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
readdirSync(p, opts) {
|
readdirSync(p, opts) {
|
||||||
if (opts) {
|
if (opts) {
|
||||||
if (opts.recursive && process.platform === `win32`) {
|
return this.realFs.readdirSync(npath.fromPortablePath(p), opts);
|
||||||
if (opts.withFileTypes) {
|
|
||||||
return this.realFs.readdirSync(npath.fromPortablePath(p), opts).map(direntToPortable);
|
|
||||||
} else {
|
|
||||||
return this.realFs.readdirSync(npath.fromPortablePath(p), opts).map(npath.toPortablePath);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return this.realFs.readdirSync(npath.fromPortablePath(p), opts);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
return this.realFs.readdirSync(npath.fromPortablePath(p));
|
return this.realFs.readdirSync(npath.fromPortablePath(p));
|
||||||
}
|
}
|
||||||
|
89
.pnp.loader.mjs
generated
89
.pnp.loader.mjs
generated
@ -902,12 +902,6 @@ class ProxiedFS extends FakeFS {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function direntToPortable(dirent) {
|
|
||||||
const portableDirent = dirent;
|
|
||||||
if (typeof dirent.path === `string`)
|
|
||||||
portableDirent.path = npath.toPortablePath(dirent.path);
|
|
||||||
return portableDirent;
|
|
||||||
}
|
|
||||||
class NodeFS extends BasePortableFakeFS {
|
class NodeFS extends BasePortableFakeFS {
|
||||||
constructor(realFs = fs) {
|
constructor(realFs = fs) {
|
||||||
super();
|
super();
|
||||||
@ -1234,31 +1228,15 @@ class NodeFS extends BasePortableFakeFS {
|
|||||||
async readdirPromise(p, opts) {
|
async readdirPromise(p, opts) {
|
||||||
return await new Promise((resolve, reject) => {
|
return await new Promise((resolve, reject) => {
|
||||||
if (opts) {
|
if (opts) {
|
||||||
if (opts.recursive && process.platform === `win32`) {
|
this.realFs.readdir(npath.fromPortablePath(p), opts, this.makeCallback(resolve, reject));
|
||||||
if (opts.withFileTypes) {
|
|
||||||
this.realFs.readdir(npath.fromPortablePath(p), opts, this.makeCallback((results) => resolve(results.map(direntToPortable)), reject));
|
|
||||||
} else {
|
|
||||||
this.realFs.readdir(npath.fromPortablePath(p), opts, this.makeCallback((results) => resolve(results.map(npath.toPortablePath)), reject));
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.realFs.readdir(npath.fromPortablePath(p), opts, this.makeCallback(resolve, reject));
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.realFs.readdir(npath.fromPortablePath(p), this.makeCallback(resolve, reject));
|
this.realFs.readdir(npath.fromPortablePath(p), this.makeCallback((value) => resolve(value), reject));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
readdirSync(p, opts) {
|
readdirSync(p, opts) {
|
||||||
if (opts) {
|
if (opts) {
|
||||||
if (opts.recursive && process.platform === `win32`) {
|
return this.realFs.readdirSync(npath.fromPortablePath(p), opts);
|
||||||
if (opts.withFileTypes) {
|
|
||||||
return this.realFs.readdirSync(npath.fromPortablePath(p), opts).map(direntToPortable);
|
|
||||||
} else {
|
|
||||||
return this.realFs.readdirSync(npath.fromPortablePath(p), opts).map(npath.toPortablePath);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return this.realFs.readdirSync(npath.fromPortablePath(p), opts);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
return this.realFs.readdirSync(npath.fromPortablePath(p));
|
return this.realFs.readdirSync(npath.fromPortablePath(p));
|
||||||
}
|
}
|
||||||
@ -1394,7 +1372,7 @@ class VirtualFS extends ProxiedFS {
|
|||||||
|
|
||||||
const [major, minor] = process.versions.node.split(`.`).map((value) => parseInt(value, 10));
|
const [major, minor] = process.versions.node.split(`.`).map((value) => parseInt(value, 10));
|
||||||
const WATCH_MODE_MESSAGE_USES_ARRAYS = major > 19 || major === 19 && minor >= 2 || major === 18 && minor >= 13;
|
const WATCH_MODE_MESSAGE_USES_ARRAYS = major > 19 || major === 19 && minor >= 2 || major === 18 && minor >= 13;
|
||||||
const HAS_LAZY_LOADED_TRANSLATORS = major === 20 && minor < 6 || major === 19 && minor >= 3;
|
const HAS_LAZY_LOADED_TRANSLATORS = major > 19 || major === 19 && minor >= 3;
|
||||||
|
|
||||||
function readPackageScope(checkPath) {
|
function readPackageScope(checkPath) {
|
||||||
const rootSeparatorIndex = checkPath.indexOf(npath.sep);
|
const rootSeparatorIndex = checkPath.indexOf(npath.sep);
|
||||||
@ -2042,46 +2020,31 @@ async function resolve$1(originalSpecifier, context, nextResolve) {
|
|||||||
|
|
||||||
if (!HAS_LAZY_LOADED_TRANSLATORS) {
|
if (!HAS_LAZY_LOADED_TRANSLATORS) {
|
||||||
const binding = process.binding(`fs`);
|
const binding = process.binding(`fs`);
|
||||||
const originalReadFile = binding.readFileUtf8 || binding.readFileSync;
|
const originalfstat = binding.fstat;
|
||||||
if (originalReadFile) {
|
const ZIP_MASK = 4278190080;
|
||||||
binding[originalReadFile.name] = function(...args) {
|
const ZIP_MAGIC = 704643072;
|
||||||
|
binding.fstat = function(...args) {
|
||||||
|
const [fd, useBigint, req] = args;
|
||||||
|
if ((fd & ZIP_MASK) === ZIP_MAGIC && useBigint === false && req === void 0) {
|
||||||
try {
|
try {
|
||||||
return fs.readFileSync(args[0], {
|
const stats = fs.fstatSync(fd);
|
||||||
encoding: `utf8`,
|
return new Float64Array([
|
||||||
flag: args[1]
|
stats.dev,
|
||||||
});
|
stats.mode,
|
||||||
|
stats.nlink,
|
||||||
|
stats.uid,
|
||||||
|
stats.gid,
|
||||||
|
stats.rdev,
|
||||||
|
stats.blksize,
|
||||||
|
stats.ino,
|
||||||
|
stats.size,
|
||||||
|
stats.blocks
|
||||||
|
]);
|
||||||
} catch {
|
} catch {
|
||||||
}
|
}
|
||||||
return originalReadFile.apply(this, args);
|
}
|
||||||
};
|
return originalfstat.apply(this, args);
|
||||||
} else {
|
};
|
||||||
const binding2 = process.binding(`fs`);
|
|
||||||
const originalfstat = binding2.fstat;
|
|
||||||
const ZIP_MASK = 4278190080;
|
|
||||||
const ZIP_MAGIC = 704643072;
|
|
||||||
binding2.fstat = function(...args) {
|
|
||||||
const [fd, useBigint, req] = args;
|
|
||||||
if ((fd & ZIP_MASK) === ZIP_MAGIC && useBigint === false && req === void 0) {
|
|
||||||
try {
|
|
||||||
const stats = fs.fstatSync(fd);
|
|
||||||
return new Float64Array([
|
|
||||||
stats.dev,
|
|
||||||
stats.mode,
|
|
||||||
stats.nlink,
|
|
||||||
stats.uid,
|
|
||||||
stats.gid,
|
|
||||||
stats.rdev,
|
|
||||||
stats.blksize,
|
|
||||||
stats.ino,
|
|
||||||
stats.size,
|
|
||||||
stats.blocks
|
|
||||||
]);
|
|
||||||
} catch {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return originalfstat.apply(this, args);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const resolve = resolve$1;
|
const resolve = resolve$1;
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
|||||||
yarnPath: .yarn/releases/yarn-4.0.2.cjs
|
yarnPath: .yarn/releases/yarn-4.0.1.cjs
|
||||||
|
2
Makefile
2
Makefile
@ -6,7 +6,7 @@ asdf_install:
|
|||||||
|
|
||||||
.PHONY: yarn_setup
|
.PHONY: yarn_setup
|
||||||
yarn_setup:
|
yarn_setup:
|
||||||
@yarn set version 4.0.2
|
@yarn set version 4.0.1
|
||||||
@yarn init -2
|
@yarn init -2
|
||||||
@yarn add typescript jest @types/jest ts-node ts-jest
|
@yarn add typescript jest @types/jest ts-node ts-jest
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "clean-architecture",
|
"name": "clean-architecture",
|
||||||
"packageManager": "yarn@4.0.2",
|
"packageManager": "yarn@4.0.1",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/jest": "^29.5.4",
|
"@types/jest": "^29.5.4",
|
||||||
"@types/node": "^20.6.3",
|
"@types/node": "^20.6.3",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user