@curveball/kernel
Advanced tools
Comparing version 0.21.2 to 1.0.0
{ | ||
"name": "@curveball/kernel", | ||
"version": "0.21.2", | ||
"version": "1.0.0", | ||
"description": "Curveball is a framework writting in Typescript for Node.js", | ||
"main": "cjs/index.js", | ||
"type": "module", | ||
"exports": { | ||
"require": "./cjs/index.js", | ||
"import": "./esm/index.js" | ||
}, | ||
"exports": "./dist/index.js", | ||
"scripts": { | ||
@@ -26,4 +22,3 @@ "prepublishOnly": "make build", | ||
"README.md", | ||
"esm", | ||
"cjs", | ||
"dist", | ||
"LICENSE", | ||
@@ -53,11 +48,11 @@ "src" | ||
"@types/node-fetch": "^2.5.8", | ||
"@typescript-eslint/eslint-plugin": "^5.9.0", | ||
"@typescript-eslint/parser": "^5.9.0", | ||
"chai": "^4.3.0", | ||
"@typescript-eslint/eslint-plugin": "^6.18.1", | ||
"@typescript-eslint/parser": "^6.18.1", | ||
"chai": "^5.0.0", | ||
"eslint": "^8.6.0", | ||
"mocha": "^10.0.0", | ||
"node-fetch": "^2.6.7", | ||
"node-fetch": "^3.3.2", | ||
"nyc": "^15.1.0", | ||
"ts-node": "^10.4.0", | ||
"typescript": "^4.9.5" | ||
"typescript": "^5.3.3" | ||
}, | ||
@@ -77,3 +72,3 @@ "nyc": { | ||
"engines": { | ||
"node": ">=14.4" | ||
"node": ">=18" | ||
}, | ||
@@ -80,0 +75,0 @@ "mocha": { |
@@ -1,2 +0,2 @@ | ||
import * as WebSocket from 'ws'; | ||
import WebSocket from 'ws'; | ||
@@ -3,0 +3,0 @@ import { Middleware } from './application.js'; |
@@ -1,2 +0,2 @@ | ||
import * as AcceptsImp from 'accepts'; | ||
import Accepts from 'accepts'; | ||
import * as http from 'node:http'; | ||
@@ -13,8 +13,2 @@ import { Readable } from 'node:stream'; | ||
/** | ||
* We gotta do this ugly thing to make this work in CommonJS and ESM | ||
*/ | ||
// @ts-expect-error https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/64233 | ||
const Accepts = AcceptsImp.default ?? AcceptsImp; | ||
/** | ||
* This interface represents an incoming server request. | ||
@@ -157,3 +151,3 @@ */ | ||
// @ts-expect-error The types for the Accept package are probably not 100% correct for ESM. | ||
const result = new Accepts(mockRequestObj as http.IncomingMessage).type(types) as string|false; | ||
@@ -160,0 +154,0 @@ return result === false ? null : result; |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
117152
56
2941
1