@openc3/js-common 6.10.4 → 7.0.0-rc3

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/utils.cjs CHANGED
@@ -1,2 +1,2 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=function(t){!t.name!=="NotFound"&&(t.path=`${__BASE_URL__}/${t.path.replace(/^\//,"")}`),t.children?.forEach(a)},r=function(t){if(t===0)return"0 B";const e=["B","KB","MB","GB","TB"],o=1e3,n=Math.floor(Math.log(t)/Math.log(o));return parseFloat((t/Math.pow(o,n)).toFixed(2))+" "+e[n]};exports.formatBytesToString=r;exports.prependBasePath=a;
2
2
  //# sourceMappingURL=utils.cjs.map
@@ -1 +1 @@
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 }\n"],"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,SAAUC,EAAO,CAC3C,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"}
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 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.\n# See LICENSE.md 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 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.\n# See LICENSE.md 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 }\n"],"names":["prependBasePath","route","formatBytesToString","bytes","sizes","k","i"],"mappings":"gFAaK,MAACA,EAAkB,SAAUC,EAAO,CACnC,CAACA,EAAM,OAAS,aAClBA,EAAM,KAAO,GAAG,YAAY,IAAIA,EAAM,KAAK,QAAQ,MAAO,EAAE,CAAC,IAE/DA,EAAM,UAAU,QAAQD,CAAe,CACzC,ECLME,EAAsB,SAAUC,EAAO,CAC3C,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,10 +1,9 @@
1
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);
2
+ !t.name !== "NotFound" && (t.path = `${__BASE_URL__}/${t.path.replace(/^\//, "")}`), t.children?.forEach(c);
4
3
  }, r = function(t) {
5
4
  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];
5
+ const a = ["B", "KB", "MB", "GB", "TB"], o = 1e3, n = Math.floor(Math.log(t) / Math.log(o));
6
+ return parseFloat((t / Math.pow(o, n)).toFixed(2)) + " " + a[n];
8
7
  };
9
8
  export {
10
9
  r as formatBytesToString,
package/dist/utils.js.map CHANGED
@@ -1 +1 @@
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 }\n"],"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,SAAUC,GAAO;AAC3C,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;"}
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 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.\n# See LICENSE.md 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 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.\n# See LICENSE.md 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 }\n"],"names":["prependBasePath","route","formatBytesToString","bytes","sizes","k","i"],"mappings":"AAaK,MAACA,IAAkB,SAAUC,GAAO;AACvC,EAAI,CAACA,EAAM,SAAS,eAClBA,EAAM,OAAO,GAAG,YAAY,IAAIA,EAAM,KAAK,QAAQ,OAAO,EAAE,CAAC,KAE/DA,EAAM,UAAU,QAAQD,CAAe;AACzC,GCLME,IAAsB,SAAUC,GAAO;AAC3C,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,8 +1,8 @@
1
1
  {
2
2
  "name": "@openc3/js-common",
3
3
  "description": "Common library for COSMOS tool development",
4
- "version": "6.10.4",
5
- "license": "SEE LICENSE IN LICENSE.txt",
4
+ "version": "7.0.0-rc3",
5
+ "license": "SEE LICENSE IN LICENSE.md",
6
6
  "homepage": "https://openc3.com",
7
7
  "repository": {
8
8
  "type": "git",
@@ -35,22 +35,22 @@
35
35
  }
36
36
  },
37
37
  "dependencies": {
38
- "@anycable/web": "1.1.0",
38
+ "@anycable/web": "1.1.1",
39
39
  "@astrouxds/astro-web-components": "7.27.0",
40
- "axios": "1.13.2",
40
+ "axios": "1.13.6",
41
41
  "binary-search": "1.3.6",
42
42
  "date-fns": "4.1.0",
43
43
  "date-fns-tz": "3.2.0",
44
- "lodash": "4.17.21",
44
+ "lodash": "4.17.23",
45
45
  "lossless-json": "4.3.0",
46
- "sass": "1.97.1",
47
- "sortablejs": "1.15.6",
46
+ "sass": "1.97.3",
47
+ "sortablejs": "1.15.7",
48
48
  "sprintf-js": "1.1.3",
49
49
  "uplot": "1.6.32"
50
50
  },
51
51
  "devDependencies": {
52
- "prettier": "3.7.4",
53
- "vite": "6.4.1"
52
+ "prettier": "3.8.1",
53
+ "vite": "7.3.1"
54
54
  },
55
55
  "scripts": {
56
56
  "serve": "vite build --watch --mode dev-server",
@@ -2,15 +2,10 @@
2
2
  # Copyright 2024, OpenC3, Inc.
3
3
  # All Rights Reserved.
4
4
  #
5
- # This program is free software; you can modify and/or redistribute it
6
- # under the terms of the GNU Affero General Public License
7
- # as published by the Free Software Foundation; version 3 with
8
- # attribution addendums as found in the LICENSE.txt
9
- #
10
5
  # This program is distributed in the hope that it will be useful,
11
6
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- # GNU Affero General Public License for more details.
7
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
8
+ # See LICENSE.md for more details.
14
9
  #
15
10
  # This file may also be used under the terms of a commercial license
16
11
  # if purchased from OpenC3, Inc.