Socket
Socket
Sign inDemoInstall

@platform/cache

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@platform/cache - npm Package Compare versions

Comparing version 0.3.4 to 0.3.7

1

lib/FileSystem/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CachedFile = exports.FileCache = void 0;
var FileCache_1 = require("./FileCache");

@@ -4,0 +5,0 @@ Object.defineProperty(exports, "FileCache", { enumerable: true, get: function () { return FileCache_1.FileCache; } });

12

lib/FileSystem/path.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toCachePath = exports.cleanDir = exports.cleanPath = exports.clean = void 0;
exports.clean = function (path) { return (path || '').trim(); };
exports.cleanPath = function (path) { return exports.clean(path).replace(/^\/*/, ''); };
exports.cleanDir = function (path) { return exports.clean(path).replace(/\/*$/, ''); };
exports.toCachePath = function (dir, path) { return exports.cleanDir(dir) + "/" + exports.cleanPath(path); };
var clean = function (path) { return (path || '').trim(); };
exports.clean = clean;
var cleanPath = function (path) { return exports.clean(path).replace(/^\/*/, ''); };
exports.cleanPath = cleanPath;
var cleanDir = function (path) { return exports.clean(path).replace(/\/*$/, ''); };
exports.cleanDir = cleanDir;
var toCachePath = function (dir, path) { return exports.cleanDir(dir) + "/" + exports.cleanPath(path); };
exports.toCachePath = toCachePath;
{
"name": "@platform/cache",
"version": "0.3.4",
"version": "0.3.7",
"description": "Caching tools.",

@@ -17,8 +17,8 @@ "main": "lib/index",

"dependencies": {
"@platform/fs.types": "0.1.2",
"@platform/libs": "0.2.3"
"@platform/fs.types": "0.1.3",
"@platform/libs": "0.2.4"
},
"devDependencies": {
"@platform/test": "0.2.0",
"@platform/ts": "4.1.0"
"@platform/test": "0.2.1",
"@platform/ts": "4.1.3"
},

@@ -25,0 +25,0 @@ "files": [

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