@fileverse-dev/formulajs 4.4.11-mod-89-tally-5 → 4.4.11-mod-93-patch-2
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/lib/cjs/index.cjs
CHANGED
|
@@ -18507,6 +18507,11 @@ async function TALLY() {
|
|
|
18507
18507
|
}
|
|
18508
18508
|
}
|
|
18509
18509
|
|
|
18510
|
+
// export {GNOSISPAY} from './gnosispay/gnosispay.js'
|
|
18511
|
+
|
|
18512
|
+
|
|
18513
|
+
|
|
18514
|
+
|
|
18510
18515
|
async function FLVURL() {
|
|
18511
18516
|
return new Promise((resolve) => {
|
|
18512
18517
|
setTimeout(() => {
|
|
@@ -1,3 +1,138 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
19
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
20
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
21
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
22
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
23
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
24
|
+
mod
|
|
25
|
+
));
|
|
26
|
+
|
|
27
|
+
// node_modules/jwt-decode/lib/atob.js
|
|
28
|
+
var require_atob = __commonJS({
|
|
29
|
+
"node_modules/jwt-decode/lib/atob.js"(exports, module) {
|
|
30
|
+
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
31
|
+
function InvalidCharacterError(message) {
|
|
32
|
+
this.message = message;
|
|
33
|
+
}
|
|
34
|
+
InvalidCharacterError.prototype = new Error();
|
|
35
|
+
InvalidCharacterError.prototype.name = "InvalidCharacterError";
|
|
36
|
+
function polyfill(input) {
|
|
37
|
+
var str = String(input).replace(/=+$/, "");
|
|
38
|
+
if (str.length % 4 == 1) {
|
|
39
|
+
throw new InvalidCharacterError("'atob' failed: The string to be decoded is not correctly encoded.");
|
|
40
|
+
}
|
|
41
|
+
for (
|
|
42
|
+
var bc = 0, bs, buffer, idx = 0, output = "";
|
|
43
|
+
// get next character
|
|
44
|
+
buffer = str.charAt(idx++);
|
|
45
|
+
// character found in table? initialize bit storage and add its ascii value;
|
|
46
|
+
~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer, // and if not first of each 4 characters,
|
|
47
|
+
// convert the first 8 bits to one ascii character
|
|
48
|
+
bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0
|
|
49
|
+
) {
|
|
50
|
+
buffer = chars.indexOf(buffer);
|
|
51
|
+
}
|
|
52
|
+
return output;
|
|
53
|
+
}
|
|
54
|
+
module.exports = typeof window !== "undefined" && window.atob && window.atob.bind(window) || polyfill;
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
// node_modules/jwt-decode/lib/base64_url_decode.js
|
|
59
|
+
var require_base64_url_decode = __commonJS({
|
|
60
|
+
"node_modules/jwt-decode/lib/base64_url_decode.js"(exports, module) {
|
|
61
|
+
var atob = require_atob();
|
|
62
|
+
function b64DecodeUnicode(str) {
|
|
63
|
+
return decodeURIComponent(atob(str).replace(/(.)/g, function(m, p) {
|
|
64
|
+
var code = p.charCodeAt(0).toString(16).toUpperCase();
|
|
65
|
+
if (code.length < 2) {
|
|
66
|
+
code = "0" + code;
|
|
67
|
+
}
|
|
68
|
+
return "%" + code;
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
71
|
+
module.exports = function(str) {
|
|
72
|
+
var output = str.replace(/-/g, "+").replace(/_/g, "/");
|
|
73
|
+
switch (output.length % 4) {
|
|
74
|
+
case 0:
|
|
75
|
+
break;
|
|
76
|
+
case 2:
|
|
77
|
+
output += "==";
|
|
78
|
+
break;
|
|
79
|
+
case 3:
|
|
80
|
+
output += "=";
|
|
81
|
+
break;
|
|
82
|
+
default:
|
|
83
|
+
throw "Illegal base64url string!";
|
|
84
|
+
}
|
|
85
|
+
try {
|
|
86
|
+
return b64DecodeUnicode(output);
|
|
87
|
+
} catch (err) {
|
|
88
|
+
return atob(output);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
// node_modules/jwt-decode/lib/index.js
|
|
95
|
+
var require_lib = __commonJS({
|
|
96
|
+
"node_modules/jwt-decode/lib/index.js"(exports, module) {
|
|
97
|
+
"use strict";
|
|
98
|
+
var base64_url_decode = require_base64_url_decode();
|
|
99
|
+
function InvalidTokenError(message) {
|
|
100
|
+
this.message = message;
|
|
101
|
+
}
|
|
102
|
+
InvalidTokenError.prototype = new Error();
|
|
103
|
+
InvalidTokenError.prototype.name = "InvalidTokenError";
|
|
104
|
+
module.exports = function(token, options) {
|
|
105
|
+
if (typeof token !== "string") {
|
|
106
|
+
throw new InvalidTokenError("Invalid token specified");
|
|
107
|
+
}
|
|
108
|
+
options = options || {};
|
|
109
|
+
var pos = options.header === true ? 0 : 1;
|
|
110
|
+
try {
|
|
111
|
+
return JSON.parse(base64_url_decode(token.split(".")[pos]));
|
|
112
|
+
} catch (e) {
|
|
113
|
+
throw new InvalidTokenError("Invalid token specified: " + e.message);
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
module.exports.InvalidTokenError = InvalidTokenError;
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
// node_modules/jwt-check-expiration/src/index.js
|
|
121
|
+
var require_src = __commonJS({
|
|
122
|
+
"node_modules/jwt-check-expiration/src/index.js"(exports, module) {
|
|
123
|
+
var jwtDecode = require_lib();
|
|
124
|
+
var isJwtExpired2 = (token) => {
|
|
125
|
+
if (typeof token !== "string" || !token) throw new Error("Invalid token provided");
|
|
126
|
+
let isJwtExpired3 = false;
|
|
127
|
+
const { exp } = jwtDecode(token);
|
|
128
|
+
const currentTime = (/* @__PURE__ */ new Date()).getTime() / 1e3;
|
|
129
|
+
if (currentTime > exp) isJwtExpired3 = true;
|
|
130
|
+
return isJwtExpired3;
|
|
131
|
+
};
|
|
132
|
+
module.exports.isJwtExpired = isJwtExpired2;
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
|
|
1
136
|
// src/utils/constants.js
|
|
2
137
|
var CHAIN_ID_MAP = {
|
|
3
138
|
ethereum: 1,
|
|
@@ -719,19 +854,19 @@ var TALLY_metadata = {
|
|
|
719
854
|
BRAND_SECONDARY_COLOR: "#725bff",
|
|
720
855
|
n: "TALLY",
|
|
721
856
|
t: 20,
|
|
722
|
-
d: "Query
|
|
723
|
-
a: "Query
|
|
857
|
+
d: "Query data from Tally",
|
|
858
|
+
a: "Query data from Tally",
|
|
724
859
|
p: [
|
|
725
860
|
{
|
|
726
861
|
name: "query",
|
|
727
|
-
detail: "
|
|
862
|
+
detail: "The type of Tally query you want to execute (e.g organisation).",
|
|
728
863
|
example: `"organisation"`,
|
|
729
864
|
require: "m",
|
|
730
865
|
type: "string"
|
|
731
866
|
},
|
|
732
867
|
{
|
|
733
868
|
name: "input1",
|
|
734
|
-
detail: "Query input",
|
|
869
|
+
detail: "Query input (e.g organisation slug)",
|
|
735
870
|
example: `"arbitrum"`,
|
|
736
871
|
require: "m",
|
|
737
872
|
type: "string"
|
|
@@ -758,6 +893,7 @@ var FUNCTION_LOCALE = [
|
|
|
758
893
|
Neynar_metadata,
|
|
759
894
|
SMARTCONTRACT_metadata,
|
|
760
895
|
TALLY_metadata,
|
|
896
|
+
// GNOSISPAY_metadata,
|
|
761
897
|
{
|
|
762
898
|
LOGO: "https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/ploymarket.png",
|
|
763
899
|
n: "POLYMARKET",
|
|
@@ -807,6 +943,12 @@ var FUNCTION_LOCALE = [
|
|
|
807
943
|
p: []
|
|
808
944
|
}
|
|
809
945
|
];
|
|
946
|
+
|
|
947
|
+
// src/crypto/gnosispay/gnosispay.js
|
|
948
|
+
var import_jwt_check_expiration = __toESM(require_src(), 1);
|
|
949
|
+
function isExpired(access) {
|
|
950
|
+
return (0, import_jwt_check_expiration.isJwtExpired)(access);
|
|
951
|
+
}
|
|
810
952
|
export {
|
|
811
953
|
BLOCKSCOUT_CHAINS_MAP,
|
|
812
954
|
CHAIN_ID_MAP,
|
|
@@ -815,5 +957,6 @@ export {
|
|
|
815
957
|
MAX_PAGE_LIMIT,
|
|
816
958
|
SAFE_CHAIN_MAP,
|
|
817
959
|
SERVICES_API_KEY,
|
|
818
|
-
UTILITY
|
|
960
|
+
UTILITY,
|
|
961
|
+
isExpired as isGnosisPayAccessExpired
|
|
819
962
|
};
|
package/lib/esm/index.mjs
CHANGED
|
@@ -18505,6 +18505,11 @@ async function TALLY() {
|
|
|
18505
18505
|
}
|
|
18506
18506
|
}
|
|
18507
18507
|
|
|
18508
|
+
// export {GNOSISPAY} from './gnosispay/gnosispay.js'
|
|
18509
|
+
|
|
18510
|
+
|
|
18511
|
+
|
|
18512
|
+
|
|
18508
18513
|
async function FLVURL() {
|
|
18509
18514
|
return new Promise((resolve) => {
|
|
18510
18515
|
setTimeout(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/formulajs",
|
|
3
|
-
"version": "4.4.11-mod-
|
|
3
|
+
"version": "4.4.11-mod-93-patch-2",
|
|
4
4
|
"description": "JavaScript implementation of most Microsoft Excel formula functions",
|
|
5
5
|
"author": "Formulajs",
|
|
6
6
|
"publishConfig": {
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"esbuild": "^0.25.4",
|
|
66
66
|
"js-sha3": "^0.9.3",
|
|
67
67
|
"jstat": "^1.9.6",
|
|
68
|
+
"jwt-check-expiration": "^1.0.5",
|
|
68
69
|
"zod": "^3.25.71"
|
|
69
70
|
},
|
|
70
71
|
"devDependencies": {
|