Skip to content

Commit

Permalink
update dependencies, use type module
Browse files Browse the repository at this point in the history
  • Loading branch information
magiclen committed Mar 17, 2023
1 parent e728658 commit 0fe33b2
Show file tree
Hide file tree
Showing 5 changed files with 940 additions and 874 deletions.
2 changes: 1 addition & 1 deletion dist/short-crypt.min.js

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions jest.config.json
@@ -1,4 +1,13 @@
{
"preset": "ts-jest",
"testEnvironment": "node"
"extensionsToTreatAsEsm": [
".ts"
],
"transform": {
"^.+\\.[jt]sx?$": [
"ts-jest",
{
"useESM": true
}
]
}
}
45 changes: 23 additions & 22 deletions package.json
@@ -1,16 +1,20 @@
{
"name": "short-crypt",
"version": "2.1.3",
"version": "3.0.0",
"description": "ShortCrypt is a very simple encryption library, which aims to encrypt any data into something random at first glance.",
"main": "lib/short_crypt.js",
"types": "lib/short_crypt.d.ts",
"type": "module",
"exports": "./lib/lib.js",
"types": "./lib/lib.d.ts",
"engines": {
"node": ">=16"
},
"files": [
"lib"
],
"scripts": {
"test": "jest",
"test:coverage": "jest --coverage",
"test:inspect-brk": "node --inspect-brk=0.0.0.0:9230 node_modules/jest/bin/jest.js --testTimeout 0 --runInBand",
"test": "node --experimental-specifier-resolution=node --experimental-vm-modules node_modules/jest/bin/jest.js",
"test:coverage": "node --experimental-specifier-resolution=node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage",
"test:inspect-brk": "node --experimental-specifier-resolution=node --experimental-vm-modules --inspect-brk=0.0.0.0:9230 node_modules/jest/bin/jest.js --testTimeout 0 --runInBand",
"clean": "rimraf lib",
"build": "npm run clean && tsc -p tsconfig.build.json",
"build:watch": "npm run build -- -w",
Expand All @@ -21,9 +25,6 @@
"prepack": "npm run build",
"prepublishOnly": "npm run lint && npm run test"
},
"engines": {
"node": ">=16"
},
"repository": {
"type": "git",
"url": "git+https://github.com/magiclen/ts-short-crypt.git"
Expand All @@ -42,22 +43,22 @@
"rfc4648": "^1.5.2"
},
"devDependencies": {
"@babel/core": "^7.20.12",
"@babel/core": "^7.21.3",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.18.6",
"@babel/register": "^7.18.9",
"@types/jest": "^29.4.0",
"@types/node": "^18.14.0",
"@typescript-eslint/eslint-plugin": "^5.52.0",
"@typescript-eslint/parser": "^5.52.0",
"@babel/preset-typescript": "^7.21.0",
"@babel/register": "^7.21.0",
"@types/jest": "^29.5.0",
"@types/node": "^18.15.3",
"@typescript-eslint/eslint-plugin": "^5.55.0",
"@typescript-eslint/parser": "^5.55.0",
"babel-loader": "^9.1.2",
"eslint": "^8.34.0",
"jest": "^29.4.3",
"rimraf": "^3.0.2",
"terser-webpack-plugin": "^5.3.6",
"eslint": "^8.36.0",
"jest": "^29.5.0",
"rimraf": "^4.4.0",
"terser-webpack-plugin": "^5.3.7",
"ts-jest": "^29.0.5",
"typescript": "^4.9.5",
"webpack": "^5.75.0",
"typescript": "^5.0.2",
"webpack": "^5.76.2",
"webpack-cli": "^5.0.1"
}
}

0 comments on commit 0fe33b2

Please sign in to comment.