Skip to content

Commit

Permalink
build(deps): bump @flex-development/mlly from 1.0.0-alpha.15 to 1.0.0…
Browse files Browse the repository at this point in the history
…-alpha.16

Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Aug 8, 2023
1 parent 6c25a02 commit 1856eaf
Show file tree
Hide file tree
Showing 13 changed files with 102 additions and 115 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export const load = async (url, context) => {
/**
* Source code.
*
* @type {Uint8Array | string | undefined}
* @type {tutils.Optional<esm.Source<Uint8Array | string>>}
* @var source
*/
let source = await mlly.getSource(url, { format: context.format })
Expand Down
2 changes: 1 addition & 1 deletion loader.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const load = async (url, context) => {
/**
* Module source code.
*
* @type {esm.Source<Uint8Array | string> | undefined}
* @type {tutils.Optional<esm.Source<Uint8Array | string>>}
* @var source
*/
let source = await mlly.getSource(url, { format: context.format })
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
},
"dependencies": {
"@flex-development/errnode": "1.5.0",
"@flex-development/mlly": "1.0.0-alpha.15",
"@flex-development/mlly": "1.0.0-alpha.16",
"@flex-development/pathe": "1.0.3",
"@flex-development/tsconfig-types": "4.0.0",
"@flex-development/tutils": "6.0.0-alpha.16",
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/options-load-tsconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface LoadTsconfigOptions {
*
* @see {@linkcode mlly.ModuleId}
*
* @default internal.isFile
* @default mlly.isFile
*
* @param {mlly.ModuleId} id - Module id to evaluate
* @return {boolean} `true` if file exists at `id`, `false` otherwise
Expand Down
27 changes: 0 additions & 27 deletions src/internal/__tests__/is-directory.spec.ts

This file was deleted.

27 changes: 0 additions & 27 deletions src/internal/__tests__/is-file.spec.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/internal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
* @module tsconfig-utils/internal
*/

export { default as isDirectory } from './is-directory'
export { default as isFile } from './is-file'
export { default as parseJSON } from './parse-json'
export { default as readFile } from './read-file'
export { default as validateFunction } from './validate-function'
Expand Down
25 changes: 0 additions & 25 deletions src/internal/is-directory.ts

This file was deleted.

25 changes: 0 additions & 25 deletions src/internal/is-file.ts

This file was deleted.

3 changes: 2 additions & 1 deletion src/utils/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

import type { Lib, LibFile } from '@flex-development/tsconfig-types'
import { cast } from '@flex-development/tutils'

/**
* Map containing [type definition library names][1] that correspond to files in
Expand Down Expand Up @@ -100,7 +101,7 @@ const LIB: Map<Lowercase<Lib>, LibFile> = new Map<Lowercase<Lib>, LibFile>(
'webworker.importscripts',
'webworker.iterable',
'webworker'
].map(name => [name, `lib.${name}.d.ts`] as [Lowercase<Lib>, LibFile])
].map(name => cast([name, `lib.${name}.d.ts`]))
)

export default LIB
4 changes: 2 additions & 2 deletions src/utils/load-tsconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const loadTsconfig = (
id: mlly.ModuleId,
options?: LoadTsconfigOptions
): Nullable<TSConfig> => {
const { file = internal.isFile, read = internal.readFile } = options ?? {}
const { file = mlly.isFile, read = internal.readFile } = options ?? {}

// ensure id is an instance of URL or a string
internal.validateURLString(id, 'id')
Expand Down Expand Up @@ -104,7 +104,7 @@ const loadTsconfig = (
try {
tsconfig = internal.parseJSON<TSConfig>(content)
} catch (e: unknown) {
throw new ERR_OPERATION_FAILED((e as Error).message)
throw new ERR_OPERATION_FAILED(cast<Error>(e).message)
}

// throw if tsconfig is not plain object
Expand Down
2 changes: 1 addition & 1 deletion src/utils/resolve-paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const resolvePaths = async (
conditions,
ext,
extensions,
file = internal.isFile,
file = mlly.isFile,
parent,
preserveSymlinks,
read = internal.readFile,
Expand Down
94 changes: 93 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,13 @@ __metadata:
languageName: node
linkType: hard

"@flex-development/builtin-modules@npm:2.1.1":
version: 2.1.1
resolution: "@flex-development/builtin-modules@npm:2.1.1::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40flex-development%2Fbuiltin-modules%2F2.1.1%2F03fc38789c4465ed1f2d7973ef4c16a56016e7bd"
checksum: 1690c17322a463e8d506aef613a0fd121321a1358867bd2e43bd2d054f06d0c7c191624dde3c56fbf2acea5272517a542816a538a390074ec1b4e53d9e3786e4
languageName: node
linkType: hard

"@flex-development/commitlint-config@npm:1.0.1":
version: 1.0.1
resolution: "@flex-development/commitlint-config@npm:1.0.1::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40flex-development%2Fcommitlint-config%2F1.0.1%2F802e285802fe8188c2f02f68114ca31a20b6eb6d"
Expand Down Expand Up @@ -1134,6 +1141,18 @@ __metadata:
languageName: node
linkType: hard

"@flex-development/errnode@npm:2.0.0":
version: 2.0.0
resolution: "@flex-development/errnode@npm:2.0.0::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40flex-development%2Ferrnode%2F2.0.0%2F62f38769b2f92d753b3e526ce7e9a23369aaa1da"
dependencies:
"@flex-development/tutils": "npm:6.0.0-alpha.12"
node-inspect-extracted: "npm:2.0.2"
peerDependencies:
"@types/node": ">=16.18.23"
checksum: e358293f1cff1b0d56bb3f165981c7159a14d0a6ad6ab24e68400c8e0684f96fd3bfb2d3dd037a3c15e57d25da40c22851ae1db2b80fa2a4ce0c083b9ac01a63
languageName: node
linkType: hard

"@flex-development/esm-types@npm:1.0.0":
version: 1.0.0
resolution: "@flex-development/esm-types@npm:1.0.0::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40flex-development%2Fesm-types%2F1.0.0%2Ffde631289466ab81c4ff20b848ea26926ee9d478"
Expand All @@ -1159,6 +1178,13 @@ __metadata:
languageName: node
linkType: hard

"@flex-development/export-regex@npm:2.0.0":
version: 2.0.0
resolution: "@flex-development/export-regex@npm:2.0.0::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40flex-development%2Fexport-regex%2F2.0.0%2F22870ef7f49a1df166fc3acd506d1c62ed4b22a5"
checksum: e5f313c4967003e3e492fd9222c213db4ba4a8cbbb2b748c35c03f6f9f8897b679d8ffc57cc47db28ad512ad134a0e7f7bc2cdeffe956cc4e78492861b53f5d3
languageName: node
linkType: hard

"@flex-development/ext-regex@npm:1.0.0":
version: 1.0.0
resolution: "@flex-development/ext-regex@npm:1.0.0::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40flex-development%2Fext-regex%2F1.0.0%2Fe1729f6d8dfd8e62423acbdf6a7c341e5436568b"
Expand All @@ -1184,6 +1210,13 @@ __metadata:
languageName: node
linkType: hard

"@flex-development/import-regex@npm:3.0.0":
version: 3.0.0
resolution: "@flex-development/import-regex@npm:3.0.0::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40flex-development%2Fimport-regex%2F3.0.0%2F7ebf5b55cd40a85b83155f8877507fc965e92fbf"
checksum: d05054a335093ebb68debd2485053bc80b2904bf0fe3708acaafb7a09cc5fccd3cfb1605ffe48b6f924f7339ca2015671544c78ca8070b5cbcf2b0fb90201517
languageName: node
linkType: hard

"@flex-development/is-builtin@npm:2.0.0":
version: 2.0.0
resolution: "@flex-development/is-builtin@npm:2.0.0::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40flex-development%2Fis-builtin%2F2.0.0%2F898339bf7e2f10df74d1472e651f43fca8b746bf"
Expand All @@ -1195,6 +1228,19 @@ __metadata:
languageName: node
linkType: hard

"@flex-development/is-builtin@npm:3.1.0":
version: 3.1.0
resolution: "@flex-development/is-builtin@npm:3.1.0::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40flex-development%2Fis-builtin%2F3.1.0%2F08c6d275b7e1569b7f25f320d4538dc0f44a9080"
dependencies:
"@flex-development/builtin-modules": "npm:2.1.1"
"@flex-development/pathe": "npm:2.0.0"
"@flex-development/tutils": "npm:6.0.0-alpha.12"
peerDependencies:
"@types/node": ">=16.18.23"
checksum: 06cabcd2f5c4744b7fb6a31cb2008b9d1e52fdf4f5a42eb57e1418ad0d861b6c1a1adb9ba3b6386840d8792f8f523cc7eedc310728e48f2f6d03808c93bf9828
languageName: node
linkType: hard

"@flex-development/mkbuild@npm:1.0.0-alpha.20":
version: 1.0.0-alpha.20
resolution: "@flex-development/mkbuild@npm:1.0.0-alpha.20::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40flex-development%2Fmkbuild%2F1.0.0-alpha.20%2Fd76a588f7436df11522a53f514b29069a90c5cb6"
Expand Down Expand Up @@ -1262,6 +1308,24 @@ __metadata:
languageName: node
linkType: hard

"@flex-development/mlly@npm:1.0.0-alpha.16":
version: 1.0.0-alpha.16
resolution: "@flex-development/mlly@npm:1.0.0-alpha.16::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40flex-development%2Fmlly%2F1.0.0-alpha.16%2F608697efb2350bd08b96c39f0118337bb607ce2a"
dependencies:
"@flex-development/errnode": "npm:2.0.0"
"@flex-development/export-regex": "npm:2.0.0"
"@flex-development/import-regex": "npm:3.0.0"
"@flex-development/is-builtin": "npm:3.1.0"
"@flex-development/pathe": "npm:2.0.0"
"@flex-development/pkg-types": "npm:3.0.0"
"@flex-development/tutils": "npm:6.0.0-alpha.15"
peerDependencies:
"@types/node": ">=16.18.23"
node-fetch: ">=3.3.0"
checksum: eb97ee6d46e8e6df20551fc933febce44c903d6570a84d63f69e156149b9538d1068d1e2f7e070d13aa48d8fb51ddecf56e5297075fce58e5d2767e0bb58cedd
languageName: node
linkType: hard

"@flex-development/pathe@npm:1.0.3":
version: 1.0.3
resolution: "@flex-development/pathe@npm:1.0.3::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40flex-development%2Fpathe%2F1.0.3%2F097d5bd49df40304b86645ee9fd50be7711eac56"
Expand All @@ -1272,6 +1336,16 @@ __metadata:
languageName: node
linkType: hard

"@flex-development/pathe@npm:2.0.0":
version: 2.0.0
resolution: "@flex-development/pathe@npm:2.0.0::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40flex-development%2Fpathe%2F2.0.0%2F3333862074db1a5d797c2305f7bbb17593320d2f"
dependencies:
"@flex-development/errnode": "npm:2.0.0"
"@flex-development/tutils": "npm:6.0.0-alpha.12"
checksum: 189df750c7a55ce973fbbc688f9aae239f8f37287e983e2e142fe1d538f944539c416452dd618bbf1da54f8012841579ad45dc91f55126e0a76d25b2b525b269
languageName: node
linkType: hard

"@flex-development/pkg-types@npm:2.0.0":
version: 2.0.0
resolution: "@flex-development/pkg-types@npm:2.0.0::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40flex-development%2Fpkg-types%2F2.0.0%2F58267203fea93d31234e31d65e2058ed566b209a"
Expand Down Expand Up @@ -1355,7 +1429,7 @@ __metadata:
"@flex-development/errnode": "npm:1.5.0"
"@flex-development/esm-types": "npm:1.0.0"
"@flex-development/mkbuild": "npm:1.0.0-alpha.20"
"@flex-development/mlly": "npm:1.0.0-alpha.15"
"@flex-development/mlly": "npm:1.0.0-alpha.16"
"@flex-development/pathe": "npm:1.0.3"
"@flex-development/tsconfig-types": "npm:4.0.0"
"@flex-development/tutils": "npm:6.0.0-alpha.16"
Expand Down Expand Up @@ -1458,6 +1532,17 @@ __metadata:
languageName: node
linkType: hard

"@flex-development/tutils@npm:6.0.0-alpha.15":
version: 6.0.0-alpha.15
resolution: "@flex-development/tutils@npm:6.0.0-alpha.15::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40flex-development%2Ftutils%2F6.0.0-alpha.15%2F193cf7862ccf488c63d8f30d4f8e5abd79585735"
dependencies:
dequal: "npm:2.0.3"
peerDependencies:
typescript: ">=5.0.4"
checksum: c4b0dc11cd32ddcf30ab369f4a7ce8d8467f0e65ed9f516b81c90b32373b45d5bc38da0691ab0b7705fd5eea8d86a3b34c8aad534e8a8a073421328ff19cd855
languageName: node
linkType: hard

"@flex-development/tutils@npm:6.0.0-alpha.16":
version: 6.0.0-alpha.16
resolution: "@flex-development/tutils@npm:6.0.0-alpha.16::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40flex-development%2Ftutils%2F6.0.0-alpha.16%2Fab40c9d4e1f739b4cd32a792feb64feea5f57e5d"
Expand Down Expand Up @@ -7524,6 +7609,13 @@ __metadata:
languageName: node
linkType: hard

"node-inspect-extracted@npm:2.0.2":
version: 2.0.2
resolution: "node-inspect-extracted@npm:2.0.2"
checksum: 858d5d66a8de7466ad1579ea491ac6070f7f368a675d4a25561632ccbaa5f35b5bae212c0973bb374149d02320e336c65512a51266f53566da02c1a75b3b69d4
languageName: node
linkType: hard

"node-notifier@npm:10.0.1":
version: 10.0.1
resolution: "node-notifier@npm:10.0.1"
Expand Down

0 comments on commit 1856eaf

Please sign in to comment.