@frogbotai/piece-qrcode 0.38.0 → 0.40.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/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -23,7 +23,7 @@ const createQrCodeAction = defineAction({
|
|
|
23
23
|
input: inputSchema,
|
|
24
24
|
output: outputSchema,
|
|
25
25
|
idempotent: false,
|
|
26
|
-
async run ({ input, req }) {
|
|
26
|
+
async run ({ input, req, overrideAccess }) {
|
|
27
27
|
filesCollectionSlug(req, 'QR Code');
|
|
28
28
|
req.signal?.throwIfAborted();
|
|
29
29
|
const data = await toBuffer(input.text);
|
|
@@ -38,7 +38,7 @@ const createQrCodeAction = defineAction({
|
|
|
38
38
|
size: data.length
|
|
39
39
|
},
|
|
40
40
|
req,
|
|
41
|
-
overrideAccess
|
|
41
|
+
overrideAccess
|
|
42
42
|
});
|
|
43
43
|
return {
|
|
44
44
|
id: file.id,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":["createPieceFile","definePiece","filesCollectionSlug","toBuffer","z","defineAction","inputSchema","object","text","string","min","meta","label","outputSchema","id","union","number","name","literal","mimeType","size","int","positive","url","optional","createQrCodeAction","slug","description","input","output","idempotent","run","req","signal","throwIfAborted","data","file","mimetype","length","
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":["createPieceFile","definePiece","filesCollectionSlug","toBuffer","z","defineAction","inputSchema","object","text","string","min","meta","label","outputSchema","id","union","number","name","literal","mimeType","size","int","positive","url","optional","createQrCodeAction","slug","description","input","output","idempotent","run","req","overrideAccess","signal","throwIfAborted","data","file","mimetype","length","undefined","createQrCode","admin","group","actions"],"mappings":"AAAA,SAASA,eAAe,EAAEC,WAAW,EAAEC,mBAAmB,QAAQ,iBAAiB;AACnF,SAASC,QAAQ,QAAQ,SAAS;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M;IACNd,OAAO;IACP8B,OAAO;QACLf,aAAa;QACbgB,OAAO;IACT;IACAC,SAAS;QAACnB;KAAmB;AAC/B,GAAG","file":"index.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frogbotai/piece-qrcode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0",
|
|
4
4
|
"description": "qrcode tools for FrogBot.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Colby Gilbert",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"zod": "^4.3.6"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"frogbot": "0.
|
|
26
|
+
"frogbot": "0.40.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/qrcode": "1.5.5",
|
|
30
30
|
"typescript": "6.0.3",
|
|
31
|
-
"frogbot": "0.
|
|
31
|
+
"frogbot": "0.40.0"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|