Socket
Socket
Sign inDemoInstall

@jsdocs-io/extractor

Package Overview
Dependencies
85
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-7 to 1.0.0-8

40

dist/index.js

@@ -14,9 +14,7 @@ // src/bun-package-manager.ts

var bunPackageManager = (bunPath = "bun") => PackageManager.of({
installPackage: ({ pkg, cwd }) => Effect2.gen(function* (_) {
const { stdout } = yield* _(
Effect2.tryPromise({
try: () => execa(bunPath, ["add", pkg, "--verbose"], { cwd }),
catch: (e) => new InstallPackageError({ cause: e })
})
);
installPackage: ({ pkg, cwd }) => Effect2.gen(function* () {
const { stdout } = yield* Effect2.tryPromise({
try: () => execa(bunPath, ["add", pkg, "--verbose"], { cwd }),
catch: (e) => new InstallPackageError({ cause: e })
});
const lines = stdout.split("\n");

@@ -1059,3 +1057,3 @@ const beginHash = lines.findIndex((line) => line.startsWith("-- BEGIN SHA512/256"));

};
var packageName = (pkg) => Effect6.gen(function* (_) {
var packageName = (pkg) => Effect6.gen(function* () {
const versionMarker = pkg.lastIndexOf("@");

@@ -1065,3 +1063,3 @@ const pkgName = pkg.slice(0, versionMarker > 0 ? versionMarker : void 0);

if (!validForNewPackages) {
return yield* _(new PackageNameError({ warnings, errors }));
return yield* new PackageNameError({ warnings, errors });
}

@@ -1082,4 +1080,4 @@ return pkgName;

};
var packageTypes = (pkgJson, subpath) => Effect7.gen(function* (_) {
const resolvedPaths = yield* _(resolveExports(pkgJson, subpath));
var packageTypes = (pkgJson, subpath) => Effect7.gen(function* () {
const resolvedPaths = yield* resolveExports(pkgJson, subpath);
const firstPath = resolvedPaths[0];

@@ -1096,3 +1094,3 @@ if (firstPath && isTypesFile(firstPath)) {

}
return yield* _(new PackageTypesError());
return yield* new PackageTypesError();
});

@@ -1141,15 +1139,15 @@ var resolveExports = (pkgJson, subpath) => {

maxDepth = 5
}) => Effect9.gen(function* (_) {
}) => Effect9.gen(function* () {
const startTime = performance.now();
const pkgName = yield* _(packageName(pkg));
const { path: cwd } = yield* _(workDir);
const pm = yield* _(PackageManager);
const packages = yield* _(pm.installPackage({ pkg, cwd }));
const pkgName = yield* packageName(pkg);
const { path: cwd } = yield* workDir;
const pm = yield* PackageManager;
const packages = yield* pm.installPackage({ pkg, cwd });
const pkgDir = join(cwd, "node_modules", pkgName);
const pkgJson = yield* _(packageJson(pkgDir));
const types = yield* _(packageTypes(pkgJson, subpath));
const pkgJson = yield* packageJson(pkgDir);
const types = yield* packageTypes(pkgJson, subpath);
const indexFilePath = join(pkgDir, types);
const { project, indexFile } = yield* _(createProject({ indexFilePath, cwd }));
const { project, indexFile } = yield* createProject({ indexFilePath, cwd });
const overview = packageOverview(indexFile);
const declarations = yield* _(packageDeclarations({ pkgName, project, indexFile, maxDepth }));
const declarations = yield* packageDeclarations({ pkgName, project, indexFile, maxDepth });
const pkgApi = {

@@ -1156,0 +1154,0 @@ name: pkgJson.name,

{
"name": "@jsdocs-io/extractor",
"version": "1.0.0-7",
"version": "1.0.0-8",
"description": "The API extractor for npm packages powering jsdocs.io",

@@ -50,3 +50,3 @@ "license": "AGPL-3.0-or-later",

"@microsoft/tsdoc": "^0.14.2",
"effect": "^2.4.15",
"effect": "^3.0.5",
"execa": "^8.0.1",

@@ -64,13 +64,13 @@ "memoize": "^10.0.0",

"devDependencies": {
"@arethetypeswrong/cli": "^0.15.2",
"@arethetypeswrong/cli": "^0.15.3",
"@total-typescript/shoehorn": "^0.1.2",
"@types/node": "^20.12.2",
"@types/node": "^20.12.7",
"@types/validate-npm-package-name": "^4.0.2",
"@vitest/coverage-v8": "^1.4.0",
"np": "^10.0.2",
"@vitest/coverage-v8": "^1.5.2",
"np": "^10.0.5",
"ts-dedent": "^2.2.0",
"tsup": "^8.0.2",
"tsx": "^4.7.1",
"typescript": "^5.4.3",
"vitest": "^1.4.0"
"tsx": "^4.7.3",
"typescript": "^5.4.5",
"vitest": "^1.5.2"
},

@@ -77,0 +77,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc