Skip to content

feat: support cjs and esm both #78

feat: support cjs and esm both

feat: support cjs and esm both #78

Triggered via pull request June 10, 2024 13:29
@fengmk2fengmk2
synchronize #10
next-major
Status Failure
Total duration 59s
Artifacts

nodejs.yml

on: pull_request
Node.js  /  Setup
7s
Node.js / Setup
Matrix: Node.js / Test
Fit to window
Zoom out
Zoom in

Annotations

40 errors and 12 warnings
Node.js / Test (ubuntu-latest, 18.7.0): src/EggRouter.ts#L5
'assert' import is restricted from being used
Node.js / Test (ubuntu-latest, 18.7.0): test/EggRouter.test.ts#L3
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 18.7.0): test/EggRouter.test.ts#L4
'assert' module is restricted from being used
Node.js / Test (ubuntu-latest, 18.7.0): test/EggRouter.test.ts#L4
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 18.7.0): test/EggRouter.test.ts#L5
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 18.7.0): test/Router.test.ts#L3
'fs' module is restricted from being used
Node.js / Test (ubuntu-latest, 18.7.0): test/Router.test.ts#L3
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 18.7.0): test/Router.test.ts#L4
'http' module is restricted from being used
Node.js / Test (ubuntu-latest, 18.7.0): test/Router.test.ts#L4
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 18.7.0): test/Router.test.ts#L5
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 22): src/EggRouter.ts#L5
'assert' import is restricted from being used
Node.js / Test (ubuntu-latest, 22): test/EggRouter.test.ts#L3
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 22): test/EggRouter.test.ts#L4
'assert' module is restricted from being used
Node.js / Test (ubuntu-latest, 22): test/EggRouter.test.ts#L4
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 22): test/EggRouter.test.ts#L5
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 22): test/Router.test.ts#L3
'fs' module is restricted from being used
Node.js / Test (ubuntu-latest, 22): test/Router.test.ts#L3
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 22): test/Router.test.ts#L4
'http' module is restricted from being used
Node.js / Test (ubuntu-latest, 22): test/Router.test.ts#L4
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 22): test/Router.test.ts#L5
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 20): src/EggRouter.ts#L5
'assert' import is restricted from being used
Node.js / Test (ubuntu-latest, 20): test/EggRouter.test.ts#L3
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 20): test/EggRouter.test.ts#L4
'assert' module is restricted from being used
Node.js / Test (ubuntu-latest, 20): test/EggRouter.test.ts#L4
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 20): test/EggRouter.test.ts#L5
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 20): test/Router.test.ts#L3
'fs' module is restricted from being used
Node.js / Test (ubuntu-latest, 20): test/Router.test.ts#L3
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 20): test/Router.test.ts#L4
'http' module is restricted from being used
Node.js / Test (ubuntu-latest, 20): test/Router.test.ts#L4
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 20): test/Router.test.ts#L5
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 18): src/EggRouter.ts#L5
'assert' import is restricted from being used
Node.js / Test (ubuntu-latest, 18): test/EggRouter.test.ts#L3
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 18): test/EggRouter.test.ts#L4
'assert' module is restricted from being used
Node.js / Test (ubuntu-latest, 18): test/EggRouter.test.ts#L4
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 18): test/EggRouter.test.ts#L5
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 18): test/Router.test.ts#L3
'fs' module is restricted from being used
Node.js / Test (ubuntu-latest, 18): test/Router.test.ts#L3
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 18): test/Router.test.ts#L4
'http' module is restricted from being used
Node.js / Test (ubuntu-latest, 18): test/Router.test.ts#L4
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 18): test/Router.test.ts#L5
Require statement not part of import statement
Node.js / Test (ubuntu-latest, 18.7.0): src/EggRouter.ts#L97
Expected @param names to be "[object Object]". Got "name, prefix, middleware"
Node.js / Test (ubuntu-latest, 18.7.0): src/Router.ts#L484
Expected @param names to be "name, params, [object Object]". Got "name, params, options"
Node.js / Test (ubuntu-latest, 18.7.0): test/Router.test.ts#L507
Use 'fs.promises.readFile()' instead
Node.js / Test (ubuntu-latest, 22): src/EggRouter.ts#L97
Expected @param names to be "[object Object]". Got "name, prefix, middleware"
Node.js / Test (ubuntu-latest, 22): src/Router.ts#L484
Expected @param names to be "name, params, [object Object]". Got "name, params, options"
Node.js / Test (ubuntu-latest, 22): test/Router.test.ts#L507
Use 'fs.promises.readFile()' instead
Node.js / Test (ubuntu-latest, 20): src/EggRouter.ts#L97
Expected @param names to be "[object Object]". Got "name, prefix, middleware"
Node.js / Test (ubuntu-latest, 20): src/Router.ts#L484
Expected @param names to be "name, params, [object Object]". Got "name, params, options"
Node.js / Test (ubuntu-latest, 20): test/Router.test.ts#L507
Use 'fs.promises.readFile()' instead
Node.js / Test (ubuntu-latest, 18): src/EggRouter.ts#L97
Expected @param names to be "[object Object]". Got "name, prefix, middleware"
Node.js / Test (ubuntu-latest, 18): src/Router.ts#L484
Expected @param names to be "name, params, [object Object]". Got "name, params, options"
Node.js / Test (ubuntu-latest, 18): test/Router.test.ts#L507
Use 'fs.promises.readFile()' instead