@eventvisor/module-timestamp 0.7.0 → 0.9.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/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.9.0](https://github.com/eventvisor/eventvisor/compare/v0.8.0...v0.9.0) (2025-11-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * New Relic Browser module ([#26](https://github.com/eventvisor/eventvisor/issues/26)) ([d6ad9ed](https://github.com/eventvisor/eventvisor/commit/d6ad9edd4fd895f48070fffad4ac3f8967671229))
12
+
13
+
14
+
15
+
16
+
17
+ # [0.8.0](https://github.com/eventvisor/eventvisor/compare/v0.7.0...v0.8.0) (2025-10-28)
18
+
19
+ **Note:** Version bump only for package @eventvisor/module-timestamp
20
+
21
+
22
+
23
+
24
+
6
25
  # [0.7.0](https://github.com/eventvisor/eventvisor/compare/v0.6.0...v0.7.0) (2025-10-19)
7
26
 
8
27
  **Note:** Version bump only for package @eventvisor/module-timestamp
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Module } from "@eventvisor/sdk";
1
+ import type { Module } from "@eventvisor/sdk";
2
2
  export type TimestampModuleOptions = {
3
3
  name?: string;
4
4
  };
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAmC,0BAAID,IAEvCD,EAAgC,0BAAIC,GACrC,CATD,CASGK,KAAM,I,uBCNLC,EAAsB,CAAC,E,k/CCG3B,SAAgBC,EAAiBC,QAAA,IAAAA,IAAAA,EAAA,IAAQC,MACvC,IAAMC,EAAM,SAACC,EAAGC,GAAY,YAAZ,IAAAA,IAAAA,EAAA,GAAYC,OAAOF,GAAGG,SAASF,EAAK,IAAxB,EACtBG,GAAUP,EAAEQ,oBACZC,EAAOF,GAAU,EAAI,IAAM,IAC3BG,EAAKR,EAAIS,KAAKC,MAAMD,KAAKE,IAAIN,GAAU,KACvCO,EAAKZ,EAAIS,KAAKE,IAAIN,GAAU,IAElC,MACE,UAAGP,EAAEe,cAAa,YAAIb,EAAIF,EAAEgB,WAAa,GAAE,YAAId,EAAIF,EAAEiB,YACrD,WAAIf,EAAIF,EAAEkB,YAAW,YAAIhB,EAAIF,EAAEmB,cAAa,YAAIjB,EAAIF,EAAEoB,eACtD,WAAIlB,EAAIF,EAAEqB,kBAAmB,IAAE,OAAGZ,GAAI,OAAGC,EAAE,YAAII,EAEnD,C,iDAZA,qBAcA,iCAAsCQ,GAAtC,gBAAsC,IAAAA,IAAAA,EAAA,IAC5B,MAAuBA,EAAO,KAEtC,MAAO,CACLC,UAHU,IAAG,cAAW,EAKxBC,OAAQ,2CAAO,G,IAAEC,EAAG,M,0BAClB,GAAIA,EAAK,CACP,GAAY,UAARA,EAEF,MAAO,CAAP,EAAOd,KAAKC,MAAMX,KAAKyB,MAAQ,MAGjC,GAAY,aAARD,EAEF,MAAO,CAAP,EAAOxB,KAAKyB,MAEhB,CAGA,MAAO,CAAP,EAAO3B,I,MAGb,C,GDvCoB,KAAK,EAAGD,G","sources":["webpack://EventvisorTimestampModule/webpack/universalModuleDefinition","webpack://EventvisorTimestampModule/webpack/startup","webpack://EventvisorTimestampModule/./src/index.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"EventvisorTimestampModule\"] = factory();\n\telse\n\t\troot[\"EventvisorTimestampModule\"] = factory();\n})(this, () => {\nreturn ","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = {};\n__webpack_modules__[166](0, __webpack_exports__);\n","import { Module } from \"@eventvisor/sdk\";\n\nexport type TimestampModuleOptions = {\n name?: string;\n};\n\nexport function toLocalIsoOffset(d = new Date()) {\n const pad = (n, len = 2) => String(n).padStart(len, \"0\");\n const offMin = -d.getTimezoneOffset();\n const sign = offMin >= 0 ? \"+\" : \"-\";\n const hh = pad(Math.floor(Math.abs(offMin) / 60));\n const mm = pad(Math.abs(offMin) % 60);\n\n return (\n `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}` +\n `T${pad(d.getHours())}:${pad(d.getMinutes())}:${pad(d.getSeconds())}` +\n `.${pad(d.getMilliseconds(), 3)}${sign}${hh}:${mm}`\n );\n}\n\nexport function createTimestampModule(options: TimestampModuleOptions = {}): Module {\n const { name = \"timestamp\" } = options;\n\n return {\n name,\n\n lookup: async ({ key }) => {\n if (key) {\n if (key === \"epoch\") {\n // seconds\n return Math.floor(Date.now() / 1000);\n }\n\n if (key === \"epoch_ms\") {\n // milliseconds\n return Date.now();\n }\n }\n\n // iso 8601 with offset\n return toLocalIsoOffset();\n },\n };\n}\n"],"names":["root","factory","exports","module","define","amd","this","__webpack_exports__","toLocalIsoOffset","d","Date","pad","n","len","String","padStart","offMin","getTimezoneOffset","sign","hh","Math","floor","abs","mm","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","getMilliseconds","options","name","lookup","key","now"],"sourceRoot":""}
1
+ {"version":3,"file":"index.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAmC,0BAAID,IAEvCD,EAAgC,0BAAIC,GACrC,CATD,CASGK,KAAM,I,uBCNLC,EAAsB,CAAC,E,k/CCG3B,SAAgBC,EAAiBC,QAAA,IAAAA,IAAAA,EAAA,IAAQC,MACvC,IAAMC,EAAM,SAACC,EAAGC,GAAY,YAAZ,IAAAA,IAAAA,EAAA,GAAYC,OAAOF,GAAGG,SAASF,EAAK,IAAxB,EACtBG,GAAUP,EAAEQ,oBACZC,EAAOF,GAAU,EAAI,IAAM,IAC3BG,EAAKR,EAAIS,KAAKC,MAAMD,KAAKE,IAAIN,GAAU,KACvCO,EAAKZ,EAAIS,KAAKE,IAAIN,GAAU,IAElC,MACE,UAAGP,EAAEe,cAAa,YAAIb,EAAIF,EAAEgB,WAAa,GAAE,YAAId,EAAIF,EAAEiB,YACrD,WAAIf,EAAIF,EAAEkB,YAAW,YAAIhB,EAAIF,EAAEmB,cAAa,YAAIjB,EAAIF,EAAEoB,eACtD,WAAIlB,EAAIF,EAAEqB,kBAAmB,IAAE,OAAGZ,GAAI,OAAGC,EAAE,YAAII,EAEnD,C,iDAZA,qBAcA,iCAAsCQ,GAAtC,gBAAsC,IAAAA,IAAAA,EAAA,IAC5B,MAAuBA,EAAO,KAEtC,MAAO,CACLC,UAHU,IAAG,cAAW,EAKxBC,OAAQ,2CAAO,G,IAAEC,EAAG,M,0BAClB,GAAIA,EAAK,CACP,GAAY,UAARA,EAEF,MAAO,CAAP,EAAOd,KAAKC,MAAMX,KAAKyB,MAAQ,MAGjC,GAAY,aAARD,EAEF,MAAO,CAAP,EAAOxB,KAAKyB,MAEhB,CAGA,MAAO,CAAP,EAAO3B,I,MAGb,C,GDvCoB,KAAK,EAAGD,G","sources":["webpack://EventvisorTimestampModule/webpack/universalModuleDefinition","webpack://EventvisorTimestampModule/webpack/startup","webpack://EventvisorTimestampModule/./src/index.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"EventvisorTimestampModule\"] = factory();\n\telse\n\t\troot[\"EventvisorTimestampModule\"] = factory();\n})(this, () => {\nreturn ","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = {};\n__webpack_modules__[166](0, __webpack_exports__);\n","import type { Module } from \"@eventvisor/sdk\";\n\nexport type TimestampModuleOptions = {\n name?: string;\n};\n\nexport function toLocalIsoOffset(d = new Date()) {\n const pad = (n, len = 2) => String(n).padStart(len, \"0\");\n const offMin = -d.getTimezoneOffset();\n const sign = offMin >= 0 ? \"+\" : \"-\";\n const hh = pad(Math.floor(Math.abs(offMin) / 60));\n const mm = pad(Math.abs(offMin) % 60);\n\n return (\n `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}` +\n `T${pad(d.getHours())}:${pad(d.getMinutes())}:${pad(d.getSeconds())}` +\n `.${pad(d.getMilliseconds(), 3)}${sign}${hh}:${mm}`\n );\n}\n\nexport function createTimestampModule(options: TimestampModuleOptions = {}): Module {\n const { name = \"timestamp\" } = options;\n\n return {\n name,\n\n lookup: async ({ key }) => {\n if (key) {\n if (key === \"epoch\") {\n // seconds\n return Math.floor(Date.now() / 1000);\n }\n\n if (key === \"epoch_ms\") {\n // milliseconds\n return Date.now();\n }\n }\n\n // iso 8601 with offset\n return toLocalIsoOffset();\n },\n };\n}\n"],"names":["root","factory","exports","module","define","amd","this","__webpack_exports__","toLocalIsoOffset","d","Date","pad","n","len","String","padStart","offMin","getTimezoneOffset","sign","hh","Math","floor","abs","mm","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","getMilliseconds","options","name","lookup","key","now"],"sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","mappings":"AACA,IAAIA,EAAsB,CCA1BA,EAAwB,CAACC,EAASC,KACjC,IAAI,IAAIC,KAAOD,EACXF,EAAoBI,EAAEF,EAAYC,KAASH,EAAoBI,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,MCJ3EH,EAAwB,CAACS,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,I,oUCM3E,SAASI,EAAiBC,EAAI,IAAIC,MACvC,MAAMC,EAAM,CAACC,EAAGC,EAAM,IAAMC,OAAOF,GAAGG,SAASF,EAAK,KAC9CG,GAAUP,EAAEQ,oBACZC,EAAOF,GAAU,EAAI,IAAM,IAC3BG,EAAKR,EAAIS,KAAKC,MAAMD,KAAKE,IAAIN,GAAU,KACvCO,EAAKZ,EAAIS,KAAKE,IAAIN,GAAU,IAElC,MACE,GAAGP,EAAEe,iBAAiBb,EAAIF,EAAEgB,WAAa,MAAMd,EAAIF,EAAEiB,cACjDf,EAAIF,EAAEkB,eAAehB,EAAIF,EAAEmB,iBAAiBjB,EAAIF,EAAEoB,iBAClDlB,EAAIF,EAAEqB,kBAAmB,KAAKZ,IAAOC,KAAMI,GAEnD,CAEO,SAASQ,EAAsBC,EAAkC,CAAC,GACvE,MAAM,KAAEC,EAAO,aAAgBD,EAE/B,MAAO,CACLC,OAEAC,OAAQ,GAAmB,EAAD,2BAAX,IAAErC,IACf,GAAIA,EAAK,CACP,GAAY,UAARA,EAEF,OAAOuB,KAAKC,MAAMX,KAAKyB,MAAQ,KAGjC,GAAY,aAARtC,EAEF,OAAOa,KAAKyB,KAEhB,CAGA,OAAO3B,GACT,GAEJ,C","sources":["webpack://@eventvisor/module-timestamp/webpack/bootstrap","webpack://@eventvisor/module-timestamp/webpack/runtime/define property getters","webpack://@eventvisor/module-timestamp/webpack/runtime/hasOwnProperty shorthand","webpack://@eventvisor/module-timestamp/./src/index.ts"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","import { Module } from \"@eventvisor/sdk\";\n\nexport type TimestampModuleOptions = {\n name?: string;\n};\n\nexport function toLocalIsoOffset(d = new Date()) {\n const pad = (n, len = 2) => String(n).padStart(len, \"0\");\n const offMin = -d.getTimezoneOffset();\n const sign = offMin >= 0 ? \"+\" : \"-\";\n const hh = pad(Math.floor(Math.abs(offMin) / 60));\n const mm = pad(Math.abs(offMin) % 60);\n\n return (\n `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}` +\n `T${pad(d.getHours())}:${pad(d.getMinutes())}:${pad(d.getSeconds())}` +\n `.${pad(d.getMilliseconds(), 3)}${sign}${hh}:${mm}`\n );\n}\n\nexport function createTimestampModule(options: TimestampModuleOptions = {}): Module {\n const { name = \"timestamp\" } = options;\n\n return {\n name,\n\n lookup: async ({ key }) => {\n if (key) {\n if (key === \"epoch\") {\n // seconds\n return Math.floor(Date.now() / 1000);\n }\n\n if (key === \"epoch_ms\") {\n // milliseconds\n return Date.now();\n }\n }\n\n // iso 8601 with offset\n return toLocalIsoOffset();\n },\n };\n}\n"],"names":["__webpack_require__","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","toLocalIsoOffset","d","Date","pad","n","len","String","padStart","offMin","getTimezoneOffset","sign","hh","Math","floor","abs","mm","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","getMilliseconds","createTimestampModule","options","name","lookup","now"],"sourceRoot":""}
1
+ {"version":3,"file":"index.mjs","mappings":"AACA,IAAIA,EAAsB,CCA1BA,EAAwB,CAACC,EAASC,KACjC,IAAI,IAAIC,KAAOD,EACXF,EAAoBI,EAAEF,EAAYC,KAASH,EAAoBI,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,MCJ3EH,EAAwB,CAACS,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,I,oUCM3E,SAASI,EAAiBC,EAAI,IAAIC,MACvC,MAAMC,EAAM,CAACC,EAAGC,EAAM,IAAMC,OAAOF,GAAGG,SAASF,EAAK,KAC9CG,GAAUP,EAAEQ,oBACZC,EAAOF,GAAU,EAAI,IAAM,IAC3BG,EAAKR,EAAIS,KAAKC,MAAMD,KAAKE,IAAIN,GAAU,KACvCO,EAAKZ,EAAIS,KAAKE,IAAIN,GAAU,IAElC,MACE,GAAGP,EAAEe,iBAAiBb,EAAIF,EAAEgB,WAAa,MAAMd,EAAIF,EAAEiB,cACjDf,EAAIF,EAAEkB,eAAehB,EAAIF,EAAEmB,iBAAiBjB,EAAIF,EAAEoB,iBAClDlB,EAAIF,EAAEqB,kBAAmB,KAAKZ,IAAOC,KAAMI,GAEnD,CAEO,SAASQ,EAAsBC,EAAkC,CAAC,GACvE,MAAM,KAAEC,EAAO,aAAgBD,EAE/B,MAAO,CACLC,OAEAC,OAAQ,GAAmB,EAAD,2BAAX,IAAErC,IACf,GAAIA,EAAK,CACP,GAAY,UAARA,EAEF,OAAOuB,KAAKC,MAAMX,KAAKyB,MAAQ,KAGjC,GAAY,aAARtC,EAEF,OAAOa,KAAKyB,KAEhB,CAGA,OAAO3B,GACT,GAEJ,C","sources":["webpack://@eventvisor/module-timestamp/webpack/bootstrap","webpack://@eventvisor/module-timestamp/webpack/runtime/define property getters","webpack://@eventvisor/module-timestamp/webpack/runtime/hasOwnProperty shorthand","webpack://@eventvisor/module-timestamp/./src/index.ts"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","import type { Module } from \"@eventvisor/sdk\";\n\nexport type TimestampModuleOptions = {\n name?: string;\n};\n\nexport function toLocalIsoOffset(d = new Date()) {\n const pad = (n, len = 2) => String(n).padStart(len, \"0\");\n const offMin = -d.getTimezoneOffset();\n const sign = offMin >= 0 ? \"+\" : \"-\";\n const hh = pad(Math.floor(Math.abs(offMin) / 60));\n const mm = pad(Math.abs(offMin) % 60);\n\n return (\n `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}` +\n `T${pad(d.getHours())}:${pad(d.getMinutes())}:${pad(d.getSeconds())}` +\n `.${pad(d.getMilliseconds(), 3)}${sign}${hh}:${mm}`\n );\n}\n\nexport function createTimestampModule(options: TimestampModuleOptions = {}): Module {\n const { name = \"timestamp\" } = options;\n\n return {\n name,\n\n lookup: async ({ key }) => {\n if (key) {\n if (key === \"epoch\") {\n // seconds\n return Math.floor(Date.now() / 1000);\n }\n\n if (key === \"epoch_ms\") {\n // milliseconds\n return Date.now();\n }\n }\n\n // iso 8601 with offset\n return toLocalIsoOffset();\n },\n };\n}\n"],"names":["__webpack_require__","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","toLocalIsoOffset","d","Date","pad","n","len","String","padStart","offMin","getTimezoneOffset","sign","hh","Math","floor","abs","mm","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","getMilliseconds","createTimestampModule","options","name","lookup","now"],"sourceRoot":""}
package/lib/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Module } from "@eventvisor/sdk";
1
+ import type { Module } from "@eventvisor/sdk";
2
2
  export type TimestampModuleOptions = {
3
3
  name?: string;
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eventvisor/module-timestamp",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "Eventvisor Timestamp module",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.mjs",
@@ -39,8 +39,8 @@
39
39
  "url": "https://github.com/eventvisor/eventvisor/issues"
40
40
  },
41
41
  "devDependencies": {
42
- "@eventvisor/sdk": "0.7.0"
42
+ "@eventvisor/sdk": "0.9.0"
43
43
  },
44
44
  "license": "MIT",
45
- "gitHead": "c8f81664fd1bd407859948b67a8e7404ef643266"
45
+ "gitHead": "3db931cbbadad1db56a99caabf9424c288f8f8d3"
46
46
  }
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Module } from "@eventvisor/sdk";
1
+ import type { Module } from "@eventvisor/sdk";
2
2
 
3
3
  export type TimestampModuleOptions = {
4
4
  name?: string;