first
Showing
.dockerignore
0 → 100644
.eslintignore
0 → 100644
.eslintrc.js
0 → 100644
.gitignore
0 → 100644
.gitlab-ci.yml
0 → 100644
.npmignore
0 → 100644
.prettierrc
0 → 100644
Dockerfile
0 → 100644
LICENSE
0 → 100644
index.ts
0 → 100644
package-lock.json
0 → 100644
This diff is collapsed.
package.json
0 → 100644
| { | ||
| "name": "ipv6-proxy-switcher", | ||
| "description": "ipv6-proxy-switcher-desc", | ||
| "version": "1.0.0", | ||
| "main": "dist/index.js", | ||
| "types": "dist/index.d.ts", | ||
| "scripts": { | ||
| "lint": "eslint --fix .", | ||
| "patch": "sed -i -e \"s/server.emit('proxy-auth', user/server.emit('proxy-auth', socket, user/g\" -e \"s/server.emit('proxy-auth', ''/server.emit('proxy-auth', socket, ''/g\" -e \"s/await createProxyConnection({ srcHost, srcPort/await createProxyConnection({ socket, srcHost, srcPort/g\" -e \"s/await createProxyConnection({ dstHost, dstPort/await createProxyConnection({ socket, dstHost, dstPort/g\" ./node_modules/@mutagen-d/node-proxy-server/src/index.js", | ||
| "build": "rimraf dist && npm run patch && tsc", | ||
| "test": "jest --passWithNoTests", | ||
| "start": "node dist/index.js" | ||
| }, | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://code.mycard.moe/mycard/ipv6-proxy-switcher.git" | ||
| }, | ||
| "author": "Nanahira <nanahira@momobako.com>", | ||
| "license": "MIT", | ||
| "keywords": [], | ||
| "bugs": { | ||
| "url": "https://code.mycard.moe/mycard/ipv6-proxy-switcher/issues" | ||
| }, | ||
| "homepage": "https://code.mycard.moe/mycard/ipv6-proxy-switcher", | ||
| "jest": { | ||
| "moduleFileExtensions": [ | ||
| "js", | ||
| "json", | ||
| "ts" | ||
| ], | ||
| "rootDir": "tests", | ||
| "testRegex": ".*\\.spec\\.ts$", | ||
| "transform": { | ||
| "^.+\\.(t|j)s$": "ts-jest" | ||
| }, | ||
| "collectCoverageFrom": [ | ||
| "**/*.(t|j)s" | ||
| ], | ||
| "coverageDirectory": "../coverage", | ||
| "testEnvironment": "node" | ||
| }, | ||
| "devDependencies": { | ||
| "@types/jest": "^29.5.0", | ||
| "@types/node": "^18.15.11", | ||
| "@typescript-eslint/eslint-plugin": "^5.58.0", | ||
| "@typescript-eslint/parser": "^5.58.0", | ||
| "eslint": "8.22.0", | ||
| "eslint-config-prettier": "^8.8.0", | ||
| "eslint-plugin-prettier": "^4.2.1", | ||
| "jest": "^29.5.0", | ||
| "prettier": "^2.8.7", | ||
| "rimraf": "^5.0.0", | ||
| "ts-jest": "^29.1.0", | ||
| "typescript": "^5.0.4" | ||
| }, | ||
| "dependencies": { | ||
| "@mutagen-d/node-proxy-server": "^1.0.2", | ||
| "@stdlib/random-base-mt19937": "^0.0.6", | ||
| "ipaddr.js": "^2.0.1" | ||
| } | ||
| } |
src/hash-address.ts
0 → 100644
tests/sample.spec.ts
0 → 100644
tsconfig.json
0 → 100644
Please register or sign in to comment