@celljs/ta-secrets 4.22.0 → 4.23.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/extension/index.mjs +5 -0
- package/package.json +3 -3
package/extension/index.mjs
CHANGED
|
@@ -374,6 +374,11 @@ var TaImageNote;
|
|
|
374
374
|
var TaImageSize;
|
|
375
375
|
(function(TaImageSize2) {
|
|
376
376
|
const JPEG_BYTES = 256 * 1024;
|
|
377
|
+
function type(bytes) {
|
|
378
|
+
const at = (offset, ...values) => values.every((value, index) => bytes[offset + index] === value);
|
|
379
|
+
return at(0, 255, 216, 255) ? "image/jpeg" : at(0, 137, 80, 78, 71) ? "image/png" : at(0, 71, 73, 70, 56) ? "image/gif" : at(0, 82, 73, 70, 70) && at(8, 87, 69, 66, 80) ? "image/webp" : undefined;
|
|
380
|
+
}
|
|
381
|
+
TaImageSize2.type = type;
|
|
377
382
|
function of(base64) {
|
|
378
383
|
var _a, _b, _c;
|
|
379
384
|
let bytes;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-secrets",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.23.0",
|
|
4
4
|
"description": "A pi package for Ta: a vault of secrets kept in the keychain, which Ta uses in commands by name without the model ever seeing them",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@celljs/ta-protocol": "4.
|
|
31
|
-
"@celljs/ta-web": "4.
|
|
30
|
+
"@celljs/ta-protocol": "4.23.0",
|
|
31
|
+
"@celljs/ta-web": "4.23.0",
|
|
32
32
|
"@types/react": "^19.3.0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|