@transloadit/post
Advanced tools
Comparing version 0.4.2 to 0.4.3
{ | ||
"name": "@transloadit/post", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"repository": { | ||
@@ -11,14 +11,12 @@ "type": "git", | ||
"types": "dist/post.d.ts", | ||
"bin": "./post.js", | ||
"directories": { | ||
"lib": "dist", | ||
"test": "dist" | ||
}, | ||
"bin": "./dist/post.js", | ||
"scripts": { | ||
"test": "echo \"Error: run tests from root\" && exit 1", | ||
"tsc": "tsc --build --clean && tsc --build" | ||
"build": "tsc --build --clean && tsc --build", | ||
"typecheck": "tsc --noEmit", | ||
"test": "echo 'No tests yet' && exit 0", | ||
"test:watch": "echo 'No tests yet' && exit 0" | ||
}, | ||
"dependencies": { | ||
"@transloadit/file-exists": "^0.3.3", | ||
"@transloadit/slugify": "^0.3.3", | ||
"@transloadit/file-exists": "^0.3.4", | ||
"@transloadit/slugify": "^0.3.4", | ||
"inquirer": "^8.2.6", | ||
@@ -34,4 +32,3 @@ "open-in-editor": "^2.2.0", | ||
"access": "public" | ||
}, | ||
"gitHead": "412a97c914bd1a8c6d21df01c9f7e18ab19b218a" | ||
} | ||
} |
@@ -1,3 +0,1 @@ | ||
/* eslint-disable max-classes-per-file */ | ||
declare module 'open-in-editor' { | ||
@@ -4,0 +2,0 @@ class OpenInEditor { |
#!/usr/bin/env node | ||
/* eslint-disable no-console */ | ||
import fs = require('fs/promises') | ||
import fs = require('node:fs/promises') | ||
import inquirer = require('inquirer') | ||
@@ -21,6 +20,5 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
const mysqlNow = new Date().toISOString().replace('T', ' ').split('.')[0]!.split(' ')[0]! | ||
const mysqlDate = new Date().toISOString().replace('T', ' ').split('.') | ||
const mysqlNow = mysqlDate[0] ? (mysqlDate[0].split(' ')[0] ?? '') : '' | ||
// eslint-disable-next-line no-unused-vars | ||
const [dateY, datem] = mysqlNow.split('-') | ||
@@ -61,3 +59,2 @@ const answers = await inquirer.prompt([ | ||
if (process.env.VISUAL) { | ||
// eslint-disable-next-line prefer-destructuring | ||
process.env.VISUAL = process.env.VISUAL.split(/\s+/)[0] | ||
@@ -64,0 +61,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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 tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
5
45223
192
3
1