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

@rushstack/rush-amazon-s3-build-cache-plugin

Package Overview
Dependencies
Maintainers
0
Versions
279
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rushstack/rush-amazon-s3-build-cache-plugin - npm Package Compare versions

Comparing version 5.143.0-pr5009.0 to 5.143.0-pr5009.1

65

dist/rush-amazon-s3-build-cache-plugin.d.ts
/// <reference types="node" />
import * as fetch from 'node-fetch';
import type { IRushPlugin } from '@rushstack/rush-sdk';

@@ -8,2 +7,3 @@ import { ITerminal } from '@rushstack/terminal';

import type { RushSession } from '@rushstack/rush-sdk';
import { WebClient } from '@rushstack/rush-sdk/lib/utilities/WebClient';

@@ -80,34 +80,4 @@ /**

/**
* For use with {@link WebClient}.
*
* @public
*/
export declare interface IGetFetchOptions extends IWebFetchOptionsBase {
verb: 'GET' | never;
}
/**
* For use with {@link WebClient}.
*
* @public
*/
export declare interface IPutFetchOptions extends IWebFetchOptionsBase {
verb: 'PUT';
body?: Buffer;
}
/**
* For use with {@link WebClient}.
*
* @public
*/
declare interface IWebFetchOptionsBase {
timeoutMs?: number;
verb?: 'GET' | 'PUT';
headers?: fetch.Headers;
}
/**
* @public
*/
declare class RushAmazonS3BuildCachePlugin implements IRushPlugin {

@@ -119,35 +89,2 @@ pluginName: string;

/**
* A helper for issuing HTTP requests.
*
* @public
*/
export declare class WebClient {
readonly standardHeaders: fetch.Headers;
accept: string | undefined;
userAgent: string | undefined;
proxy: WebClientProxy;
constructor();
static mergeHeaders(target: fetch.Headers, source: fetch.Headers): void;
addBasicAuthHeader(userName: string, password: string): void;
fetchAsync(url: string, options?: IGetFetchOptions | IPutFetchOptions): Promise<WebClientResponse>;
}
/**
* For use with {@link WebClient}.
* @public
*/
declare enum WebClientProxy {
None = 0,
Detect = 1,
Fiddler = 2
}
/**
* For use with {@link WebClient}.
*
* @public
*/
export declare type WebClientResponse = fetch.Response;
export { }

2

lib/AmazonS3BuildCacheProvider.js

@@ -7,4 +7,4 @@ "use strict";

const rush_sdk_1 = require("@rushstack/rush-sdk");
const WebClient_1 = require("@rushstack/rush-sdk/lib/utilities/WebClient");
const AmazonS3Client_1 = require("./AmazonS3Client");
const WebClient_1 = require("./WebClient");
const AmazonS3Credentials_1 = require("./AmazonS3Credentials");

@@ -11,0 +11,0 @@ const DEFAULT_S3_REGION = 'us-east-1';

/// <reference types="node" />
import { type ITerminal } from '@rushstack/terminal';
import { type WebClient } from '@rushstack/rush-sdk/lib/utilities/WebClient';
import type { IAmazonS3BuildCacheProviderOptionsAdvanced } from './AmazonS3BuildCacheProvider';
import type { WebClient } from './WebClient';
import { type IAmazonS3Credentials } from './AmazonS3Credentials';

@@ -6,0 +6,0 @@ /**

@@ -32,3 +32,3 @@ "use strict";

const crypto = __importStar(require("crypto"));
const fetch = __importStar(require("node-fetch"));
const WebClient_1 = require("@rushstack/rush-sdk/lib/utilities/WebClient");
const AmazonS3Credentials_1 = require("./AmazonS3Credentials");

@@ -167,3 +167,3 @@ const CONTENT_HASH_HEADER_NAME = 'x-amz-content-sha256';

const bodyHash = this._getSha256(body);
const headers = new fetch.Headers();
const headers = new WebClient_1.WebClientHeaders();
headers.set(DATE_HEADER_NAME, isoDateString.dateTime);

@@ -170,0 +170,0 @@ headers.set(CONTENT_HASH_HEADER_NAME, bodyHash);

import { RushAmazonS3BuildCachePlugin } from './RushAmazonS3BuildCachePlugin';
export { type IAmazonS3Credentials } from './AmazonS3Credentials';
export { AmazonS3Client } from './AmazonS3Client';
export { WebClient, type IGetFetchOptions, type IPutFetchOptions, type WebClientResponse } from './WebClient';
export default RushAmazonS3BuildCachePlugin;
export type { IAmazonS3BuildCacheProviderOptionsBase, IAmazonS3BuildCacheProviderOptionsAdvanced, IAmazonS3BuildCacheProviderOptionsSimple } from './AmazonS3BuildCacheProvider';
//# sourceMappingURL=index.d.ts.map

@@ -5,9 +5,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.WebClient = exports.AmazonS3Client = void 0;
exports.AmazonS3Client = void 0;
const RushAmazonS3BuildCachePlugin_1 = require("./RushAmazonS3BuildCachePlugin");
var AmazonS3Client_1 = require("./AmazonS3Client");
Object.defineProperty(exports, "AmazonS3Client", { enumerable: true, get: function () { return AmazonS3Client_1.AmazonS3Client; } });
var WebClient_1 = require("./WebClient");
Object.defineProperty(exports, "WebClient", { enumerable: true, get: function () { return WebClient_1.WebClient; } });
exports.default = RushAmazonS3BuildCachePlugin_1.RushAmazonS3BuildCachePlugin;
//# sourceMappingURL=index.js.map
{
"name": "@rushstack/rush-amazon-s3-build-cache-plugin",
"version": "5.143.0-pr5009.0",
"version": "5.143.0-pr5009.1",
"description": "Rush plugin for Amazon S3 cloud build cache",

@@ -16,12 +16,10 @@ "repository": {

"https-proxy-agent": "~5.0.0",
"node-fetch": "2.6.7",
"@rushstack/node-core-library": "5.10.0",
"@rushstack/rush-sdk": "5.143.0-pr5009.0",
"@rushstack/terminal": "0.14.3"
"@rushstack/terminal": "0.14.3",
"@rushstack/rush-sdk": "5.143.0-pr5009.1"
},
"devDependencies": {
"@types/node-fetch": "2.6.2",
"@microsoft/rush-lib": "5.143.0-pr5009.0",
"local-node-rig": "1.0.0",
"@rushstack/heft": "0.68.9"
"@microsoft/rush-lib": "5.143.0-pr5009.1",
"@rushstack/heft": "0.68.9",
"local-node-rig": "1.0.0"
},

@@ -28,0 +26,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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