mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-21 14:08:24 +02:00
feat: add @actions/cache
This commit is contained in:
parent
b15fb7d098
commit
16e8c96a41
1932 changed files with 261172 additions and 10 deletions
31
node_modules/@azure/ms-rest-js/es/lib/policies/signingPolicy.js
generated
vendored
Normal file
31
node_modules/@azure/ms-rest-js/es/lib/policies/signingPolicy.js
generated
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
import { __extends } from "tslib";
|
||||
import { BaseRequestPolicy, } from "./requestPolicy";
|
||||
export function signingPolicy(authenticationProvider) {
|
||||
return {
|
||||
create: function (nextPolicy, options) {
|
||||
return new SigningPolicy(nextPolicy, options, authenticationProvider);
|
||||
},
|
||||
};
|
||||
}
|
||||
var SigningPolicy = /** @class */ (function (_super) {
|
||||
__extends(SigningPolicy, _super);
|
||||
function SigningPolicy(nextPolicy, options, authenticationProvider) {
|
||||
var _this = _super.call(this, nextPolicy, options) || this;
|
||||
_this.authenticationProvider = authenticationProvider;
|
||||
return _this;
|
||||
}
|
||||
SigningPolicy.prototype.signRequest = function (request) {
|
||||
return this.authenticationProvider.signRequest(request);
|
||||
};
|
||||
SigningPolicy.prototype.sendRequest = function (request) {
|
||||
var _this = this;
|
||||
return this.signRequest(request).then(function (nextRequest) {
|
||||
return _this._nextPolicy.sendRequest(nextRequest);
|
||||
});
|
||||
};
|
||||
return SigningPolicy;
|
||||
}(BaseRequestPolicy));
|
||||
export { SigningPolicy };
|
||||
//# sourceMappingURL=signingPolicy.js.map
|
Loading…
Add table
Add a link
Reference in a new issue