Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
215ad0a
modified: README.md
KhoiUna Apr 24, 2023
3f4ae7b
modified: package.json
KhoiUna Apr 24, 2023
8c247dd
modified: pnpm-lock.yaml
KhoiUna Apr 24, 2023
dbbf363
modified: src/audit/main.ts
KhoiUna Apr 24, 2023
295e1c7
modified: src/auth/code.ts
KhoiUna Apr 24, 2023
ff63416
modified: src/auth/session.ts
KhoiUna Apr 24, 2023
9cbb1ec
modified: src/auth/token.ts
KhoiUna Apr 24, 2023
3c97656
modified: src/config.ts
KhoiUna Apr 24, 2023
05ab8f0
modified: src/index.ts
KhoiUna Apr 24, 2023
7ca9033
modified: tsconfig.json
KhoiUna Apr 24, 2023
32999af
new folder: bin/
KhoiUna Apr 24, 2023
39fde77
new folder: src/commands/
KhoiUna Apr 24, 2023
53980ba
new folder: test/
KhoiUna Apr 24, 2023
62aaa35
modified: .gitignore
KhoiUna Apr 24, 2023
07ba194
modified: .gitignore
KhoiUna Apr 24, 2023
7044894
modified: README.md
KhoiUna Apr 24, 2023
c51a97d
deleted: test/commands/hello/
KhoiUna Apr 24, 2023
7353699
prettified: test/helpers/init.js
KhoiUna Apr 24, 2023
fd79a3e
uninstall chalk
KhoiUna Apr 24, 2023
d054a0d
new file: .eslintrc
KhoiUna Apr 24, 2023
cfeed6f
modified: tsconfig.json
KhoiUna Apr 24, 2023
554d967
modified: test/tsconfig.json
KhoiUna Apr 24, 2023
d471234
modified: tsconfig.json
KhoiUna Apr 24, 2023
70881f0
modified: package.json
KhoiUna Apr 24, 2023
1301cd2
modified: src/commands/audit.ts
KhoiUna Apr 24, 2023
eeac068
modified: tsconfig.json
KhoiUna Apr 24, 2023
d728fe2
modified: src/commands/audit.ts
KhoiUna Apr 24, 2023
c72beab
modified: package.json
KhoiUna Apr 24, 2023
a93ecb2
modified: add pypi requirements.txt parsing & auditing
KhoiUna Apr 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["oclif-typescript"]
}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ dist/
*.env*
_*
lib/
.packj.creds
.packj.creds
17 changes: 17 additions & 0 deletions bin/dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env node

const oclif = require('@oclif/core')

const path = require('path')
const project = path.join(__dirname, '..', 'tsconfig.json')

// In dev mode -> use ts-node and dev plugins
process.env.NODE_ENV = 'development'

require('ts-node').register({project})

// In dev mode, always show stack traces
oclif.settings.debug = true;

// Start the CLI
oclif.run().then(oclif.flush).catch(oclif.Errors.handle)
3 changes: 3 additions & 0 deletions bin/dev.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off

node "%~dp0\dev" %*
5 changes: 5 additions & 0 deletions bin/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env node

const oclif = require('@oclif/core')

oclif.run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle'))
3 changes: 3 additions & 0 deletions bin/run.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off

node "%~dp0\run" %*
94 changes: 64 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,76 @@
"name": "packj",
"version": "0.0.0",
"description": "Packj flags malicious, vulnerable, and \"risky\" NPM packages in your software supply chain",
"main": "index.js",
"type": "module",
"scripts": {
"build": "tsc",
"test": "jest .",
"lint": "eslint \"**/*.{js,ts}\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/ossillate-inc/packj.git"
"author": "KhoiUna @KhoiUna",
"bin": {
"packj": "./bin/run"
},
"keywords": [
"softwaresupplychain",
"cybersecurity",
"malwaredetection",
"typo-squatting",
"softwarecompositionanalysis"
],
"author": "Ossillate Inc. <oss@ossillate.com> (https://packj.dev)",
"homepage": "https://github.com/ossillate-inc/packj-npm",
"license": "MIT",
"bugs": {
"url": "https://github.com/ossillate-inc/packj/issues"
},
"homepage": "https://github.com/ossillate-inc/packj#readme",
"main": "dist/index.js",
"repository": "KhoiUna/packj-oclif",
"files": [
"/bin",
"/dist",
"/npm-shrinkwrap.json",
"/oclif.manifest.json"
],
"dependencies": {
"axios": "^1.3.5",
"chalk": "^5.2.0",
"prompt-sync": "^4.2.0",
"@oclif/core": "^2",
"@oclif/plugin-help": "^5",
"@oclif/plugin-plugins": "^2.4.6",
"axios": "^1.3.6",
"qs": "^6.11.1"
},
"devDependencies": {
"@tsconfig/recommended": "^1.0.2",
"@types/node": "^18.15.11",
"@types/prompt-sync": "^4.2.0",
"@oclif/test": "^2.3.16",
"@types/chai": "^4",
"@types/mocha": "^9.0.0",
"@types/node": "^16.18.24",
"@types/qs": "^6.9.7",
"chai": "^4",
"eslint": "^7.32.0",
"eslint-config-oclif": "^4",
"eslint-config-oclif-typescript": "^1.0.3",
"mocha": "^9",
"oclif": "^3",
"shx": "^0.3.3",
"ts-node": "^10.9.1",
"typescript": "^5.0.4"
}
"tslib": "^2.5.0",
"typescript": "^4.9.5"
},
"oclif": {
"bin": "packj",
"dirname": "packj",
"commands": "./dist/commands",
"plugins": [
"@oclif/plugin-help",
"@oclif/plugin-plugins"
],
"topicSeparator": " ",
"topics": {
"hello": {
"description": "Say hello to the world and others"
}
}
},
"scripts": {
"build": "shx rm -rf dist && tsc -b",
"lint": "eslint . --ext .ts --config .eslintrc",
"postpack": "shx rm -f oclif.manifest.json",
"posttest": "npm run lint",
"prepack": "npm run build && oclif manifest && oclif readme",
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
"version": "oclif readme && git add README.md"
},
"engines": {
"node": ">=12.0.0"
},
"bugs": "https://github.com/ossillate-inc/packj-npm/issues",
"keywords": [
"oclif",
"npm",
"packj"
],
"types": "dist/index.d.ts"
}
Loading