@appsurify-testmap/rrweb-plugin-sequential-id-record 2.1.0-alpha.7 → 2.1.1-alpha.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/dist/rrweb-plugin-sequential-id-record.cjs +1 -1
- package/dist/rrweb-plugin-sequential-id-record.cjs.map +1 -1
- package/dist/rrweb-plugin-sequential-id-record.js +1 -1
- package/dist/rrweb-plugin-sequential-id-record.js.map +1 -1
- package/dist/rrweb-plugin-sequential-id-record.umd.cjs +1 -1
- package/dist/rrweb-plugin-sequential-id-record.umd.cjs.map +1 -1
- package/dist/rrweb-plugin-sequential-id-record.umd.min.cjs +1 -1
- package/dist/rrweb-plugin-sequential-id-record.umd.min.cjs.map +2 -2
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rrweb-plugin-sequential-id-record.cjs","sources":["../src/index.ts"],"sourcesContent":["import type { RecordPlugin } from '@appsurify-testmap/rrweb-types';\n\nexport type SequentialIdOptions = {\n key: string;\n getId?: () => number; // ❗️необязательный колбэк для получения ID\n};\n\nconst defaultOptions: SequentialIdOptions = {\n key: '
|
|
1
|
+
{"version":3,"file":"rrweb-plugin-sequential-id-record.cjs","sources":["../src/index.ts"],"sourcesContent":["import type { RecordPlugin } from '@appsurify-testmap/rrweb-types';\n\nexport type SequentialIdOptions = {\n key: string;\n getId?: () => number; // ❗️необязательный колбэк для получения ID\n};\n\nconst defaultOptions: SequentialIdOptions = {\n key: 'id',\n};\n\nexport let globalSequentialId = 0;\n\nexport const PLUGIN_NAME = 'rrweb/sequential-id@1';\n\nexport const getRecordSequentialIdPlugin: (\n options?: Partial<SequentialIdOptions>,\n) => RecordPlugin = (options) => {\n const _options = Object.assign({}, defaultOptions, options);\n let localId = 0;\n\n return {\n name: PLUGIN_NAME,\n eventProcessor(event) {\n const id = _options.getId ? _options.getId() : ++localId;\n Object.assign(event, {\n [_options.key]: id,\n });\n return event;\n },\n options: _options,\n };\n};\n"],"names":[],"mappings":";;AAOA,MAAM,iBAAsC;AAAA,EAC1C,KAAK;AACP;AAEO,IAAI,qBAAqB;AAEzB,MAAM,cAAc;AAEd,MAAA,8BAEO,CAAC,YAAY;AAC/B,QAAM,WAAW,OAAO,OAAO,CAAA,GAAI,gBAAgB,OAAO;AAC1D,MAAI,UAAU;AAEP,SAAA;AAAA,IACL,MAAM;AAAA,IACN,eAAe,OAAO;AACpB,YAAM,KAAK,SAAS,QAAQ,SAAS,MAAA,IAAU,EAAE;AACjD,aAAO,OAAO,OAAO;AAAA,QACnB,CAAC,SAAS,GAAG,GAAG;AAAA,MAAA,CACjB;AACM,aAAA;AAAA,IACT;AAAA,IACA,SAAS;AAAA,EAAA;AAEb;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rrweb-plugin-sequential-id-record.js","sources":["../src/index.ts"],"sourcesContent":["import type { RecordPlugin } from '@appsurify-testmap/rrweb-types';\n\nexport type SequentialIdOptions = {\n key: string;\n getId?: () => number; // ❗️необязательный колбэк для получения ID\n};\n\nconst defaultOptions: SequentialIdOptions = {\n key: '
|
|
1
|
+
{"version":3,"file":"rrweb-plugin-sequential-id-record.js","sources":["../src/index.ts"],"sourcesContent":["import type { RecordPlugin } from '@appsurify-testmap/rrweb-types';\n\nexport type SequentialIdOptions = {\n key: string;\n getId?: () => number; // ❗️необязательный колбэк для получения ID\n};\n\nconst defaultOptions: SequentialIdOptions = {\n key: 'id',\n};\n\nexport let globalSequentialId = 0;\n\nexport const PLUGIN_NAME = 'rrweb/sequential-id@1';\n\nexport const getRecordSequentialIdPlugin: (\n options?: Partial<SequentialIdOptions>,\n) => RecordPlugin = (options) => {\n const _options = Object.assign({}, defaultOptions, options);\n let localId = 0;\n\n return {\n name: PLUGIN_NAME,\n eventProcessor(event) {\n const id = _options.getId ? _options.getId() : ++localId;\n Object.assign(event, {\n [_options.key]: id,\n });\n return event;\n },\n options: _options,\n };\n};\n"],"names":[],"mappings":"AAOA,MAAM,iBAAsC;AAAA,EAC1C,KAAK;AACP;AAEO,IAAI,qBAAqB;AAEzB,MAAM,cAAc;AAEd,MAAA,8BAEO,CAAC,YAAY;AAC/B,QAAM,WAAW,OAAO,OAAO,CAAA,GAAI,gBAAgB,OAAO;AAC1D,MAAI,UAAU;AAEP,SAAA;AAAA,IACL,MAAM;AAAA,IACN,eAAe,OAAO;AACpB,YAAM,KAAK,SAAS,QAAQ,SAAS,MAAA,IAAU,EAAE;AACjD,aAAO,OAAO,OAAO;AAAA,QACnB,CAAC,SAAS,GAAG,GAAG;AAAA,MAAA,CACjB;AACM,aAAA;AAAA,IACT;AAAA,IACA,SAAS;AAAA,EAAA;AAEb;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["import type { RecordPlugin } from '@appsurify-testmap/rrweb-types';\n\nexport type SequentialIdOptions = {\n key: string;\n getId?: () => number; // ❗️необязательный колбэк для получения ID\n};\n\nconst defaultOptions: SequentialIdOptions = {\n key: '
|
|
4
|
+
"sourcesContent": ["import type { RecordPlugin } from '@appsurify-testmap/rrweb-types';\n\nexport type SequentialIdOptions = {\n key: string;\n getId?: () => number; // ❗️необязательный колбэк для получения ID\n};\n\nconst defaultOptions: SequentialIdOptions = {\n key: 'id',\n};\n\nexport let globalSequentialId = 0;\n\nexport const PLUGIN_NAME = 'rrweb/sequential-id@1';\n\nexport const getRecordSequentialIdPlugin: (\n options?: Partial<SequentialIdOptions>,\n) => RecordPlugin = (options) => {\n const _options = Object.assign({}, defaultOptions, options);\n let localId = 0;\n\n return {\n name: PLUGIN_NAME,\n eventProcessor(event) {\n const id = _options.getId ? _options.getId() : ++localId;\n Object.assign(event, {\n [_options.key]: id,\n });\n return event;\n },\n options: _options,\n };\n};\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;AAOA,MAAM,iBAAsC;EAC1C,KAAK;AACP;AAEO,IAAI,qBAAqB;AAEzB,MAAM,cAAc;AAEd,MAAA,8BAEO,CAAC,YAAY;AAC/B,QAAM,WAAW,OAAO,OAAO,CAAA,GAAI,gBAAgB,OAAO;AAC1D,MAAI,UAAU;AAEP,SAAA;IACL,MAAM;IACN,eAAe,OAAO;AACpB,YAAM,KAAK,SAAS,QAAQ,SAAS,MAAA,IAAU,EAAE;AACjD,aAAO,OAAO,OAAO;QACnB,CAAC,SAAS,GAAG,GAAG;MAAA,CACjB;AACM,aAAA;IACT;IACA,SAAS;EAAA;AAEb;;;;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
}(this, () => {
|
|
12
12
|
var exports = {};
|
|
13
13
|
var module = { exports };
|
|
14
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s={key:"
|
|
14
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s={key:"id"};let d=0;const n="rrweb/sequential-id@1",a=o=>{const e=Object.assign({},s,o);let l=0;return{name:n,eventProcessor(t){const i=e.getId?e.getId():++l;return Object.assign(t,{[e.key]:i}),t},options:e}};exports.PLUGIN_NAME=n;exports.getRecordSequentialIdPlugin=a;exports.globalSequentialId=d;
|
|
15
15
|
if (typeof module.exports == "object" && typeof exports == "object") {
|
|
16
16
|
var __cp = (to, from, except, desc) => {
|
|
17
17
|
if ((from && typeof from === "object") || typeof from === "function") {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["import type { RecordPlugin } from '@appsurify-testmap/rrweb-types';\n\nexport type SequentialIdOptions = {\n key: string;\n getId?: () => number; // ❗️необязательный колбэк для получения ID\n};\n\nconst defaultOptions: SequentialIdOptions = {\n key: '
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;gFAOA,MAAMA,EAAsC,CAC1C,IAAK,
|
|
4
|
+
"sourcesContent": ["import type { RecordPlugin } from '@appsurify-testmap/rrweb-types';\n\nexport type SequentialIdOptions = {\n key: string;\n getId?: () => number; // ❗️необязательный колбэк для получения ID\n};\n\nconst defaultOptions: SequentialIdOptions = {\n key: 'id',\n};\n\nexport let globalSequentialId = 0;\n\nexport const PLUGIN_NAME = 'rrweb/sequential-id@1';\n\nexport const getRecordSequentialIdPlugin: (\n options?: Partial<SequentialIdOptions>,\n) => RecordPlugin = (options) => {\n const _options = Object.assign({}, defaultOptions, options);\n let localId = 0;\n\n return {\n name: PLUGIN_NAME,\n eventProcessor(event) {\n const id = _options.getId ? _options.getId() : ++localId;\n Object.assign(event, {\n [_options.key]: id,\n });\n return event;\n },\n options: _options,\n };\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;gFAOA,MAAMA,EAAsC,CAC1C,IAAK,IACP,EAEO,IAAIC,EAAqB,EAEzB,MAAMC,EAAc,wBAEdC,EAEQC,GAAY,CAC/B,MAAMC,EAAW,OAAO,OAAO,CAAA,EAAIL,EAAgBI,CAAO,EAC1D,IAAIE,EAAU,EAEP,MAAA,CACL,KAAMJ,EACN,eAAeK,EAAO,CACpB,MAAMC,EAAKH,EAAS,MAAQA,EAAS,MAAA,EAAU,EAAEC,EACjD,cAAO,OAAOC,EAAO,CACnB,CAACF,EAAS,GAAG,EAAGG,CAAA,CACjB,EACMD,CACT,EACA,QAASF,CAAA,CAEb",
|
|
6
6
|
"names": ["defaultOptions", "globalSequentialId", "PLUGIN_NAME", "getRecordSequentialIdPlugin", "options", "_options", "localId", "event", "id"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsurify-testmap/rrweb-plugin-sequential-id-record",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1-alpha.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/rrweb-plugin-sequential-id-record.umd.cjs",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://github.com/rrweb-io/rrweb#readme",
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@appsurify-testmap/rrweb": "^2.1.
|
|
46
|
+
"@appsurify-testmap/rrweb": "^2.1.1-alpha.2",
|
|
47
47
|
"typescript": "^5.4.5",
|
|
48
48
|
"vite": "^5.3.1",
|
|
49
49
|
"vite-plugin-dts": "^3.9.1"
|