New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@typescript/ata

Package Overview
Dependencies
Maintainers
8
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typescript/ata - npm Package Compare versions

Comparing version 0.9.4 to 0.9.5

CHANGELOG.md

41

dist/index.js

@@ -149,4 +149,4 @@ var __defProp = Object.defineProperty;

var setupTypeAcquisition = (config) => {
const moduleMap = new Map();
const fsMap = new Map();
const moduleMap = /* @__PURE__ */ new Map();
const fsMap = /* @__PURE__ */ new Map();
let estimatedToDownload = 0;

@@ -174,3 +174,6 @@ let estimatedDownloaded = 0;

const mightBeOnDT = treesOnly.filter((t) => !hasDTS.includes(t));
const dtTrees = yield Promise.all(mightBeOnDT.map((f) => getFileTreeForModuleWithTag(config, `@types/${getDTName(f.moduleName)}`, "latest")));
const dtTrees = yield Promise.all(
// TODO: Switch from 'latest' to the version from the original tree which is user-controlled
mightBeOnDT.map((f) => getFileTreeForModuleWithTag(config, `@types/${getDTName(f.moduleName)}`, "latest"))
);
const dtTreesOnly = dtTrees.filter((t) => !("error" in t));

@@ -196,17 +199,19 @@ const dtsFilesFromDT = dtTreesOnly.map((t) => treeToDTSFiles(t, `/node_modules/@types/${getDTName(t.moduleName).replace("types__", "")}`));

}
yield Promise.all(allDTSFiles.map((dts) => __async(this, null, function* () {
var _a2, _b2, _c2;
const dtsCode = yield getDTSFileForModuleWithVersion(config, dts.moduleName, dts.moduleVersion, dts.path);
estimatedDownloaded++;
if (dtsCode instanceof Error) {
(_a2 = config.logger) == null ? void 0 : _a2.error(`Had an issue getting ${dts.path} for ${dts.moduleName}`);
} else {
fsMap.set(dts.vfsPath, dtsCode);
(_c2 = (_b2 = config.delegate).receivedFile) == null ? void 0 : _c2.call(_b2, dtsCode, dts.vfsPath);
if (config.delegate.progress && estimatedDownloaded % 5 === 0) {
config.delegate.progress(estimatedDownloaded, estimatedToDownload);
yield Promise.all(
allDTSFiles.map((dts) => __async(this, null, function* () {
var _a2, _b2, _c2;
const dtsCode = yield getDTSFileForModuleWithVersion(config, dts.moduleName, dts.moduleVersion, dts.path);
estimatedDownloaded++;
if (dtsCode instanceof Error) {
(_a2 = config.logger) == null ? void 0 : _a2.error(`Had an issue getting ${dts.path} for ${dts.moduleName}`);
} else {
fsMap.set(dts.vfsPath, dtsCode);
(_c2 = (_b2 = config.delegate).receivedFile) == null ? void 0 : _c2.call(_b2, dtsCode, dts.vfsPath);
if (config.delegate.progress && estimatedDownloaded % 5 === 0) {
config.delegate.progress(estimatedDownloaded, estimatedToDownload);
}
yield resolveDeps(dtsCode, depth + 1);
}
yield resolveDeps(dtsCode, depth + 1);
}
})));
}))
);
});

@@ -231,3 +236,3 @@ }

const meta = ts.preProcessFile(code);
const libMap = ts.libMap || new Map();
const libMap = ts.libMap || /* @__PURE__ */ new Map();
const references = meta.referencedFiles.concat(meta.importedFiles).concat(meta.libReferenceDirectives).filter((f) => !f.fileName.endsWith(".d.ts")).filter((d) => !libMap.has(d.fileName));

@@ -234,0 +239,0 @@ return references.map((r) => {

{
"name": "@typescript/ata",
"version": "0.9.4",
"version": "0.9.5",
"license": "MIT",

@@ -14,7 +14,2 @@ "homepage": "https://github.com/microsoft/TypeScript-Website",

"types": "src/userFacingTypes.d.ts",
"scripts": {
"build": "esbuild src/index.ts --bundle --outfile=dist/index.js --format=esm --platform=node && cpy src/userFacingTypes.d.ts dist/ --rename=index.d.ts && cpy src/ ../sandbox/src/vendor/ata",
"test": "jest",
"bootstrap": "yarn build"
},
"publishConfig": {

@@ -24,4 +19,5 @@ "access": "public"

"devDependencies": {
"@types/jest": "^29.5.12",
"cpy-cli": "^3.1.1",
"esbuild": "^0.12.9",
"esbuild": "^0.17.8",
"esbuild-jest": "^0.5.0",

@@ -32,3 +28,8 @@ "jest": "^29.5.0"

"typescript": "^4.4.4"
},
"scripts": {
"build": "esbuild src/index.ts --bundle --outfile=dist/index.js --format=esm --platform=node --target=es2015 && cpy src/userFacingTypes.d.ts dist/ --rename=index.d.ts && cpy src/ ../sandbox/src/vendor/ata",
"test": "jest",
"bootstrap": "pnpm build"
}
}
}
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