@rharkor/caching-for-turbo 2.1.3 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/cli/index.js +117 -11
- package/package.json +2 -62
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ the following step **before** you run `turbo build`:
|
|
|
55
55
|
|
|
56
56
|
```yaml
|
|
57
57
|
- name: Cache for Turbo
|
|
58
|
-
uses: rharkor/caching-for-turbo@v2.1.
|
|
58
|
+
uses: rharkor/caching-for-turbo@v2.1.3
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
This GitHub Action facilitates:
|
|
@@ -200,7 +200,7 @@ Example S3 configuration:
|
|
|
200
200
|
|
|
201
201
|
```yaml
|
|
202
202
|
- name: Cache for Turbo
|
|
203
|
-
uses: rharkor/caching-for-turbo@v2.1.
|
|
203
|
+
uses: rharkor/caching-for-turbo@v2.1.3
|
|
204
204
|
with:
|
|
205
205
|
provider: s3
|
|
206
206
|
s3-bucket: my-turbo-cache-bucket
|
|
@@ -234,7 +234,7 @@ Example with cleanup configuration:
|
|
|
234
234
|
|
|
235
235
|
```yaml
|
|
236
236
|
- name: Cache for Turbo
|
|
237
|
-
uses: rharkor/caching-for-turbo@v2.1.
|
|
237
|
+
uses: rharkor/caching-for-turbo@v2.1.3
|
|
238
238
|
with:
|
|
239
239
|
provider: s3
|
|
240
240
|
s3-bucket: my-turbo-cache-bucket
|
package/dist/cli/index.js
CHANGED
|
@@ -14267,7 +14267,8 @@ var de_CreateBucketCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
14267
14267
|
}
|
|
14268
14268
|
const contents = (0, import_smithy_client.map)({
|
|
14269
14269
|
$metadata: deserializeMetadata(output),
|
|
14270
|
-
[_L]: [, output.headers[_lo]]
|
|
14270
|
+
[_L]: [, output.headers[_lo]],
|
|
14271
|
+
[_BA]: [, output.headers[_xaba]]
|
|
14271
14272
|
});
|
|
14272
14273
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
14273
14274
|
return contents;
|
|
@@ -15008,6 +15009,7 @@ var de_HeadBucketCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
15008
15009
|
}
|
|
15009
15010
|
const contents = (0, import_smithy_client.map)({
|
|
15010
15011
|
$metadata: deserializeMetadata(output),
|
|
15012
|
+
[_BA]: [, output.headers[_xaba]],
|
|
15011
15013
|
[_BLT]: [, output.headers[_xablt]],
|
|
15012
15014
|
[_BLN]: [, output.headers[_xabln]],
|
|
15013
15015
|
[_BR]: [, output.headers[_xabr]],
|
|
@@ -16276,6 +16278,7 @@ var se_CreateBucketConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
|
16276
16278
|
if (input[_B] != null) {
|
|
16277
16279
|
bn.c(se_BucketInfo(input[_B], context).n(_B));
|
|
16278
16280
|
}
|
|
16281
|
+
bn.lc(input, "Tags", "Tags", () => se_TagSet(input[_Tag], context));
|
|
16279
16282
|
return bn;
|
|
16280
16283
|
}, "se_CreateBucketConfiguration");
|
|
16281
16284
|
var se_CSVInput = /* @__PURE__ */ __name((input, context) => {
|
|
@@ -17485,6 +17488,9 @@ var de_Bucket = /* @__PURE__ */ __name((output, context) => {
|
|
|
17485
17488
|
if (output[_BR] != null) {
|
|
17486
17489
|
contents[_BR] = (0, import_smithy_client.expectString)(output[_BR]);
|
|
17487
17490
|
}
|
|
17491
|
+
if (output[_BA] != null) {
|
|
17492
|
+
contents[_BA] = (0, import_smithy_client.expectString)(output[_BA]);
|
|
17493
|
+
}
|
|
17488
17494
|
return contents;
|
|
17489
17495
|
}, "de_Bucket");
|
|
17490
17496
|
var de_Buckets = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -19005,6 +19011,7 @@ var _ASSEBD = "ApplyServerSideEncryptionByDefault";
|
|
|
19005
19011
|
var _AT = "AccessTier";
|
|
19006
19012
|
var _Ac = "Account";
|
|
19007
19013
|
var _B = "Bucket";
|
|
19014
|
+
var _BA = "BucketArn";
|
|
19008
19015
|
var _BAI = "BucketAccountId";
|
|
19009
19016
|
var _BAS = "BucketAccelerateStatus";
|
|
19010
19017
|
var _BGR = "BypassGovernanceRetention";
|
|
@@ -19547,6 +19554,7 @@ var _xaad = "x-amz-abort-date";
|
|
|
19547
19554
|
var _xaapa = "x-amz-access-point-alias";
|
|
19548
19555
|
var _xaari = "x-amz-abort-rule-id";
|
|
19549
19556
|
var _xaas = "x-amz-archive-status";
|
|
19557
|
+
var _xaba = "x-amz-bucket-arn";
|
|
19550
19558
|
var _xabgr = "x-amz-bypass-governance-retention";
|
|
19551
19559
|
var _xabln = "x-amz-bucket-location-name";
|
|
19552
19560
|
var _xablt = "x-amz-bucket-location-type";
|
|
@@ -23840,6 +23848,7 @@ __export(index_exports, {
|
|
|
23840
23848
|
emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion,
|
|
23841
23849
|
setCredentialFeature: () => setCredentialFeature,
|
|
23842
23850
|
setFeature: () => setFeature,
|
|
23851
|
+
setTokenFeature: () => setTokenFeature,
|
|
23843
23852
|
state: () => state
|
|
23844
23853
|
});
|
|
23845
23854
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -23885,6 +23894,16 @@ function setFeature(context, feature, value) {
|
|
|
23885
23894
|
context.__aws_sdk_context.features[feature] = value;
|
|
23886
23895
|
}
|
|
23887
23896
|
__name(setFeature, "setFeature");
|
|
23897
|
+
|
|
23898
|
+
// src/submodules/client/setTokenFeature.ts
|
|
23899
|
+
function setTokenFeature(token, feature, value) {
|
|
23900
|
+
if (!token.$source) {
|
|
23901
|
+
token.$source = {};
|
|
23902
|
+
}
|
|
23903
|
+
token.$source[feature] = value;
|
|
23904
|
+
return token;
|
|
23905
|
+
}
|
|
23906
|
+
__name(setTokenFeature, "setTokenFeature");
|
|
23888
23907
|
// Annotate the CommonJS export names for ESM import in node:
|
|
23889
23908
|
0 && (0);
|
|
23890
23909
|
|
|
@@ -32811,18 +32830,21 @@ __export(index_exports, {
|
|
|
32811
32830
|
module.exports = __toCommonJS(index_exports);
|
|
32812
32831
|
|
|
32813
32832
|
// src/fromEnvSigningName.ts
|
|
32814
|
-
var
|
|
32833
|
+
var import_client = __nccwpck_require__(5152);
|
|
32834
|
+
var import_httpAuthSchemes = __nccwpck_require__(97523);
|
|
32815
32835
|
var import_property_provider = __nccwpck_require__(71238);
|
|
32816
32836
|
var fromEnvSigningName = /* @__PURE__ */ __name(({ logger, signingName } = {}) => async () => {
|
|
32817
32837
|
logger?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");
|
|
32818
32838
|
if (!signingName) {
|
|
32819
32839
|
throw new import_property_provider.TokenProviderError("Please pass 'signingName' to compute environment variable key", { logger });
|
|
32820
32840
|
}
|
|
32821
|
-
const bearerTokenKey = (0,
|
|
32841
|
+
const bearerTokenKey = (0, import_httpAuthSchemes.getBearerTokenEnvKey)(signingName);
|
|
32822
32842
|
if (!(bearerTokenKey in process.env)) {
|
|
32823
32843
|
throw new import_property_provider.TokenProviderError(`Token not present in '${bearerTokenKey}' environment variable`, { logger });
|
|
32824
32844
|
}
|
|
32825
|
-
|
|
32845
|
+
const token = { token: process.env[bearerTokenKey] };
|
|
32846
|
+
(0, import_client.setTokenFeature)(token, "BEARER_SERVICE_ENV_VARS", "3");
|
|
32847
|
+
return token;
|
|
32826
32848
|
}, "fromEnvSigningName");
|
|
32827
32849
|
|
|
32828
32850
|
// src/fromSso.ts
|
|
@@ -97409,6 +97431,33 @@ const packageJson = __nccwpck_require__(80056)
|
|
|
97409
97431
|
|
|
97410
97432
|
const version = packageJson.version
|
|
97411
97433
|
|
|
97434
|
+
// Array of tips to display randomly
|
|
97435
|
+
const TIPS = [
|
|
97436
|
+
'🔐 encrypt with dotenvx: https://dotenvx.com',
|
|
97437
|
+
'🔐 prevent committing .env to code: https://dotenvx.com/precommit',
|
|
97438
|
+
'🔐 prevent building .env in docker: https://dotenvx.com/prebuild',
|
|
97439
|
+
'🛠️ run anywhere with `dotenvx run -- yourcommand`',
|
|
97440
|
+
'⚙️ specify custom .env file path with { path: \'/custom/path/.env\' }',
|
|
97441
|
+
'⚙️ enable debug logging with { debug: true }',
|
|
97442
|
+
'⚙️ override existing env vars with { override: true }',
|
|
97443
|
+
'⚙️ suppress all logs with { quiet: true }',
|
|
97444
|
+
'⚙️ write to custom object with { processEnv: myObject }',
|
|
97445
|
+
'⚙️ load multiple .env files with { path: [\'.env.local\', \'.env\'] }'
|
|
97446
|
+
]
|
|
97447
|
+
|
|
97448
|
+
// Get a random tip from the tips array
|
|
97449
|
+
function _getRandomTip () {
|
|
97450
|
+
return TIPS[Math.floor(Math.random() * TIPS.length)]
|
|
97451
|
+
}
|
|
97452
|
+
|
|
97453
|
+
function supportsAnsi () {
|
|
97454
|
+
return process.stdout.isTTY // && process.env.TERM !== 'dumb'
|
|
97455
|
+
}
|
|
97456
|
+
|
|
97457
|
+
function dim (text) {
|
|
97458
|
+
return supportsAnsi() ? `\x1b[2m${text}\x1b[0m` : text
|
|
97459
|
+
}
|
|
97460
|
+
|
|
97412
97461
|
const LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg
|
|
97413
97462
|
|
|
97414
97463
|
// Parse src into an Object
|
|
@@ -97660,10 +97709,10 @@ function configDotenv (options) {
|
|
|
97660
97709
|
processEnv = options.processEnv
|
|
97661
97710
|
}
|
|
97662
97711
|
|
|
97663
|
-
DotenvModule.populate(processEnv, parsedAll, options)
|
|
97712
|
+
const populated = DotenvModule.populate(processEnv, parsedAll, options)
|
|
97664
97713
|
|
|
97665
97714
|
if (debug || !quiet) {
|
|
97666
|
-
const keysCount = Object.keys(
|
|
97715
|
+
const keysCount = Object.keys(populated).length
|
|
97667
97716
|
const shortPaths = []
|
|
97668
97717
|
for (const filePath of optionPaths) {
|
|
97669
97718
|
try {
|
|
@@ -97677,7 +97726,7 @@ function configDotenv (options) {
|
|
|
97677
97726
|
}
|
|
97678
97727
|
}
|
|
97679
97728
|
|
|
97680
|
-
_log(`injecting env (${keysCount}) from ${shortPaths.join(',')}
|
|
97729
|
+
_log(`injecting env (${keysCount}) from ${shortPaths.join(',')} ${dim(`(tip: ${_getRandomTip()})`)}`)
|
|
97681
97730
|
}
|
|
97682
97731
|
|
|
97683
97732
|
if (lastError) {
|
|
@@ -97741,6 +97790,7 @@ function decrypt (encrypted, keyStr) {
|
|
|
97741
97790
|
function populate (processEnv, parsed, options = {}) {
|
|
97742
97791
|
const debug = Boolean(options && options.debug)
|
|
97743
97792
|
const override = Boolean(options && options.override)
|
|
97793
|
+
const populated = {}
|
|
97744
97794
|
|
|
97745
97795
|
if (typeof parsed !== 'object') {
|
|
97746
97796
|
const err = new Error('OBJECT_REQUIRED: Please check the processEnv argument being passed to populate')
|
|
@@ -97753,6 +97803,7 @@ function populate (processEnv, parsed, options = {}) {
|
|
|
97753
97803
|
if (Object.prototype.hasOwnProperty.call(processEnv, key)) {
|
|
97754
97804
|
if (override === true) {
|
|
97755
97805
|
processEnv[key] = parsed[key]
|
|
97806
|
+
populated[key] = parsed[key]
|
|
97756
97807
|
}
|
|
97757
97808
|
|
|
97758
97809
|
if (debug) {
|
|
@@ -97764,8 +97815,11 @@ function populate (processEnv, parsed, options = {}) {
|
|
|
97764
97815
|
}
|
|
97765
97816
|
} else {
|
|
97766
97817
|
processEnv[key] = parsed[key]
|
|
97818
|
+
populated[key] = parsed[key]
|
|
97767
97819
|
}
|
|
97768
97820
|
}
|
|
97821
|
+
|
|
97822
|
+
return populated
|
|
97769
97823
|
}
|
|
97770
97824
|
|
|
97771
97825
|
const DotenvModule = {
|
|
@@ -200953,21 +201007,21 @@ module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.
|
|
|
200953
201007
|
/***/ 27413:
|
|
200954
201008
|
/***/ ((module) => {
|
|
200955
201009
|
|
|
200956
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-s3","description":"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native","version":"3.
|
|
201010
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-s3","description":"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native","version":"3.842.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline client-s3","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo s3","test":"yarn g:vitest run","test:browser":"node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.ts","test:browser:watch":"node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.ts","test:e2e":"yarn g:vitest run -c vitest.config.e2e.ts && yarn test:browser","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.ts","test:integration":"yarn g:vitest run -c vitest.config.integ.ts","test:integration:watch":"yarn g:vitest watch -c vitest.config.integ.ts","test:watch":"yarn g:vitest watch"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha1-browser":"5.2.0","@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.840.0","@aws-sdk/credential-provider-node":"3.840.0","@aws-sdk/middleware-bucket-endpoint":"3.840.0","@aws-sdk/middleware-expect-continue":"3.840.0","@aws-sdk/middleware-flexible-checksums":"3.840.0","@aws-sdk/middleware-host-header":"3.840.0","@aws-sdk/middleware-location-constraint":"3.840.0","@aws-sdk/middleware-logger":"3.840.0","@aws-sdk/middleware-recursion-detection":"3.840.0","@aws-sdk/middleware-sdk-s3":"3.840.0","@aws-sdk/middleware-ssec":"3.840.0","@aws-sdk/middleware-user-agent":"3.840.0","@aws-sdk/region-config-resolver":"3.840.0","@aws-sdk/signature-v4-multi-region":"3.840.0","@aws-sdk/types":"3.840.0","@aws-sdk/util-endpoints":"3.840.0","@aws-sdk/util-user-agent-browser":"3.840.0","@aws-sdk/util-user-agent-node":"3.840.0","@aws-sdk/xml-builder":"3.821.0","@smithy/config-resolver":"^4.1.4","@smithy/core":"^3.6.0","@smithy/eventstream-serde-browser":"^4.0.4","@smithy/eventstream-serde-config-resolver":"^4.1.2","@smithy/eventstream-serde-node":"^4.0.4","@smithy/fetch-http-handler":"^5.0.4","@smithy/hash-blob-browser":"^4.0.4","@smithy/hash-node":"^4.0.4","@smithy/hash-stream-node":"^4.0.4","@smithy/invalid-dependency":"^4.0.4","@smithy/md5-js":"^4.0.4","@smithy/middleware-content-length":"^4.0.4","@smithy/middleware-endpoint":"^4.1.13","@smithy/middleware-retry":"^4.1.14","@smithy/middleware-serde":"^4.0.8","@smithy/middleware-stack":"^4.0.4","@smithy/node-config-provider":"^4.1.3","@smithy/node-http-handler":"^4.0.6","@smithy/protocol-http":"^5.1.2","@smithy/smithy-client":"^4.4.5","@smithy/types":"^4.3.1","@smithy/url-parser":"^4.0.4","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.21","@smithy/util-defaults-mode-node":"^4.0.21","@smithy/util-endpoints":"^3.0.6","@smithy/util-middleware":"^4.0.4","@smithy/util-retry":"^4.0.6","@smithy/util-stream":"^4.2.2","@smithy/util-utf8":"^4.0.0","@smithy/util-waiter":"^4.0.6","@types/uuid":"^9.0.1","tslib":"^2.6.2","uuid":"^9.0.1"},"devDependencies":{"@aws-sdk/signature-v4-crt":"3.840.0","@tsconfig/node18":"18.2.4","@types/node":"^18.19.69","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"engines":{"node":">=18.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-s3"}}');
|
|
200957
201011
|
|
|
200958
201012
|
/***/ }),
|
|
200959
201013
|
|
|
200960
201014
|
/***/ 45188:
|
|
200961
201015
|
/***/ ((module) => {
|
|
200962
201016
|
|
|
200963
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.
|
|
201017
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.840.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.840.0","@aws-sdk/middleware-host-header":"3.840.0","@aws-sdk/middleware-logger":"3.840.0","@aws-sdk/middleware-recursion-detection":"3.840.0","@aws-sdk/middleware-user-agent":"3.840.0","@aws-sdk/region-config-resolver":"3.840.0","@aws-sdk/types":"3.840.0","@aws-sdk/util-endpoints":"3.840.0","@aws-sdk/util-user-agent-browser":"3.840.0","@aws-sdk/util-user-agent-node":"3.840.0","@smithy/config-resolver":"^4.1.4","@smithy/core":"^3.6.0","@smithy/fetch-http-handler":"^5.0.4","@smithy/hash-node":"^4.0.4","@smithy/invalid-dependency":"^4.0.4","@smithy/middleware-content-length":"^4.0.4","@smithy/middleware-endpoint":"^4.1.13","@smithy/middleware-retry":"^4.1.14","@smithy/middleware-serde":"^4.0.8","@smithy/middleware-stack":"^4.0.4","@smithy/node-config-provider":"^4.1.3","@smithy/node-http-handler":"^4.0.6","@smithy/protocol-http":"^5.1.2","@smithy/smithy-client":"^4.4.5","@smithy/types":"^4.3.1","@smithy/url-parser":"^4.0.4","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.21","@smithy/util-defaults-mode-node":"^4.0.21","@smithy/util-endpoints":"^3.0.6","@smithy/util-middleware":"^4.0.4","@smithy/util-retry":"^4.0.6","@smithy/util-utf8":"^4.0.0","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"engines":{"node":">=18.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}');
|
|
200964
201018
|
|
|
200965
201019
|
/***/ }),
|
|
200966
201020
|
|
|
200967
201021
|
/***/ 39955:
|
|
200968
201022
|
/***/ ((module) => {
|
|
200969
201023
|
|
|
200970
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.
|
|
201024
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.840.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=18.0.0"},"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.840.0","@aws-sdk/middleware-host-header":"3.840.0","@aws-sdk/middleware-logger":"3.840.0","@aws-sdk/middleware-recursion-detection":"3.840.0","@aws-sdk/middleware-user-agent":"3.840.0","@aws-sdk/region-config-resolver":"3.840.0","@aws-sdk/types":"3.840.0","@aws-sdk/util-endpoints":"3.840.0","@aws-sdk/util-user-agent-browser":"3.840.0","@aws-sdk/util-user-agent-node":"3.840.0","@smithy/config-resolver":"^4.1.4","@smithy/core":"^3.6.0","@smithy/fetch-http-handler":"^5.0.4","@smithy/hash-node":"^4.0.4","@smithy/invalid-dependency":"^4.0.4","@smithy/middleware-content-length":"^4.0.4","@smithy/middleware-endpoint":"^4.1.13","@smithy/middleware-retry":"^4.1.14","@smithy/middleware-serde":"^4.0.8","@smithy/middleware-stack":"^4.0.4","@smithy/node-config-provider":"^4.1.3","@smithy/node-http-handler":"^4.0.6","@smithy/protocol-http":"^5.1.2","@smithy/smithy-client":"^4.4.5","@smithy/types":"^4.3.1","@smithy/url-parser":"^4.0.4","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.21","@smithy/util-defaults-mode-node":"^4.0.21","@smithy/util-endpoints":"^3.0.6","@smithy/util-middleware":"^4.0.4","@smithy/util-retry":"^4.0.6","@smithy/util-utf8":"^4.0.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"}}}');
|
|
200971
201025
|
|
|
200972
201026
|
/***/ }),
|
|
200973
201027
|
|
|
@@ -201002,7 +201056,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"$schema":"http://json-schema.org/dra
|
|
|
201002
201056
|
/***/ 80056:
|
|
201003
201057
|
/***/ ((module) => {
|
|
201004
201058
|
|
|
201005
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"dotenv","version":"17.
|
|
201059
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"dotenv","version":"17.1.0","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","pretest":"npm run lint && npm run dts-check","test":"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"homepage":"https://github.com/motdotla/dotenv#readme","funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@types/node":"^18.11.3","decache":"^4.6.2","sinon":"^14.0.1","standard":"^17.0.0","standard-version":"^9.5.0","tap":"^19.2.0","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}');
|
|
201006
201060
|
|
|
201007
201061
|
/***/ }),
|
|
201008
201062
|
|
|
@@ -202200,6 +202254,58 @@ async function server() {
|
|
|
202200
202254
|
request.log.info(`Sending artifact for ${hash}`);
|
|
202201
202255
|
return reply.send(stream);
|
|
202202
202256
|
});
|
|
202257
|
+
/**
|
|
202258
|
+
* Login and link commands
|
|
202259
|
+
*/
|
|
202260
|
+
fastify.get('/v5/user/tokens/current', async () => {
|
|
202261
|
+
return {
|
|
202262
|
+
ok: true,
|
|
202263
|
+
token: {
|
|
202264
|
+
id: 'turbogha',
|
|
202265
|
+
name: 'turbogha',
|
|
202266
|
+
type: 'turbogha',
|
|
202267
|
+
origin: 'turbogha',
|
|
202268
|
+
scopes: [],
|
|
202269
|
+
activeAt: Date.now(),
|
|
202270
|
+
createdAt: Date.now()
|
|
202271
|
+
}
|
|
202272
|
+
};
|
|
202273
|
+
});
|
|
202274
|
+
fastify.get('/v8/artifacts/status', async () => {
|
|
202275
|
+
return {
|
|
202276
|
+
ok: true,
|
|
202277
|
+
status: 'enabled'
|
|
202278
|
+
};
|
|
202279
|
+
});
|
|
202280
|
+
fastify.get('/v2/user', async () => {
|
|
202281
|
+
return {
|
|
202282
|
+
ok: true,
|
|
202283
|
+
user: {
|
|
202284
|
+
id: 'turbogha',
|
|
202285
|
+
username: 'turbogha',
|
|
202286
|
+
email: 'turbogha@turbogha.com',
|
|
202287
|
+
name: 'turbogha',
|
|
202288
|
+
createdAt: Date.now()
|
|
202289
|
+
}
|
|
202290
|
+
};
|
|
202291
|
+
});
|
|
202292
|
+
fastify.get('/v2/teams', async () => {
|
|
202293
|
+
return {
|
|
202294
|
+
ok: true,
|
|
202295
|
+
teams: [
|
|
202296
|
+
{
|
|
202297
|
+
id: 'turbogha',
|
|
202298
|
+
slug: 'turbogha',
|
|
202299
|
+
name: 'turbogha',
|
|
202300
|
+
createdAt: Date.now(),
|
|
202301
|
+
created: new Date(),
|
|
202302
|
+
membership: {
|
|
202303
|
+
role: 'OWNER'
|
|
202304
|
+
}
|
|
202305
|
+
}
|
|
202306
|
+
]
|
|
202307
|
+
};
|
|
202308
|
+
});
|
|
202203
202309
|
//* Start the server
|
|
202204
202310
|
await fastify.listen({ port: serverPort });
|
|
202205
202311
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rharkor/caching-for-turbo",
|
|
3
3
|
"description": "Sets up Turborepo Remote Caching to work with GitHub Actions built-in cache",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.2.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/rharkor/caching-for-turbo",
|
|
7
7
|
"repository": {
|
|
@@ -21,73 +21,13 @@
|
|
|
21
21
|
".": "./dist/cli/index.js"
|
|
22
22
|
},
|
|
23
23
|
"bin": {
|
|
24
|
-
"turbogha": "
|
|
24
|
+
"turbogha": "dist/cli/index.js"
|
|
25
25
|
},
|
|
26
26
|
"type": "module",
|
|
27
27
|
"engines": {
|
|
28
28
|
"node": ">=20"
|
|
29
29
|
},
|
|
30
|
-
"scripts": {
|
|
31
|
-
"bundle": "npm run format:write && npm run package",
|
|
32
|
-
"coverage": "make-coverage-badge --output-path ./badges/coverage.svg",
|
|
33
|
-
"format:write": "prettier --write .",
|
|
34
|
-
"format:check": "prettier --check .",
|
|
35
|
-
"lint": "eslint .",
|
|
36
|
-
"package": "ncc build src/index.ts -o dist/setup --source-map --license licenses.txt && ncc build src/post.ts -o dist/post --source-map --license licenses.txt && ncc build src/cli.ts -o dist/cli --source-map --license licenses.txt",
|
|
37
|
-
"package:watch": "npm run package -- --watch",
|
|
38
|
-
"all": "npm run format:write && npm run lint && npm run coverage && npm run package",
|
|
39
|
-
"test-build": "npm run -s package",
|
|
40
|
-
"test": "turbo run test-build",
|
|
41
|
-
"dev-run": "tsx ./src/dev-run.ts",
|
|
42
|
-
"cleanup": "tsx ./src/dev/cleanup.ts",
|
|
43
|
-
"start": "node dist/cli/index.js"
|
|
44
|
-
},
|
|
45
30
|
"license": "MIT",
|
|
46
|
-
"dependencies": {
|
|
47
|
-
"@actions/cache": "^4.0.0",
|
|
48
|
-
"@actions/core": "^1.10.1",
|
|
49
|
-
"@aws-sdk/client-s3": "^3.0.0",
|
|
50
|
-
"@aws-sdk/lib-storage": "^3.0.0",
|
|
51
|
-
"@rharkor/logger": "^1.3.1",
|
|
52
|
-
"fastify": "^5.0.0",
|
|
53
|
-
"filesize-parser": "^1.5.1",
|
|
54
|
-
"parse-duration": "^2.1.4",
|
|
55
|
-
"stream-to-promise": "^3.0.0",
|
|
56
|
-
"wait-on": "^8.0.0"
|
|
57
|
-
},
|
|
58
|
-
"devDependencies": {
|
|
59
|
-
"@eslint/js": "^9.24.0",
|
|
60
|
-
"@jest/globals": "^30.0.0",
|
|
61
|
-
"@types/node": "^22.0.0",
|
|
62
|
-
"@types/stream-to-promise": "^2.2.4",
|
|
63
|
-
"@types/wait-on": "^5.3.4",
|
|
64
|
-
"@typescript-eslint/eslint-plugin": "^8.29.1",
|
|
65
|
-
"@typescript-eslint/parser": "^8.29.1",
|
|
66
|
-
"@vercel/ncc": "^0.38.1",
|
|
67
|
-
"dotenv": "^17.0.0",
|
|
68
|
-
"eslint": "^9.24.0",
|
|
69
|
-
"eslint-plugin-github": "^6.0.0",
|
|
70
|
-
"eslint-plugin-jest": "^29.0.0",
|
|
71
|
-
"eslint-plugin-jsonc": "^2.16.0",
|
|
72
|
-
"eslint-plugin-prettier": "^5.1.3",
|
|
73
|
-
"globals": "^16.0.0",
|
|
74
|
-
"make-coverage-badge": "^1.2.0",
|
|
75
|
-
"prettier": "^3.3.2",
|
|
76
|
-
"prettier-eslint": "^16.3.0",
|
|
77
|
-
"ts-jest": "^29.1.4",
|
|
78
|
-
"tsx": "^4.15.4",
|
|
79
|
-
"turbo": "^2.0.3",
|
|
80
|
-
"typescript": "^5.4.5",
|
|
81
|
-
"typescript-eslint": "^8.29.1",
|
|
82
|
-
"@semantic-release/changelog": "^6.0.3",
|
|
83
|
-
"@semantic-release/commit-analyzer": "^13.0.0",
|
|
84
|
-
"@semantic-release/git": "^10.0.1",
|
|
85
|
-
"@semantic-release/github": "^11.0.0",
|
|
86
|
-
"@semantic-release/npm": "^12.0.0",
|
|
87
|
-
"@semantic-release/release-notes-generator": "^14.0.0",
|
|
88
|
-
"conventional-changelog-conventionalcommits": "^9.0.0",
|
|
89
|
-
"semantic-release": "^24.0.0"
|
|
90
|
-
},
|
|
91
31
|
"packageManager": "npm@11.4.2",
|
|
92
32
|
"publishConfig": {
|
|
93
33
|
"access": "public"
|