Compare commits

..

5 Commits

Author SHA1 Message Date
430e9eba81 chore(deps): update node.js to v21.2.0
All checks were successful
continuous-integration/drone/pr Build is passing
2023-11-26 22:18:11 +00:00
2b040ed5bd fix(deps): update dependency typescript to v5.3.2 (#19)
All checks were successful
continuous-integration/drone/push Build is passing
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [typescript](https://www.typescriptlang.org/) ([source](https://github.com/Microsoft/TypeScript)) | dependencies | minor | [`5.2.2` -> `5.3.2`](https://renovatebot.com/diffs/npm/typescript/5.2.2/5.3.2) |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM1LjExNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Reviewed-on: #19
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-11-26 21:50:13 +00:00
6847be023b fix(deps): update dependency @types/node to v20.10.0 (#16)
All checks were successful
continuous-integration/drone/push Build is passing
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped)) | dependencies | minor | [`20.8.10` -> `20.10.0`](https://renovatebot.com/diffs/npm/@types%2fnode/20.8.10/20.10.0) |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM1LjExNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Reviewed-on: #16
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-11-25 16:59:35 +00:00
ceebe5a317 fix(deps): update dependency @types/jest to v29.5.10 (#15)
All checks were successful
continuous-integration/drone/push Build is passing
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jest) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped)) | dependencies | patch | [`29.5.7` -> `29.5.10`](https://renovatebot.com/diffs/npm/@types%2fjest/29.5.7/29.5.10) |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM1LjExNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Reviewed-on: #15
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-11-24 19:55:37 +00:00
aca28dc3e2 chore(deps): update yarn to v4.0.2 (#17)
All checks were successful
continuous-integration/drone/push Build is passing
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [yarn](https://github.com/yarnpkg/berry) | packageManager | patch | [`4.0.1` -> `4.0.2`](https://renovatebot.com/diffs/npm/yarn/4.0.1/4.0.2) |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM1LjExNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Reviewed-on: #17
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-11-24 19:36:03 +00:00
8 changed files with 900 additions and 841 deletions

View File

@ -29,7 +29,7 @@ steps:
- name: test - name: test
image: 'node:21.2.0-slim' image: 'node:21.2.0-slim'
commands: commands:
- yarn set version 4.0.1 - yarn set version 4.0.2
- yarn install - yarn install
- yarn run jest - yarn run jest

952
.pnp.cjs generated

File diff suppressed because it is too large Load Diff

47
.pnp.loader.mjs generated
View File

@ -902,6 +902,12 @@ 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();
@ -1228,15 +1234,31 @@ 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) {
this.realFs.readdir(npath.fromPortablePath(p), opts, this.makeCallback(resolve, reject)); if (opts.recursive && process.platform === `win32`) {
if (opts.withFileTypes) {
this.realFs.readdir(npath.fromPortablePath(p), opts, this.makeCallback((results) => resolve(results.map(direntToPortable)), reject));
} else { } else {
this.realFs.readdir(npath.fromPortablePath(p), this.makeCallback((value) => resolve(value), reject)); 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 {
this.realFs.readdir(npath.fromPortablePath(p), this.makeCallback(resolve, reject));
} }
}); });
} }
readdirSync(p, opts) { readdirSync(p, opts) {
if (opts) { if (opts) {
if (opts.recursive && process.platform === `win32`) {
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); return this.realFs.readdirSync(npath.fromPortablePath(p), opts);
}
} else { } else {
return this.realFs.readdirSync(npath.fromPortablePath(p)); return this.realFs.readdirSync(npath.fromPortablePath(p));
} }
@ -1372,7 +1394,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 > 19 || major === 19 && minor >= 3; const HAS_LAZY_LOADED_TRANSLATORS = major === 20 && minor < 6 || major === 19 && minor >= 3;
function readPackageScope(checkPath) { function readPackageScope(checkPath) {
const rootSeparatorIndex = checkPath.indexOf(npath.sep); const rootSeparatorIndex = checkPath.indexOf(npath.sep);
@ -2020,10 +2042,24 @@ 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 originalfstat = binding.fstat; const originalReadFile = binding.readFileUtf8 || binding.readFileSync;
if (originalReadFile) {
binding[originalReadFile.name] = function(...args) {
try {
return fs.readFileSync(args[0], {
encoding: `utf8`,
flag: args[1]
});
} catch {
}
return originalReadFile.apply(this, args);
};
} else {
const binding2 = process.binding(`fs`);
const originalfstat = binding2.fstat;
const ZIP_MASK = 4278190080; const ZIP_MASK = 4278190080;
const ZIP_MAGIC = 704643072; const ZIP_MAGIC = 704643072;
binding.fstat = function(...args) { binding2.fstat = function(...args) {
const [fd, useBigint, req] = args; const [fd, useBigint, req] = args;
if ((fd & ZIP_MASK) === ZIP_MAGIC && useBigint === false && req === void 0) { if ((fd & ZIP_MASK) === ZIP_MAGIC && useBigint === false && req === void 0) {
try { try {
@ -2045,6 +2081,7 @@ if (!HAS_LAZY_LOADED_TRANSLATORS) {
} }
return originalfstat.apply(this, args); return originalfstat.apply(this, args);
}; };
}
} }
const resolve = resolve$1; const resolve = resolve$1;

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
yarnPath: .yarn/releases/yarn-4.0.1.cjs yarnPath: .yarn/releases/yarn-4.0.2.cjs

View File

@ -6,7 +6,7 @@ asdf_install:
.PHONY: yarn_setup .PHONY: yarn_setup
yarn_setup: yarn_setup:
@yarn set version 4.0.1 @yarn set version 4.0.2
@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

View File

@ -1,6 +1,6 @@
{ {
"name": "clean-architecture", "name": "clean-architecture",
"packageManager": "yarn@4.0.1", "packageManager": "yarn@4.0.2",
"dependencies": { "dependencies": {
"@types/jest": "^29.5.4", "@types/jest": "^29.5.4",
"@types/node": "^20.6.3", "@types/node": "^20.6.3",

View File

@ -894,21 +894,21 @@ __metadata:
linkType: hard linkType: hard
"@types/jest@npm:^29.5.4": "@types/jest@npm:^29.5.4":
version: 29.5.7 version: 29.5.10
resolution: "@types/jest@npm:29.5.7" resolution: "@types/jest@npm:29.5.10"
dependencies: dependencies:
expect: "npm:^29.0.0" expect: "npm:^29.0.0"
pretty-format: "npm:^29.0.0" pretty-format: "npm:^29.0.0"
checksum: 231c873f3d1ddac973b8f8f2ad7760677d941d85fb52d1c5dc4a311bafba4c2c1658a1040fd7054a51f4d1841f51c6ca4cabf70675ee4fa9e10fc5b8066e1de1 checksum: b46171d59d12a5f69bbe710f65eaf59a8073337c6b4a67dff8158575caec53f1c61f8a7d645b34d6ac3c4ea398acd30f0c5d1c4a131c0c918798019264a3397d
languageName: node languageName: node
linkType: hard linkType: hard
"@types/node@npm:*, @types/node@npm:^20.6.3": "@types/node@npm:*, @types/node@npm:^20.6.3":
version: 20.8.10 version: 20.10.0
resolution: "@types/node@npm:20.8.10" resolution: "@types/node@npm:20.10.0"
dependencies: dependencies:
undici-types: "npm:~5.26.4" undici-types: "npm:~5.26.4"
checksum: caaa3ae9294f1bfdacb029a916c64af63cbcea613a52f53ea86f93c91779859af177b2b68113ef835194519f5e76cadda08559929b68297f1a8a568c207f9f66 checksum: f379e57d9d28cb5f3d8eab943de0c54a0ca2f95ee356e1fe2a1a4fa718b740103ae522c50ce107cffd52c3642ef3244cfc55bf5369081dd6c48369c8587b21ae
languageName: node languageName: node
linkType: hard linkType: hard
@ -3730,22 +3730,22 @@ __metadata:
linkType: hard linkType: hard
"typescript@npm:^5.2.2": "typescript@npm:^5.2.2":
version: 5.2.2 version: 5.3.2
resolution: "typescript@npm:5.2.2" resolution: "typescript@npm:5.3.2"
bin: bin:
tsc: bin/tsc tsc: bin/tsc
tsserver: bin/tsserver tsserver: bin/tsserver
checksum: 91ae3e6193d0ddb8656d4c418a033f0f75dec5e077ebbc2bd6d76439b93f35683936ee1bdc0e9cf94ec76863aa49f27159b5788219b50e1cd0cd6d110aa34b07 checksum: d7dbe1fbe19039e36a65468ea64b5d338c976550394ba576b7af9c68ed40c0bc5d12ecce390e4b94b287a09a71bd3229f19c2d5680611f35b7c53a3898791159
languageName: node languageName: node
linkType: hard linkType: hard
"typescript@patch:typescript@npm%3A^5.2.2#optional!builtin<compat/typescript>": "typescript@patch:typescript@npm%3A^5.2.2#optional!builtin<compat/typescript>":
version: 5.2.2 version: 5.3.2
resolution: "typescript@patch:typescript@npm%3A5.2.2#optional!builtin<compat/typescript>::version=5.2.2&hash=f3b441" resolution: "typescript@patch:typescript@npm%3A5.3.2#optional!builtin<compat/typescript>::version=5.3.2&hash=e012d7"
bin: bin:
tsc: bin/tsc tsc: bin/tsc
tsserver: bin/tsserver tsserver: bin/tsserver
checksum: 062c1cee1990e6b9419ce8a55162b8dc917eb87f807e4de0327dbc1c2fa4e5f61bc0dd4e034d38ff541d1ed0479b53bcee8e4de3a4075c51a1724eb6216cb6f5 checksum: 73c8bad74e732d93211c9d77f28b03307e2f5fc6a0afc73f4b783261ab567686a16d6ae958bdaef383a00be1b0b8c8b6741dd6ca3d13af4963fa7e47456d49c7
languageName: node languageName: node
linkType: hard linkType: hard