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

@lage-run/cache

Package Overview
Dependencies
Maintainers
2
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lage-run/cache - npm Package Compare versions

Comparing version 1.1.7 to 1.2.0

lib/CredentialCache.d.ts

17

CHANGELOG.json

@@ -5,3 +5,18 @@ {

{
"date": "Thu, 23 May 2024 18:14:47 GMT",
"date": "Mon, 10 Jun 2024 23:50:24 GMT",
"version": "1.2.0",
"tag": "@lage-run/cache_v1.2.0",
"comments": {
"minor": [
{
"author": "brunoru@microsoft.com",
"package": "@lage-run/cache",
"commit": "0894d97ebfedc339b77161c40fa8643d93e4486d",
"comment": "Add support for DefaultAzureCredentials when storage endpoint is passed in."
}
]
}
},
{
"date": "Thu, 23 May 2024 18:15:05 GMT",
"version": "1.1.7",

@@ -8,0 +23,0 @@ "tag": "@lage-run/cache_v1.1.7",

# Change Log - @lage-run/cache
This log was last generated on Thu, 23 May 2024 18:14:47 GMT and should not be manually modified.
This log was last generated on Mon, 10 Jun 2024 23:50:24 GMT and should not be manually modified.
<!-- Start content -->
## 1.2.0
Mon, 10 Jun 2024 23:50:24 GMT
### Minor changes
- Add support for DefaultAzureCredentials when storage endpoint is passed in. (brunoru@microsoft.com)
## 1.1.7
Thu, 23 May 2024 18:14:47 GMT
Thu, 23 May 2024 18:15:05 GMT

@@ -11,0 +19,0 @@ ### Patches

3

lib/backfillWrapper.d.ts
/**
* Backfill wrappers: some functions that uses the `backfill` library that doesn't require them to be inside a class
*/
import { CacheStorageConfig } from "backfill-config";
import type { Logger as BackfillLogger } from "backfill-logger";

@@ -8,3 +9,3 @@ import type { CacheOptions } from "./types/CacheOptions.js";

export declare function createBackfillCacheConfig(cwd: string, cacheOptions: Partial<CacheOptions> | undefined, backfillLogger: BackfillLogger): {
cacheStorageConfig: import("backfill-config").CacheStorageConfig;
cacheStorageConfig: CacheStorageConfig;
clearOutput: boolean;

@@ -11,0 +12,0 @@ internalCacheFolder: string;

@@ -24,2 +24,3 @@ /**

const _backfilllogger = require("backfill-logger");
const _CredentialCache = require("./CredentialCache.js");
function _getRequireWildcardCache(nodeInterop) {

@@ -83,3 +84,3 @@ if (typeof WeakMap !== "function") return null;

const envConfig = (0, _backfillconfig.getEnvConfig)(backfillLogger);
return {
const mergedConfig = {
...(0, _backfillconfig.createDefaultConfig)(cwd),

@@ -89,2 +90,11 @@ ...cacheOptions,

};
if (mergedConfig.cacheStorageConfig.provider === "azure-blob") {
if (mergedConfig.cacheStorageConfig.options.connectionString && !isTokenConnectionString(mergedConfig.cacheStorageConfig.options.connectionString)) {
mergedConfig.cacheStorageConfig.options.credential = _CredentialCache.CredentialCache.getInstance();
}
}
return mergedConfig;
}
function isTokenConnectionString(connectionString) {
return connectionString.includes("SharedAccessSignature");
}
{
"name": "@lage-run/cache",
"version": "1.1.7",
"version": "1.2.0",
"description": "Cache for Lage",

@@ -20,2 +20,3 @@ "repository": {

"dependencies": {
"@azure/identity": "^4.0.1",
"@lage-run/target-graph": "^0.8.9",

@@ -22,0 +23,0 @@ "@lage-run/logger": "^1.3.0",

@@ -35,3 +35,3 @@ # @lage-run/cache

options: {
connectionString: "asdfasdfasdfafds";
connectionString: "asdfasdfasdfafds"; // Providing an un-authenitcated Blob Service Endpoint will force use of Azure DefualtAzureCredentials
container: "container";

@@ -38,0 +38,0 @@ maxSize?: 150;

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