@ckirg/corelib-cloud 0.1.22 → 0.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/dist/aws/RequestUnlimited-CXTEHPLC.mjs +2 -0
- package/dist/aws/bun-THMEYPJD.mjs +2 -0
- package/dist/aws/chunk-6G4LF4KV.mjs +2 -0
- package/dist/aws/{chunk-F2KTMAO3.mjs → chunk-BIWQVQOH.mjs} +1 -1
- package/dist/aws/{chunk-Y7RZHZ53.mjs → chunk-QDX5GFCD.mjs} +1 -1
- package/dist/aws/chunk-QE5QGPOG.mjs +24 -0
- package/dist/aws/{chunk-V3XZ4XYN.mjs → chunk-XFLNYUID.mjs} +1 -1
- package/dist/aws/chunk-Z5QO7O62.mjs +8 -0
- package/dist/aws/chunk-ZGHY5A62.mjs +2 -0
- package/dist/aws/cloudflare-QTQSRNP7.mjs +2 -0
- package/dist/aws/deno-BKEQIY74.mjs +2 -0
- package/dist/{cloudrun/gcp-W76U73T6.js → aws/gcp-VNE5WPOL.mjs} +1 -1
- package/dist/aws/handler.mjs +3 -3
- package/dist/aws/lambda-4S67INQI.mjs +3 -0
- package/dist/aws/node-RQLZ4GQE.mjs +2 -0
- package/dist/aws/utils-5YBC32TV.mjs +2 -0
- package/dist/cloudflare/RequestUnlimited-OE7GCYBY.js +1 -0
- package/dist/cloudflare/bun-B6T46QQU.js +1 -0
- package/dist/cloudflare/{chunk-QPTGW2LL.js → chunk-BHGBRQZV.js} +1 -1
- package/dist/cloudflare/{chunk-EQSCULS7.js → chunk-GY2JCE4G.js} +2 -2
- package/dist/cloudflare/chunk-QPM32MRA.js +1 -0
- package/dist/cloudflare/chunk-VBA2ACKG.js +1 -0
- package/dist/cloudflare/{chunk-DGDAVQYC.js → chunk-ZMQIBLAC.js} +1 -1
- package/dist/cloudflare/cloudflare-CTNLQDS4.js +1 -0
- package/dist/cloudflare/deno-2KIX5TV5.js +1 -0
- package/dist/cloudflare/gcp-GBGWAZSX.js +1 -0
- package/dist/cloudflare/lambda-6HQKP6G3.js +1 -0
- package/dist/cloudflare/node-BRA7RBP5.js +1 -0
- package/dist/cloudflare/utils-3L6PYJAG.js +1 -0
- package/dist/cloudflare/worker.js +3 -3
- package/dist/cloudrun/RequestUnlimited-DEASSJEC.js +2 -0
- package/dist/cloudrun/bun-MBTNJC4U.js +2 -0
- package/dist/cloudrun/{chunk-JUVTJQ7I.js → chunk-6DRVUVNZ.js} +1 -1
- package/dist/cloudrun/chunk-EV26JQYW.js +2 -0
- package/dist/cloudrun/chunk-GSIUCMVK.js +8 -0
- package/dist/cloudrun/{chunk-FYZPEVAA.js → chunk-JBN5SOGD.js} +1 -1
- package/dist/cloudrun/chunk-MHUQ3MGN.js +24 -0
- package/dist/cloudrun/{chunk-GB4XIPDS.js → chunk-R26GKMTH.js} +1 -1
- package/dist/cloudrun/chunk-XO3TAODL.js +2 -0
- package/dist/cloudrun/cloudflare-5WFHLALX.js +2 -0
- package/dist/cloudrun/deno-7HS4QY7G.js +2 -0
- package/dist/{aws/gcp-ZEEIATV7.mjs → cloudrun/gcp-ODIRVFFY.js} +1 -1
- package/dist/cloudrun/lambda-HR2JPPGG.js +3 -0
- package/dist/cloudrun/node-YIKCMSEO.js +2 -0
- package/dist/cloudrun/server.js +4 -4
- package/dist/cloudrun/utils-TJZDD75X.js +2 -0
- package/package.json +3 -3
- package/dist/aws/RequestUnlimited-EKXQGSQT.mjs +0 -2
- package/dist/aws/bun-GK5CEVAU.mjs +0 -2
- package/dist/aws/chunk-QCE23AKJ.mjs +0 -8
- package/dist/aws/chunk-STPKE4A5.mjs +0 -24
- package/dist/aws/cloudflare-BDB3FS4Y.mjs +0 -2
- package/dist/aws/deno-AIUOFIXG.mjs +0 -2
- package/dist/aws/lambda-S3DVSSBV.mjs +0 -3
- package/dist/aws/node-A7ZN443L.mjs +0 -2
- package/dist/aws/utils-KMHFLZAJ.mjs +0 -2
- package/dist/cloudflare/RequestUnlimited-QCOTVU4G.js +0 -1
- package/dist/cloudflare/bun-O4EJPGLH.js +0 -1
- package/dist/cloudflare/chunk-O3XYZ4KS.js +0 -1
- package/dist/cloudflare/cloudflare-I5A4OJEG.js +0 -1
- package/dist/cloudflare/deno-KE6IVNNU.js +0 -1
- package/dist/cloudflare/gcp-MNKOPDML.js +0 -1
- package/dist/cloudflare/lambda-PLZQW4BF.js +0 -1
- package/dist/cloudflare/node-DRV76TUB.js +0 -1
- package/dist/cloudflare/utils-7K7MHQMD.js +0 -1
- package/dist/cloudrun/RequestUnlimited-YQAPYTOH.js +0 -2
- package/dist/cloudrun/bun-BONNABBU.js +0 -2
- package/dist/cloudrun/chunk-5B5BV7SP.js +0 -8
- package/dist/cloudrun/chunk-CFQMQATE.js +0 -24
- package/dist/cloudrun/cloudflare-Q3ZW7CDF.js +0 -2
- package/dist/cloudrun/deno-CPTVGH3A.js +0 -2
- package/dist/cloudrun/lambda-NKM4QA4M.js +0 -3
- package/dist/cloudrun/node-SKMPZMFE.js +0 -2
- package/dist/cloudrun/utils-SDRX3ZUT.js +0 -2
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{c as E,d as A}from"./chunk-MHUQ3MGN.js";import"./chunk-EV26JQYW.js";import"./chunk-XO3TAODL.js";import"./chunk-JBN5SOGD.js";import{a as H,c as s,e as D,h as i}from"./chunk-5CIUNKHO.js";var O=s(v=>{"use strict";i();Object.defineProperty(v,"__esModule",{value:!0});v.GlobalContextStorageProvider=void 0;var S=Symbol.for("aws.lambda.runtime.context");v.GlobalContextStorageProvider={getContext:()=>global[S],setContext:e=>global[S]=e,updateContext:e=>{let t=v.GlobalContextStorageProvider.getContext();global[S]={...t,...e}}}});var w=s(b=>{"use strict";i();var V=b&&b.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(b,"__esModule",{value:!0});b.formatLevel=void 0;var Y=V(E()),K=e=>{var t;return typeof e=="string"?e.toLocaleUpperCase():typeof e=="number"?(t=Y.default.levels.labels[e])===null||t===void 0?void 0:t.toLocaleUpperCase():e};b.formatLevel=K});var N=s(q=>{"use strict";i();Object.defineProperty(q,"__esModule",{value:!0});q.CloudwatchLogFormatter=void 0;var Q=w(),h=class{format(t){let{awsRequestId:r,level:o,msg:a}=t,f=new Date().toISOString(),_=Q.formatLevel(o);return`${f}${r?` ${r}`:""} ${_} ${a} ${JSON.stringify(t)}`}};q.CloudwatchLogFormatter=h});var $=s(y=>{"use strict";i();Object.defineProperty(y,"__esModule",{value:!0});y.PinoLogFormatter=void 0;var R=class{format(t){return JSON.stringify(t)}};y.PinoLogFormatter=R});var F=s(L=>{"use strict";i();Object.defineProperty(L,"__esModule",{value:!0});L.StructuredLogFormatter=void 0;var k=w(),j=class{format({awsRequestId:t,level:r,...o}){return JSON.stringify({timestamp:new Date().toISOString(),level:k.formatLevel(r),requestId:t,message:o})}};L.StructuredLogFormatter=j});var M=s(d=>{"use strict";i();var ee=d&&d.__createBinding||(Object.create?(function(e,t,r,o){o===void 0&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}):(function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]})),I=d&&d.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ee(t,e,r)};Object.defineProperty(d,"__esModule",{value:!0});I(N(),d);I($(),d);I(F(),d)});var G=s(C=>{"use strict";i();Object.defineProperty(C,"__esModule",{value:!0});C.pinoLambdaDestination=void 0;var te=H("stream"),re=O(),oe=M(),ie=(e={})=>new te.Writable({defaultEncoding:"utf8",write(r,o,a){let f=e.storageProvider||re.GlobalContextStorageProvider,_=e.formatter||new oe.CloudwatchLogFormatter,l=JSON.parse(r),m=f.getContext()||{},g=_.format({...m,...l});g=g.replace(/\n/,"\r"),g+=`
|
|
3
|
+
`,e.streamWriter?e.streamWriter(g):process.stdout.write(g),a()}});C.pinoLambdaDestination=ie});var J=s(P=>{"use strict";i();Object.defineProperty(P,"__esModule",{value:!0});P.lambdaRequestTracker=void 0;var ae=O(),B="_X_AMZN_TRACE_ID",T="x-correlation-",W=`${T}id`,ne=`${T}trace-id`,se=(e={})=>(t,r)=>{var o;let a={awsRequestId:r.awsRequestId},f=(o=t.requestContext)===null||o===void 0?void 0:o.requestId;if(f&&(a.apiRequestId=f),t.headers)for(let[l,m]of Object.entries(t.headers))l.toLowerCase().startsWith(T)&&(a[l]=m);if(process.env[B]&&(a[ne]=process.env[B]),a[W]||(a[W]=r.awsRequestId),e.requestMixin){let l=e.requestMixin(t,r);for(let m in l)a[m]=l[m]}let _=e.storageProvider||ae.GlobalContextStorageProvider;_&&_.setContext(a)};P.lambdaRequestTracker=se});var X=s(U=>{"use strict";i();Object.defineProperty(U,"__esModule",{value:!0})});var Z=s(n=>{"use strict";i();var ue=n&&n.__createBinding||(Object.create?(function(e,t,r,o){o===void 0&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}):(function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]})),p=n&&n.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ue(t,e,r)};Object.defineProperty(n,"__esModule",{value:!0});p(O(),n);p(G(),n);p(M(),n);p(J(),n);p(X(),n)});i();var x=D(E(),1),z=D(Z(),1);function ce(){let e=z.default,t=typeof e=="function"?e:e.default||e.pinoLambda,r;if(typeof t=="function")try{r=t()}catch{console.warn("pino-lambda destination creation failed, using default")}let o=(0,x.default)({level:process.env.LOG_LEVEL||"info",timestamp:x.default.stdTimeFunctions.isoTime,redact:["password","secret","token","authorization"]},r);return new A(o)}export{ce as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as g}from"./chunk-R26GKMTH.js";import"./chunk-ZXZVHMQF.js";import{c as p,d as i}from"./chunk-MHUQ3MGN.js";import"./chunk-EV26JQYW.js";import"./chunk-XO3TAODL.js";import"./chunk-JBN5SOGD.js";import{e as s,h as n}from"./chunk-5CIUNKHO.js";n();var o=s(p(),1),a=s(g(),1);import{Writable as d}from"stream";var f=process.env.LOG_PRETTY==="true"||process.env.NODE_ENV!=="production"&&process.env.LOG_PRETTY!=="false",e=process.env.LOG_LEVEL||"info",m=new d({write(t,v,c){let r=globalThis.__wsLogWrite;r&&r(typeof t=="string"?t:t.toString("utf8")),c()}}),l=o.default.multistream([{level:e,stream:f?(0,a.default)({colorize:!0,translateTime:"SYS:standard",ignore:"pid,hostname"}):process.stdout},{level:e,stream:m}]),u=(0,o.default)({level:e,redact:["password","secret","token","authorization","apiKey"]},l),L=new i(u),S=L;export{S as default};
|