Compare commits

...

6 Commits

Author SHA1 Message Date
62f8106fc6 1.0.28 2021-04-29 21:20:19 +00:00
e87b8c994b fix(core): update 2021-04-29 21:20:18 +00:00
694ba7be25 1.0.27 2021-04-29 20:44:47 +00:00
952399c26e fix(core): update 2021-04-29 20:44:47 +00:00
ab1e83b8bf 1.0.26 2021-04-29 17:02:40 +00:00
67980f9f41 fix(core): update 2021-04-29 17:02:39 +00:00
4 changed files with 3038 additions and 2206 deletions

5226
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartnpm",
"version": "1.0.25",
"version": "1.0.28",
"private": false,
"description": "interface with npm to retrieve package information",
"main": "dist_ts/index.js",
@ -14,9 +14,9 @@
"devDependencies": {
"@gitzone/tsbuild": "^2.1.25",
"@gitzone/tsrun": "^1.2.12",
"@gitzone/tstest": "^1.0.52",
"@gitzone/tstest": "^1.0.54",
"@pushrocks/tapbundle": "^3.2.14",
"@types/node": "^14.14.41",
"@types/node": "^15.0.1",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0"
},

View File

@ -116,7 +116,7 @@ export class NpmPackage {
targetVersion = new plugins.smartversion.SmartVersion(targetDistTag.targetVersion);
}
} else {
const smartversion = plugins.smartversion.SmartVersion.fromFuzzyString(optionsArg.version);
targetVersion = plugins.smartversion.SmartVersion.fromFuzzyString(optionsArg.version);
}
// lets find the best matching release

View File

@ -22,9 +22,11 @@ export class RegistryCache {
}
public async cacheSmartFile (fileIdArg: string, smartfileArg: plugins.smartfile.Smartfile) {
await this.levelCache.storeCacheEntryByKey(fileIdArg, new plugins.levelcache.CacheEntry({
contents: Buffer.from(smartfileArg.foldToJson()),
ttl: 60000
}));
if (smartfileArg) {
await this.levelCache.storeCacheEntryByKey(fileIdArg, new plugins.levelcache.CacheEntry({
contents: Buffer.from(smartfileArg.foldToJson()),
ttl: 60000
}));
}
}
}