@openc3/js-common 6.7.0 → 6.8.1
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/services.cjs +13 -13
- package/dist/services.cjs.map +1 -1
- package/dist/services.js +1054 -1009
- package/dist/services.js.map +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.js +9 -4
- package/dist/utils.js.map +1 -1
- package/package.json +7 -7
package/dist/utils.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=function(t){var o;!t.name!=="NotFound"&&(t.path=`${__BASE_URL__}/${t.path.replace(/^\//,"")}`),(o=t.children)==null||o.forEach(e)},r=function(t){if(t===0)return"0 B";const o=["B","KB","MB","GB","TB"],n=1e3,a=Math.floor(Math.log(t)/Math.log(n));return parseFloat((t/Math.pow(n,a)).toFixed(2))+" "+o[a]};exports.formatBytesToString=r;exports.prependBasePath=e;
|
|
2
2
|
//# sourceMappingURL=utils.cjs.map
|
package/dist/utils.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.cjs","sources":["../src/utils/routeUtils.js"],"sourcesContent":["/*\n# Copyright 2024, OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nconst prependBasePath = function (route) {\n if (!route.name !== 'NotFound') {\n route.path = `${__BASE_URL__}/${route.path.replace(/^\\//, '')}`\n }\n route.children?.forEach(prependBasePath)\n}\n\nexport { prependBasePath }\n"],"names":["prependBasePath","route","_a"],"mappings":"gFAkBK,MAACA,EAAkB,SAAUC,EAAO,OACnC,CAACA,EAAM,OAAS,aAClBA,EAAM,KAAO,GAAG,YAAY,IAAIA,EAAM,KAAK,QAAQ,MAAO,EAAE,CAAC,KAE/DC,EAAAD,EAAM,WAAN,MAAAC,EAAgB,QAAQF,EAC1B"}
|
|
1
|
+
{"version":3,"file":"utils.cjs","sources":["../src/utils/routeUtils.js","../src/utils/formatter.js"],"sourcesContent":["/*\n# Copyright 2024, OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nconst prependBasePath = function (route) {\n if (!route.name !== 'NotFound') {\n route.path = `${__BASE_URL__}/${route.path.replace(/^\\//, '')}`\n }\n route.children?.forEach(prependBasePath)\n}\n\nexport { prependBasePath }\n","/*\n# Copyright 2025, OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nconst formatBytesToString = function(bytes) {\n if (bytes === 0) return '0 B'\n \n const sizes = ['B', 'KB', 'MB', 'GB', 'TB']\n const k = 1000\n const i = Math.floor(Math.log(bytes) / Math.log(k))\n \n return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i]\n}\n\nexport { formatBytesToString }"],"names":["prependBasePath","route","_a","formatBytesToString","bytes","sizes","k","i"],"mappings":"gFAkBK,MAACA,EAAkB,SAAUC,EAAO,OACnC,CAACA,EAAM,OAAS,aAClBA,EAAM,KAAO,GAAG,YAAY,IAAIA,EAAM,KAAK,QAAQ,MAAO,EAAE,CAAC,KAE/DC,EAAAD,EAAM,WAAN,MAAAC,EAAgB,QAAQF,EAC1B,ECLMG,EAAsB,SAASC,EAAO,CAC1C,GAAIA,IAAU,EAAG,MAAO,MAExB,MAAMC,EAAQ,CAAC,IAAK,KAAM,KAAM,KAAM,IAAI,EACpCC,EAAI,IACJC,EAAI,KAAK,MAAM,KAAK,IAAIH,CAAK,EAAI,KAAK,IAAIE,CAAC,CAAC,EAElD,OAAO,YAAYF,EAAQ,KAAK,IAAIE,EAAGC,CAAC,GAAG,QAAQ,CAAC,CAAC,EAAI,IAAMF,EAAME,CAAC,CACxE"}
|
package/dist/utils.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
const
|
|
2
|
-
var
|
|
3
|
-
!
|
|
1
|
+
const c = function(t) {
|
|
2
|
+
var o;
|
|
3
|
+
!t.name !== "NotFound" && (t.path = `${__BASE_URL__}/${t.path.replace(/^\//, "")}`), (o = t.children) == null || o.forEach(c);
|
|
4
|
+
}, r = function(t) {
|
|
5
|
+
if (t === 0) return "0 B";
|
|
6
|
+
const o = ["B", "KB", "MB", "GB", "TB"], n = 1e3, a = Math.floor(Math.log(t) / Math.log(n));
|
|
7
|
+
return parseFloat((t / Math.pow(n, a)).toFixed(2)) + " " + o[a];
|
|
4
8
|
};
|
|
5
9
|
export {
|
|
6
|
-
|
|
10
|
+
r as formatBytesToString,
|
|
11
|
+
c as prependBasePath
|
|
7
12
|
};
|
|
8
13
|
//# sourceMappingURL=utils.js.map
|
package/dist/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../src/utils/routeUtils.js"],"sourcesContent":["/*\n# Copyright 2024, OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nconst prependBasePath = function (route) {\n if (!route.name !== 'NotFound') {\n route.path = `${__BASE_URL__}/${route.path.replace(/^\\//, '')}`\n }\n route.children?.forEach(prependBasePath)\n}\n\nexport { prependBasePath }\n"],"names":["prependBasePath","route","_a"],"mappings":"AAkBK,MAACA,IAAkB,SAAUC,GAAO;AAlBzC,MAAAC;AAmBE,EAAI,CAACD,EAAM,SAAS,eAClBA,EAAM,OAAO,GAAG,YAAY,IAAIA,EAAM,KAAK,QAAQ,OAAO,EAAE,CAAC,MAE/DC,IAAAD,EAAM,aAAN,QAAAC,EAAgB,QAAQF;AAC1B;"}
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../src/utils/routeUtils.js","../src/utils/formatter.js"],"sourcesContent":["/*\n# Copyright 2024, OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nconst prependBasePath = function (route) {\n if (!route.name !== 'NotFound') {\n route.path = `${__BASE_URL__}/${route.path.replace(/^\\//, '')}`\n }\n route.children?.forEach(prependBasePath)\n}\n\nexport { prependBasePath }\n","/*\n# Copyright 2025, OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nconst formatBytesToString = function(bytes) {\n if (bytes === 0) return '0 B'\n \n const sizes = ['B', 'KB', 'MB', 'GB', 'TB']\n const k = 1000\n const i = Math.floor(Math.log(bytes) / Math.log(k))\n \n return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i]\n}\n\nexport { formatBytesToString }"],"names":["prependBasePath","route","_a","formatBytesToString","bytes","sizes","k","i"],"mappings":"AAkBK,MAACA,IAAkB,SAAUC,GAAO;AAlBzC,MAAAC;AAmBE,EAAI,CAACD,EAAM,SAAS,eAClBA,EAAM,OAAO,GAAG,YAAY,IAAIA,EAAM,KAAK,QAAQ,OAAO,EAAE,CAAC,MAE/DC,IAAAD,EAAM,aAAN,QAAAC,EAAgB,QAAQF;AAC1B,GCLMG,IAAsB,SAASC,GAAO;AAC1C,MAAIA,MAAU,EAAG,QAAO;AAExB,QAAMC,IAAQ,CAAC,KAAK,MAAM,MAAM,MAAM,IAAI,GACpCC,IAAI,KACJC,IAAI,KAAK,MAAM,KAAK,IAAIH,CAAK,IAAI,KAAK,IAAIE,CAAC,CAAC;AAElD,SAAO,YAAYF,IAAQ,KAAK,IAAIE,GAAGC,CAAC,GAAG,QAAQ,CAAC,CAAC,IAAI,MAAMF,EAAME,CAAC;AACxE;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openc3/js-common",
|
|
3
3
|
"description": "Common library for COSMOS tool development",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.8.1",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"homepage": "https://openc3.com",
|
|
7
7
|
"repository": {
|
|
@@ -43,23 +43,23 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@anycable/web": "1.1.0",
|
|
45
45
|
"@astrouxds/astro-web-components": "7.26.1",
|
|
46
|
-
"axios": "1.
|
|
46
|
+
"axios": "1.12.0",
|
|
47
47
|
"binary-search": "1.3.6",
|
|
48
48
|
"date-fns": "4.1.0",
|
|
49
49
|
"date-fns-tz": "3.2.0",
|
|
50
50
|
"lodash": "4.17.21",
|
|
51
|
-
"lossless-json": "4.
|
|
52
|
-
"sass": "1.
|
|
51
|
+
"lossless-json": "4.2.0",
|
|
52
|
+
"sass": "1.92.0",
|
|
53
53
|
"sortablejs": "1.15.6",
|
|
54
54
|
"sprintf-js": "1.1.3",
|
|
55
55
|
"uplot": "1.6.32"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"eslint": "9.
|
|
58
|
+
"eslint": "9.34.0",
|
|
59
59
|
"eslint-config-prettier": "10.1.8",
|
|
60
|
-
"eslint-plugin-prettier": "5.5.
|
|
60
|
+
"eslint-plugin-prettier": "5.5.4",
|
|
61
61
|
"eslint-plugin-vue": "10.4.0",
|
|
62
62
|
"prettier": "3.6.2",
|
|
63
|
-
"vite": "6.3.
|
|
63
|
+
"vite": "6.3.6"
|
|
64
64
|
}
|
|
65
65
|
}
|