File tree Expand file tree Collapse file tree 12 files changed +13
-4
lines changed Expand file tree Collapse file tree 12 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ export type ParseScriptSubtag<
258
258
> = Result
259
259
260
260
/**
261
- * parser unicode script subtag (EBNF: = alpha{4};)
261
+ * parse unicode script subtag (EBNF: = alpha{4};)
262
262
* https://unicode.org/reports/tr35/#unicode_script_subtag
263
263
*/
264
264
// TODO: Check if the script subtag is in CLDR
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import test from 'node:test'
3
3
import { createServer } from 'node:http'
4
4
import playwright from 'playwright'
5
5
import handler from 'serve-handler'
6
+ import process from 'node:process'
6
7
7
8
const sleep = ( ms ) => new Promise ( ( resolve ) => setTimeout ( resolve , ms ) )
8
9
Original file line number Diff line number Diff line change 1
- <!doctype html>
1
+ <!DOCTYPE html>
2
2
< html lang ="en ">
3
3
< head >
4
4
< meta charset ="UTF-8 " />
Original file line number Diff line number Diff line change 1
1
import { createServer } from 'node:http'
2
2
import { getHeaderLanguages } from '@intlify/utils/node'
3
+ import process from 'node:process'
3
4
4
5
const server = createServer ( ( req , res ) => {
5
6
const languages = getHeaderLanguages ( req )
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import assert from 'node:assert'
2
2
import test from 'node:test'
3
3
import { spawn } from 'node:child_process'
4
4
import { fetch } from 'ofetch'
5
+ import process from 'node:process'
5
6
6
7
const sleep = ( ms ) => new Promise ( ( resolve ) => setTimeout ( resolve , ms ) )
7
8
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import semver from 'semver'
5
5
import { readPackageJSON } from 'pkg-types'
6
6
7
7
import type { ParseError } from 'jsonc-parser'
8
+ import process from 'node:process'
8
9
9
10
async function main ( ) {
10
11
const npmPath = resolve ( process . cwd ( ) , 'package.json' )
Original file line number Diff line number Diff line change 1
1
import { execSync } from 'node:child_process'
2
2
import { promises as fs } from 'node:fs'
3
3
import { resolve } from 'node:path'
4
+ import process from 'node:process'
4
5
5
6
async function main ( ) {
6
7
const commit = execSync ( 'git rev-parse --short HEAD' ) . toString ( 'utf-8' ) . trim ( )
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { resolve } from 'node:path'
3
3
import { fileURLToPath } from 'node:url'
4
4
import { isExists } from './utils.ts'
5
5
import { readPackageJSON } from 'pkg-types'
6
+ import process from 'node:process'
6
7
7
8
const __dirname = fileURLToPath ( new URL ( '.' , import . meta. url ) )
8
9
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { resolve } from 'node:path'
2
2
import { fileURLToPath } from 'node:url'
3
3
import { readPackageJSON } from 'pkg-types'
4
4
import { isExists } from './utils.ts'
5
+ import process from 'node:process'
5
6
6
7
const __dirname = fileURLToPath ( new URL ( '.' , import . meta. url ) )
7
8
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { resolve } from 'node:path'
3
3
import { fileURLToPath } from 'node:url'
4
4
import { readPackageJSON , writePackageJSON } from 'pkg-types'
5
5
import { isExists } from './utils.ts'
6
+ import process from 'node:process'
6
7
7
8
const __dirname = fileURLToPath ( new URL ( '.' , import . meta. url ) )
8
9
You can’t perform that action at this time.
0 commit comments