mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-19 04:58:25 +02:00
feat: add @actions/cache
This commit is contained in:
parent
b15fb7d098
commit
16e8c96a41
1932 changed files with 261172 additions and 10 deletions
13
node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.d.ts
generated
vendored
Normal file
13
node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { Context } from '../context/types';
|
||||
import { TextMapPropagator } from './TextMapPropagator';
|
||||
/**
|
||||
* No-op implementations of {@link TextMapPropagator}.
|
||||
*/
|
||||
export declare class NoopTextMapPropagator implements TextMapPropagator {
|
||||
/** Noop inject function does nothing */
|
||||
inject(_context: Context, _carrier: unknown): void;
|
||||
/** Noop extract function does nothing and returns the input context */
|
||||
extract(context: Context, _carrier: unknown): Context;
|
||||
fields(): string[];
|
||||
}
|
||||
//# sourceMappingURL=NoopTextMapPropagator.d.ts.map
|
34
node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.js
generated
vendored
Normal file
34
node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.js
generated
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
* Copyright The OpenTelemetry Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* No-op implementations of {@link TextMapPropagator}.
|
||||
*/
|
||||
var NoopTextMapPropagator = /** @class */ (function () {
|
||||
function NoopTextMapPropagator() {
|
||||
}
|
||||
/** Noop inject function does nothing */
|
||||
NoopTextMapPropagator.prototype.inject = function (_context, _carrier) { };
|
||||
/** Noop extract function does nothing and returns the input context */
|
||||
NoopTextMapPropagator.prototype.extract = function (context, _carrier) {
|
||||
return context;
|
||||
};
|
||||
NoopTextMapPropagator.prototype.fields = function () {
|
||||
return [];
|
||||
};
|
||||
return NoopTextMapPropagator;
|
||||
}());
|
||||
export { NoopTextMapPropagator };
|
||||
//# sourceMappingURL=NoopTextMapPropagator.js.map
|
1
node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.js.map
generated
vendored
Normal file
1
node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.js.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"NoopTextMapPropagator.js","sourceRoot":"","sources":["../../../src/propagation/NoopTextMapPropagator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH;;GAEG;AACH;IAAA;IAUA,CAAC;IATC,wCAAwC;IACxC,sCAAM,GAAN,UAAO,QAAiB,EAAE,QAAiB,IAAS,CAAC;IACrD,uEAAuE;IACvE,uCAAO,GAAP,UAAQ,OAAgB,EAAE,QAAiB;QACzC,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,sCAAM,GAAN;QACE,OAAO,EAAE,CAAC;IACZ,CAAC;IACH,4BAAC;AAAD,CAAC,AAVD,IAUC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Context } from '../context/types';\nimport { TextMapPropagator } from './TextMapPropagator';\n\n/**\n * No-op implementations of {@link TextMapPropagator}.\n */\nexport class NoopTextMapPropagator implements TextMapPropagator {\n /** Noop inject function does nothing */\n inject(_context: Context, _carrier: unknown): void {}\n /** Noop extract function does nothing and returns the input context */\n extract(context: Context, _carrier: unknown): Context {\n return context;\n }\n fields(): string[] {\n return [];\n }\n}\n"]}
|
84
node_modules/@opentelemetry/api/build/esm/propagation/TextMapPropagator.d.ts
generated
vendored
Normal file
84
node_modules/@opentelemetry/api/build/esm/propagation/TextMapPropagator.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,84 @@
|
|||
import { Context } from '../context/types';
|
||||
/**
|
||||
* Injects `Context` into and extracts it from carriers that travel
|
||||
* in-band across process boundaries. Encoding is expected to conform to the
|
||||
* HTTP Header Field semantics. Values are often encoded as RPC/HTTP request
|
||||
* headers.
|
||||
*
|
||||
* The carrier of propagated data on both the client (injector) and server
|
||||
* (extractor) side is usually an object such as http headers. Propagation is
|
||||
* usually implemented via library-specific request interceptors, where the
|
||||
* client-side injects values and the server-side extracts them.
|
||||
*/
|
||||
export interface TextMapPropagator<Carrier = any> {
|
||||
/**
|
||||
* Injects values from a given `Context` into a carrier.
|
||||
*
|
||||
* OpenTelemetry defines a common set of format values (TextMapPropagator),
|
||||
* and each has an expected `carrier` type.
|
||||
*
|
||||
* @param context the Context from which to extract values to transmit over
|
||||
* the wire.
|
||||
* @param carrier the carrier of propagation fields, such as http request
|
||||
* headers.
|
||||
* @param setter an optional {@link TextMapSetter}. If undefined, values will be
|
||||
* set by direct object assignment.
|
||||
*/
|
||||
inject(context: Context, carrier: Carrier, setter: TextMapSetter<Carrier>): void;
|
||||
/**
|
||||
* Given a `Context` and a carrier, extract context values from a
|
||||
* carrier and return a new context, created from the old context, with the
|
||||
* extracted values.
|
||||
*
|
||||
* @param context the Context from which to extract values to transmit over
|
||||
* the wire.
|
||||
* @param carrier the carrier of propagation fields, such as http request
|
||||
* headers.
|
||||
* @param getter an optional {@link TextMapGetter}. If undefined, keys will be all
|
||||
* own properties, and keys will be accessed by direct object access.
|
||||
*/
|
||||
extract(context: Context, carrier: Carrier, getter: TextMapGetter<Carrier>): Context;
|
||||
/**
|
||||
* Return a list of all fields which may be used by the propagator.
|
||||
*/
|
||||
fields(): string[];
|
||||
}
|
||||
/**
|
||||
* A setter is specified by the caller to define a specific method
|
||||
* to set key/value pairs on the carrier within a propagator.
|
||||
*/
|
||||
export interface TextMapSetter<Carrier = any> {
|
||||
/**
|
||||
* Callback used to set a key/value pair on an object.
|
||||
*
|
||||
* Should be called by the propagator each time a key/value pair
|
||||
* should be set, and should set that key/value pair on the propagator.
|
||||
*
|
||||
* @param carrier object or class which carries key/value pairs
|
||||
* @param key string key to modify
|
||||
* @param value value to be set to the key on the carrier
|
||||
*/
|
||||
set(carrier: Carrier, key: string, value: string): void;
|
||||
}
|
||||
/**
|
||||
* A getter is specified by the caller to define a specific method
|
||||
* to get the value of a key from a carrier.
|
||||
*/
|
||||
export interface TextMapGetter<Carrier = any> {
|
||||
/**
|
||||
* Get a list of all keys available on the carrier.
|
||||
*
|
||||
* @param carrier
|
||||
*/
|
||||
keys(carrier: Carrier): string[];
|
||||
/**
|
||||
* Get the value of a specific key from the carrier.
|
||||
*
|
||||
* @param carrier
|
||||
* @param key
|
||||
*/
|
||||
get(carrier: Carrier, key: string): undefined | string | string[];
|
||||
}
|
||||
export declare const defaultTextMapGetter: TextMapGetter;
|
||||
export declare const defaultTextMapSetter: TextMapSetter;
|
||||
//# sourceMappingURL=TextMapPropagator.d.ts.map
|
38
node_modules/@opentelemetry/api/build/esm/propagation/TextMapPropagator.js
generated
vendored
Normal file
38
node_modules/@opentelemetry/api/build/esm/propagation/TextMapPropagator.js
generated
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
/*
|
||||
* Copyright The OpenTelemetry Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
export var defaultTextMapGetter = {
|
||||
get: function (carrier, key) {
|
||||
if (carrier == null) {
|
||||
return undefined;
|
||||
}
|
||||
return carrier[key];
|
||||
},
|
||||
keys: function (carrier) {
|
||||
if (carrier == null) {
|
||||
return [];
|
||||
}
|
||||
return Object.keys(carrier);
|
||||
},
|
||||
};
|
||||
export var defaultTextMapSetter = {
|
||||
set: function (carrier, key, value) {
|
||||
if (carrier == null) {
|
||||
return;
|
||||
}
|
||||
carrier[key] = value;
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=TextMapPropagator.js.map
|
1
node_modules/@opentelemetry/api/build/esm/propagation/TextMapPropagator.js.map
generated
vendored
Normal file
1
node_modules/@opentelemetry/api/build/esm/propagation/TextMapPropagator.js.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"TextMapPropagator.js","sourceRoot":"","sources":["../../../src/propagation/TextMapPropagator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAkGH,MAAM,CAAC,IAAM,oBAAoB,GAAkB;IACjD,GAAG,YAAC,OAAO,EAAE,GAAG;QACd,IAAI,OAAO,IAAI,IAAI,EAAE;YACnB,OAAO,SAAS,CAAC;SAClB;QACD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC;IACtB,CAAC;IAED,IAAI,YAAC,OAAO;QACV,IAAI,OAAO,IAAI,IAAI,EAAE;YACnB,OAAO,EAAE,CAAC;SACX;QACD,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;CACF,CAAC;AAEF,MAAM,CAAC,IAAM,oBAAoB,GAAkB;IACjD,GAAG,YAAC,OAAO,EAAE,GAAG,EAAE,KAAK;QACrB,IAAI,OAAO,IAAI,IAAI,EAAE;YACnB,OAAO;SACR;QAED,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACvB,CAAC;CACF,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Context } from '../context/types';\n\n/**\n * Injects `Context` into and extracts it from carriers that travel\n * in-band across process boundaries. Encoding is expected to conform to the\n * HTTP Header Field semantics. Values are often encoded as RPC/HTTP request\n * headers.\n *\n * The carrier of propagated data on both the client (injector) and server\n * (extractor) side is usually an object such as http headers. Propagation is\n * usually implemented via library-specific request interceptors, where the\n * client-side injects values and the server-side extracts them.\n */\nexport interface TextMapPropagator<Carrier = any> {\n /**\n * Injects values from a given `Context` into a carrier.\n *\n * OpenTelemetry defines a common set of format values (TextMapPropagator),\n * and each has an expected `carrier` type.\n *\n * @param context the Context from which to extract values to transmit over\n * the wire.\n * @param carrier the carrier of propagation fields, such as http request\n * headers.\n * @param setter an optional {@link TextMapSetter}. If undefined, values will be\n * set by direct object assignment.\n */\n inject(\n context: Context,\n carrier: Carrier,\n setter: TextMapSetter<Carrier>\n ): void;\n\n /**\n * Given a `Context` and a carrier, extract context values from a\n * carrier and return a new context, created from the old context, with the\n * extracted values.\n *\n * @param context the Context from which to extract values to transmit over\n * the wire.\n * @param carrier the carrier of propagation fields, such as http request\n * headers.\n * @param getter an optional {@link TextMapGetter}. If undefined, keys will be all\n * own properties, and keys will be accessed by direct object access.\n */\n extract(\n context: Context,\n carrier: Carrier,\n getter: TextMapGetter<Carrier>\n ): Context;\n\n /**\n * Return a list of all fields which may be used by the propagator.\n */\n fields(): string[];\n}\n\n/**\n * A setter is specified by the caller to define a specific method\n * to set key/value pairs on the carrier within a propagator.\n */\nexport interface TextMapSetter<Carrier = any> {\n /**\n * Callback used to set a key/value pair on an object.\n *\n * Should be called by the propagator each time a key/value pair\n * should be set, and should set that key/value pair on the propagator.\n *\n * @param carrier object or class which carries key/value pairs\n * @param key string key to modify\n * @param value value to be set to the key on the carrier\n */\n set(carrier: Carrier, key: string, value: string): void;\n}\n\n/**\n * A getter is specified by the caller to define a specific method\n * to get the value of a key from a carrier.\n */\nexport interface TextMapGetter<Carrier = any> {\n /**\n * Get a list of all keys available on the carrier.\n *\n * @param carrier\n */\n keys(carrier: Carrier): string[];\n\n /**\n * Get the value of a specific key from the carrier.\n *\n * @param carrier\n * @param key\n */\n get(carrier: Carrier, key: string): undefined | string | string[];\n}\n\nexport const defaultTextMapGetter: TextMapGetter = {\n get(carrier, key) {\n if (carrier == null) {\n return undefined;\n }\n return carrier[key];\n },\n\n keys(carrier) {\n if (carrier == null) {\n return [];\n }\n return Object.keys(carrier);\n },\n};\n\nexport const defaultTextMapSetter: TextMapSetter = {\n set(carrier, key, value) {\n if (carrier == null) {\n return;\n }\n\n carrier[key] = value;\n },\n};\n"]}
|
Loading…
Add table
Add a link
Reference in a new issue