Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@definitelytyped/dts-critic

Package Overview
Dependencies
Maintainers
7
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@definitelytyped/dts-critic - npm Package Compare versions

Comparing version 0.0.188 to 0.0.189

8

CHANGELOG.md
# @definitelytyped/dts-critic
## 0.0.189
### Patch Changes
- 5b0559f6: Update and clean up dependencies
- Updated dependencies [5b0559f6]
- @definitelytyped/header-parser@0.0.188
## 0.0.188

@@ -4,0 +12,0 @@

18

develop.ts

@@ -118,3 +118,3 @@ import fs = require("fs");

packageJson,
headerParser.getTypesVersions(path.join(dtTypesPath, item))
headerParser.getTypesVersions(path.join(dtTypesPath, item)),
);

@@ -254,3 +254,2 @@ if (!isNpmPackage(item, Array.isArray(header) ? undefined : header, isNpmJson)) {

function main() {
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
yargs

@@ -289,3 +288,3 @@ .usage("$0 <command>")

},
checkAll
checkAll,
)

@@ -329,3 +328,3 @@ .command(

},
checkPopular
checkPopular,
)

@@ -369,3 +368,3 @@ .command(

},
checkUnpopular
checkUnpopular,
)

@@ -409,3 +408,3 @@ .command(

},
checkPackage
checkPackage,
)

@@ -434,3 +433,3 @@ .command(

},
checkFile
checkFile,
)

@@ -447,7 +446,8 @@ .command(

},
getNonNpm
getNonNpm,
)
.demandCommand(1)
.help().argv;
.help()
.parseSync();
}
main();

@@ -187,3 +187,2 @@ "use strict";

function main() {
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
yargs

@@ -348,5 +347,6 @@ .usage("$0 <command>")

.demandCommand(1)
.help().argv;
.help()
.parseSync();
}
main();
//# sourceMappingURL=develop.js.map

@@ -36,3 +36,2 @@ "use strict";

const semver = require("semver");
const rimraf = require("rimraf");
const command_exists_1 = require("command-exists");

@@ -130,3 +129,3 @@ const typescript_1 = __importDefault(require("typescript"));

// Delete the source afterward to avoid running out of space
rimraf.sync(packagePath);
fs.rmSync(packagePath, { recursive: true, force: true });
}

@@ -169,3 +168,4 @@ return errors;

})
.help().argv;
.help()
.parseSync();
let opts;

@@ -172,0 +172,0 @@ switch (argv.mode) {

@@ -86,3 +86,3 @@ /// <reference types="jest" />

expect(checkSource("noErrors", testsource("noErrors.d.ts"), testsource("noErrors.js"), allErrors, false)).toEqual(
[]
[],
);

@@ -97,4 +97,4 @@ },

allErrors,
false
)
false,
),
).toEqual(

@@ -107,3 +107,3 @@ expect.arrayContaining([

},
])
]),
);

@@ -118,4 +118,4 @@ },

allErrors,
false
)
false,
),
).toHaveLength(0);

@@ -130,4 +130,4 @@ },

allErrors,
false
)
false,
),
).toEqual(

@@ -144,3 +144,3 @@ expect.arrayContaining([

},
])
]),
);

@@ -155,4 +155,4 @@ },

allErrors,
false
)
false,
),
).toEqual(

@@ -172,3 +172,3 @@ expect.arrayContaining([

},
])
]),
);

@@ -183,4 +183,4 @@ },

allErrors,
false
)
false,
),
).toEqual(

@@ -193,3 +193,3 @@ expect.arrayContaining([

},
])
]),
);

@@ -204,4 +204,4 @@ },

allErrors,
false
)
false,
),
).toEqual(

@@ -217,3 +217,3 @@ expect.arrayContaining([

},
])
]),
);

@@ -228,4 +228,4 @@ },

allErrors,
false
)
false,
),
).toEqual(

@@ -238,3 +238,3 @@ expect.arrayContaining([

},
])
]),
);

@@ -249,4 +249,4 @@ },

allErrors,
false
)
false,
),
).toEqual(

@@ -261,3 +261,3 @@ expect.arrayContaining([

},
])
]),
);

@@ -264,0 +264,0 @@ },

@@ -7,3 +7,2 @@ import yargs = require("yargs");

import semver = require("semver");
import rimraf = require("rimraf");
import { sync as commandExistsSync } from "command-exists";

@@ -68,7 +67,7 @@ import ts from "typescript";

options: CheckOptions = defaultOpts,
debug = false
debug = false,
): CriticError[] {
if (!commandExistsSync("tar")) {
throw new Error(
"You need to have tar installed to run dts-critic, you can get it from https://www.gnu.org/software/tar"
"You need to have tar installed to run dts-critic, you can get it from https://www.gnu.org/software/tar",
);

@@ -78,3 +77,3 @@ }

throw new Error(
"You need to have npm installed to run dts-critic, you can get it from https://www.npmjs.com/get-npm"
"You need to have npm installed to run dts-critic, you can get it from https://www.npmjs.com/get-npm",
);

@@ -125,3 +124,3 @@ }

// Delete the source afterward to avoid running out of space
rimraf.sync(packagePath);
fs.rmSync(packagePath, { recursive: true, force: true });
}

@@ -138,3 +137,3 @@ return errors;

packageJson: Record<string, unknown>,
dirPath: string
dirPath: string,
): headerParser.Header | undefined {

@@ -151,3 +150,3 @@ const result = headerParser.validatePackageJson(packageName, packageJson, headerParser.getTypesVersions(dirPath));

.usage(
"$0 --dts path-to-d.ts [--js path-to-source] [--mode mode] [--debug]\n\nIf source-folder is not provided, I will look for a matching package on npm."
"$0 --dts path-to-d.ts [--js path-to-source] [--mode mode] [--debug]\n\nIf source-folder is not provided, I will look for a matching package on npm.",
)

@@ -174,3 +173,4 @@ .option("dts", {

})
.help().argv;
.help()
.parseSync();

@@ -351,3 +351,3 @@ let opts;

enabledErrors: Map<ExportErrorKind, boolean>,
debug: boolean
debug: boolean,
): ExportError[] {

@@ -458,3 +458,3 @@ const diagnostics = checkExports(name, dtsPath, srcPath);

dtsDiagnostics.exportType,
dtsDiagnostics.exportKind
dtsDiagnostics.exportKind,
);

@@ -517,3 +517,3 @@

checker: ts.TypeChecker,
exportKind: InferenceResult<JsExportKind>
exportKind: InferenceResult<JsExportKind>,
): InferenceResult<ts.Type> {

@@ -634,3 +634,3 @@ if (isSuccess(exportKind)) {

checker: ts.TypeChecker,
name: string
name: string,
): InferenceResult<ts.Symbol> {

@@ -669,3 +669,3 @@ if (matches(sourceFile, (node) => ts.isModuleDeclaration(node))) {

symbolResult: InferenceResult<ts.Symbol>,
exportKindResult: InferenceResult<DtsExportKind>
exportKindResult: InferenceResult<DtsExportKind>,
): InferenceResult<ts.Type> {

@@ -741,3 +741,3 @@ if (isSuccess(symbolResult) && isSuccess(exportKindResult)) {

dtsType: InferenceResult<ts.Type>,
dtsExportKind: InferenceResult<DtsExportKind>
dtsExportKind: InferenceResult<DtsExportKind>,
): InferenceResult<MissingExport[]> {

@@ -744,0 +744,0 @@ if (isError(sourceType)) {

{
"name": "@definitelytyped/dts-critic",
"version": "0.0.188",
"version": "0.0.189",
"author": "Nathan Shively-Sanders",

@@ -10,8 +10,8 @@ "description": "Checks a new .d.ts against the Javascript source and tells you what problems it has",

"dependencies": {
"command-exists": "^1.2.8",
"rimraf": "^3.0.2",
"semver": "^7.5.2",
"command-exists": "^1.2.9",
"semver": "^7.5.4",
"tmp": "^0.2.1",
"yargs": "^15.3.1",
"@definitelytyped/header-parser": "0.0.187"
"typescript": "^5.2.2",
"yargs": "^17.7.2",
"@definitelytyped/header-parser": "0.0.188"
},

@@ -22,8 +22,7 @@ "peerDependencies": {

"devDependencies": {
"@types/command-exists": "^1.2.0",
"@types/rimraf": "^3.0.0",
"@types/semver": "^6.0.1",
"@types/strip-json-comments": "0.0.30",
"@types/tmp": "^0.2.0",
"strip-json-comments": "^2.0.1"
"@types/command-exists": "^1.2.3",
"@types/semver": "^7.5.5",
"@types/strip-json-comments": "^3.0.0",
"@types/tmp": "^0.2.6",
"strip-json-comments": "^3.1.1"
},

@@ -50,3 +49,3 @@ "main": "dist/index.js",

"engines": {
"node": ">=10.17.0"
"node": ">=16.17.0"
},

@@ -53,0 +52,0 @@ "scripts": {

@@ -9,3 +9,3 @@ {

"declaration": true,
"types": ["jest"]
"types": ["jest", "node"]
},

@@ -12,0 +12,0 @@ "exclude": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc