@jitsu/functions-lib 1.9.12 → 1.9.13
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/.turbo/turbo-build.log +2 -2
- package/.turbo/turbo-test.log +158 -0
- package/__tests__/classic-mapping.test.ts +315 -0
- package/__tests__/data/classic-events.ts +168 -0
- package/dist/index.cjs.js +446 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +434 -1
- package/dist/lib/functions.d.ts +5 -0
- package/dist/lib/objects.d.ts +2 -0
- package/dist/lib/strings.d.ts +1 -0
- package/jest.config.js +8 -0
- package/jest.setup.js +8 -0
- package/package.json +9 -7
- package/rollup.config.js +3 -1
- package/src/index.ts +2 -0
- package/src/lib/functions.ts +290 -0
- package/src/lib/objects.ts +96 -0
- package/src/lib/strings.ts +60 -0
- package/tsconfig.json +2 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,5 +1,162 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const ACode = "A".charCodeAt(0);
|
|
4
|
+
const ZCode = "Z".charCodeAt(0);
|
|
5
|
+
const aCode = "a".charCodeAt(0);
|
|
6
|
+
const zCode = "z".charCodeAt(0);
|
|
7
|
+
const zeroCode = "0".charCodeAt(0);
|
|
8
|
+
const nineCode = "9".charCodeAt(0);
|
|
9
|
+
const spaceCode = " ".charCodeAt(0);
|
|
10
|
+
const underscodeCode = "_".charCodeAt(0);
|
|
11
|
+
function idToSnakeCaseFast(id) {
|
|
12
|
+
let res = "";
|
|
13
|
+
let concatIndex = 0;
|
|
14
|
+
let i = 0;
|
|
15
|
+
let needUnderscore = false;
|
|
16
|
+
for (; i < id.length; i++) {
|
|
17
|
+
const c = id.charCodeAt(i);
|
|
18
|
+
if (c >= ACode && c <= ZCode) {
|
|
19
|
+
res += id.substring(concatIndex, i) + (needUnderscore ? "_" : "") + id.charAt(i).toLowerCase();
|
|
20
|
+
concatIndex = i + 1;
|
|
21
|
+
}
|
|
22
|
+
else if (c == spaceCode) {
|
|
23
|
+
res += id.substring(concatIndex, i) + "_";
|
|
24
|
+
concatIndex = i + 1;
|
|
25
|
+
}
|
|
26
|
+
// needUnderscore is used in case next char is a capital latin letter
|
|
27
|
+
// we add underscore only between latin letters
|
|
28
|
+
needUnderscore = (c >= aCode && c <= zCode) || (c >= ACode && c <= ZCode);
|
|
29
|
+
}
|
|
30
|
+
if (concatIndex == 0) {
|
|
31
|
+
return id;
|
|
32
|
+
}
|
|
33
|
+
else if (concatIndex < i) {
|
|
34
|
+
res += id.substring(concatIndex, i);
|
|
35
|
+
}
|
|
36
|
+
return res;
|
|
37
|
+
}
|
|
38
|
+
function idToClassic(id) {
|
|
39
|
+
let needConvert = false;
|
|
40
|
+
for (let i = 0; i < id.length; i++) {
|
|
41
|
+
const c = id.charCodeAt(i);
|
|
42
|
+
if (!((c >= aCode && c <= zCode) || (c >= zeroCode && c <= nineCode) || c == underscodeCode)) {
|
|
43
|
+
needConvert = true;
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
if (!needConvert) {
|
|
48
|
+
return id;
|
|
49
|
+
}
|
|
50
|
+
let res = "";
|
|
51
|
+
for (let i = 0; i < id.length; i++) {
|
|
52
|
+
const c = id.charCodeAt(i);
|
|
53
|
+
if (c >= ACode && c <= ZCode) {
|
|
54
|
+
res += id.charAt(i).toLowerCase();
|
|
55
|
+
}
|
|
56
|
+
else if ((c >= aCode && c <= zCode) || (c >= zeroCode && c <= nineCode)) {
|
|
57
|
+
res += id.charAt(i);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
res += "_";
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return res;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function toSnakeCase(param) {
|
|
67
|
+
if (Array.isArray(param)) {
|
|
68
|
+
return param.map(toSnakeCase);
|
|
69
|
+
}
|
|
70
|
+
else if (typeof param === "object" && param !== null) {
|
|
71
|
+
const r = {};
|
|
72
|
+
for (const [key, value] of Object.entries(param)) {
|
|
73
|
+
r[idToSnakeCaseFast(key)] = toSnakeCase(value);
|
|
74
|
+
}
|
|
75
|
+
return r;
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
return param;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
function toClassic(param) {
|
|
82
|
+
if (Array.isArray(param)) {
|
|
83
|
+
return param.map(toClassic);
|
|
84
|
+
}
|
|
85
|
+
else if (typeof param === "object" && param !== null) {
|
|
86
|
+
const r = {};
|
|
87
|
+
for (const [key, value] of Object.entries(param)) {
|
|
88
|
+
r[idToClassic(key)] = toClassic(value);
|
|
89
|
+
}
|
|
90
|
+
return r;
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
return param;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function removeUndefined(param) {
|
|
97
|
+
if (Array.isArray(param)) {
|
|
98
|
+
return param.map(removeUndefined);
|
|
99
|
+
}
|
|
100
|
+
else if (typeof param === "object" && param !== null) {
|
|
101
|
+
for (const [key, value] of Object.entries(param)) {
|
|
102
|
+
switch (typeof value) {
|
|
103
|
+
case "undefined":
|
|
104
|
+
delete param[key];
|
|
105
|
+
break;
|
|
106
|
+
case "object":
|
|
107
|
+
if (value !== null) {
|
|
108
|
+
removeUndefined(value);
|
|
109
|
+
}
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return param;
|
|
115
|
+
}
|
|
116
|
+
function transferAsSnakeCase(target, source, omit) {
|
|
117
|
+
if (typeof source !== "object") {
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
for (const [k, v] of Object.entries(source)) {
|
|
121
|
+
if (!omit || !omit.includes(k)) {
|
|
122
|
+
target[idToSnakeCaseFast(k)] = toSnakeCase(v);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
function transferAsClassic(target, source, omit) {
|
|
127
|
+
if (typeof source !== "object") {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
for (const [k, v] of Object.entries(source)) {
|
|
131
|
+
if (!omit || !omit.includes(k)) {
|
|
132
|
+
target[idToClassic(k)] = toClassic(v);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
function transferValueAsSnakeCase(target, property, source) {
|
|
137
|
+
if (typeof source === "undefined") {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
target[property] = toSnakeCase(source);
|
|
141
|
+
}
|
|
142
|
+
function transfer(target, source, omit) {
|
|
143
|
+
if (typeof source !== "object") {
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
for (const [k, v] of Object.entries(source)) {
|
|
147
|
+
if (!omit || !omit.includes(k)) {
|
|
148
|
+
target[k] = v;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
function transferValue(target, property, source) {
|
|
153
|
+
if (typeof source === "undefined") {
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
target[property] = source;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
const TableNameParameter = "JITSU_TABLE_NAME";
|
|
3
160
|
const DropRetryErrorName = "Drop & RetryError";
|
|
4
161
|
const RetryErrorName = "RetryError";
|
|
5
162
|
class RetryError extends Error {
|
|
@@ -48,8 +205,297 @@ class HTTPError extends Error {
|
|
|
48
205
|
};
|
|
49
206
|
}
|
|
50
207
|
}
|
|
208
|
+
function anonymizeIp(ip) {
|
|
209
|
+
if (!ip) {
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
const parts = ip.split(".");
|
|
213
|
+
if (parts.length === 4) {
|
|
214
|
+
return `${parts[0]}.${parts[1]}.${parts[2]}.0`;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
function toJitsuClassic(event, ctx) {
|
|
218
|
+
const keepOriginalNames = !!ctx.props.keepOriginalNames;
|
|
219
|
+
const fileStorage = ctx.destination.type === "s3" || ctx.destination.type === "gcs";
|
|
220
|
+
let transferFunc = transferAsSnakeCase;
|
|
221
|
+
if (keepOriginalNames) {
|
|
222
|
+
if (fileStorage) {
|
|
223
|
+
transferFunc = transfer;
|
|
224
|
+
}
|
|
225
|
+
else {
|
|
226
|
+
transferFunc = transferAsClassic;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
let url = undefined;
|
|
230
|
+
const analyticsContext = event.context || {};
|
|
231
|
+
const urlStr = analyticsContext.page?.url || event.properties?.url;
|
|
232
|
+
try {
|
|
233
|
+
if (urlStr) {
|
|
234
|
+
url = new URL(urlStr);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
catch (e) { }
|
|
238
|
+
const click_id = {};
|
|
239
|
+
transferFunc(click_id, analyticsContext.clientIds, ["ga4", "fbp", "fbc"]);
|
|
240
|
+
let ids = {};
|
|
241
|
+
if (Object.keys(analyticsContext.clientIds || {}).length > 0) {
|
|
242
|
+
ids = removeUndefined({
|
|
243
|
+
ga: analyticsContext.clientIds.ga4?.clientId,
|
|
244
|
+
fbp: analyticsContext.clientIds.fbp,
|
|
245
|
+
fbc: analyticsContext.clientIds.fbc,
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
const geo = analyticsContext.geo || {};
|
|
249
|
+
const ua = ctx?.ua || {};
|
|
250
|
+
const user = removeUndefined({
|
|
251
|
+
id: event.userId,
|
|
252
|
+
anonymous_id: event.anonymousId,
|
|
253
|
+
email: (analyticsContext.traits?.email || event.traits?.email || undefined),
|
|
254
|
+
name: (analyticsContext.traits?.name || event.traits?.name || undefined),
|
|
255
|
+
});
|
|
256
|
+
transferFunc(user, analyticsContext.traits, ["email", "name"]);
|
|
257
|
+
transferFunc(user, event.traits, ["email", "name"]);
|
|
258
|
+
const classic = {
|
|
259
|
+
[TableNameParameter]: event[TableNameParameter],
|
|
260
|
+
anon_ip: analyticsContext.ip ? anonymizeIp(analyticsContext.ip) : undefined,
|
|
261
|
+
api_key: event.writeKey || "",
|
|
262
|
+
click_id: Object.keys(click_id).length > 0 ? click_id : undefined,
|
|
263
|
+
doc_encoding: analyticsContext.page?.encoding ?? event.properties?.encoding,
|
|
264
|
+
doc_host: (analyticsContext.page?.host ?? event.properties?.host) || url?.host,
|
|
265
|
+
doc_path: (analyticsContext.page?.path ?? event.properties?.path) || url?.pathname,
|
|
266
|
+
doc_search: (analyticsContext.page?.search ?? event.properties?.search) || url?.search,
|
|
267
|
+
eventn_ctx_event_id: event.messageId,
|
|
268
|
+
event_type: event.event || event.type,
|
|
269
|
+
local_tz_offset: analyticsContext.page?.timezoneOffset ?? event.properties?.timezoneOffset,
|
|
270
|
+
page_title: analyticsContext.page?.title,
|
|
271
|
+
referer: analyticsContext.page?.referrer,
|
|
272
|
+
screen_resolution: Object.keys(analyticsContext.screen || {}).length > 0
|
|
273
|
+
? Math.max(analyticsContext.screen.width || 0) + "x" + Math.max(analyticsContext.screen.height || 0)
|
|
274
|
+
: undefined,
|
|
275
|
+
source_ip: analyticsContext.ip,
|
|
276
|
+
src: event.properties?.src || "jitsu",
|
|
277
|
+
url: urlStr,
|
|
278
|
+
user: Object.keys(user).length > 0 ? user : undefined,
|
|
279
|
+
location: Object.keys(geo).length > 0
|
|
280
|
+
? {
|
|
281
|
+
city: geo.city?.name,
|
|
282
|
+
continent: geo.continent?.name,
|
|
283
|
+
country: geo.country?.code,
|
|
284
|
+
country_name: geo.country?.name,
|
|
285
|
+
latitude: geo.location?.latitude,
|
|
286
|
+
longitude: geo.location?.longitude,
|
|
287
|
+
region: geo.region?.code,
|
|
288
|
+
zip: geo.postalCode?.code,
|
|
289
|
+
timezone: geo.location?.timezone,
|
|
290
|
+
autonomous_system_number: geo.provider?.as?.num,
|
|
291
|
+
autonomous_system_organization: geo.provider?.as?.name,
|
|
292
|
+
isp: geo.provider?.isp,
|
|
293
|
+
domain: geo.provider?.domain,
|
|
294
|
+
}
|
|
295
|
+
: undefined,
|
|
296
|
+
ids: Object.keys(ids).length > 0 ? ids : undefined,
|
|
297
|
+
parsed_ua: Object.keys(ua).length > 0
|
|
298
|
+
? {
|
|
299
|
+
os_family: ua.os?.name,
|
|
300
|
+
os_version: ua.os?.version,
|
|
301
|
+
ua_family: ua.browser?.name,
|
|
302
|
+
ua_version: ua.browser?.version,
|
|
303
|
+
device_brand: ua.device?.vendor,
|
|
304
|
+
device_type: ua.device?.type,
|
|
305
|
+
device_model: ua.device?.model,
|
|
306
|
+
bot: ua.bot,
|
|
307
|
+
}
|
|
308
|
+
: undefined,
|
|
309
|
+
user_agent: analyticsContext.userAgent,
|
|
310
|
+
user_language: analyticsContext.locale,
|
|
311
|
+
utc_time: event.timestamp,
|
|
312
|
+
_timestamp: event.receivedAt,
|
|
313
|
+
utm: analyticsContext.campaign,
|
|
314
|
+
vp_size: Object.keys(analyticsContext.screen || {}).length > 0
|
|
315
|
+
? Math.max(analyticsContext.screen.innerWidth || 0) + "x" + Math.max(analyticsContext.screen.innerHeight || 0)
|
|
316
|
+
: undefined,
|
|
317
|
+
};
|
|
318
|
+
if (event.type === "track") {
|
|
319
|
+
transferFunc(classic, event.properties);
|
|
320
|
+
}
|
|
321
|
+
else {
|
|
322
|
+
transferFunc(classic, event.properties, ["url", "title", "referrer", "search", "host", "path", "width", "height"]);
|
|
323
|
+
}
|
|
324
|
+
return removeUndefined(classic);
|
|
325
|
+
}
|
|
326
|
+
function fromJitsuClassic(event) {
|
|
327
|
+
let type = "track";
|
|
328
|
+
let eventName = undefined;
|
|
329
|
+
switch ((event.event_type ?? "").toLowerCase()) {
|
|
330
|
+
case "pageview":
|
|
331
|
+
case "page_view":
|
|
332
|
+
case "page":
|
|
333
|
+
type = "page";
|
|
334
|
+
eventName = event.event_type;
|
|
335
|
+
break;
|
|
336
|
+
case "identify":
|
|
337
|
+
type = "identify";
|
|
338
|
+
break;
|
|
339
|
+
case "screen":
|
|
340
|
+
type = "screen";
|
|
341
|
+
break;
|
|
342
|
+
case "group":
|
|
343
|
+
type = "group";
|
|
344
|
+
break;
|
|
345
|
+
case "alias":
|
|
346
|
+
type = "alias";
|
|
347
|
+
break;
|
|
348
|
+
default:
|
|
349
|
+
type = "track";
|
|
350
|
+
eventName = event.event_type;
|
|
351
|
+
break;
|
|
352
|
+
}
|
|
353
|
+
const clientIds = Object.keys(event.ids || event.click_id || {}).length > 0
|
|
354
|
+
? {
|
|
355
|
+
ga4: event.ids?.ga
|
|
356
|
+
? {
|
|
357
|
+
clientId: event.ids.ga,
|
|
358
|
+
}
|
|
359
|
+
: undefined,
|
|
360
|
+
fbp: event.ids?.fbp,
|
|
361
|
+
fbc: event.ids?.fbc,
|
|
362
|
+
...event.click_id,
|
|
363
|
+
}
|
|
364
|
+
: undefined;
|
|
365
|
+
const loc = event.location || {};
|
|
366
|
+
const geo = Object.keys(loc).length > 0
|
|
367
|
+
? {
|
|
368
|
+
city: {
|
|
369
|
+
name: loc.city,
|
|
370
|
+
},
|
|
371
|
+
continent: {
|
|
372
|
+
code: loc.continent,
|
|
373
|
+
},
|
|
374
|
+
country: {
|
|
375
|
+
code: loc.country,
|
|
376
|
+
name: loc.country_name,
|
|
377
|
+
},
|
|
378
|
+
location: {
|
|
379
|
+
latitude: loc.latitude,
|
|
380
|
+
longitude: loc.longitude,
|
|
381
|
+
timezone: loc.timezone,
|
|
382
|
+
},
|
|
383
|
+
region: {
|
|
384
|
+
code: loc.region,
|
|
385
|
+
},
|
|
386
|
+
postalCode: {
|
|
387
|
+
code: loc.zip,
|
|
388
|
+
},
|
|
389
|
+
provider: {
|
|
390
|
+
as: {
|
|
391
|
+
num: loc.autonomous_system_number,
|
|
392
|
+
name: loc.autonomous_system_organization,
|
|
393
|
+
},
|
|
394
|
+
isp: loc.isp,
|
|
395
|
+
domain: loc.domain,
|
|
396
|
+
},
|
|
397
|
+
}
|
|
398
|
+
: undefined;
|
|
399
|
+
const traits = {};
|
|
400
|
+
transfer(traits, event.user, ["id", "anonymous_id"]);
|
|
401
|
+
const properties = {};
|
|
402
|
+
transfer(properties, event, [
|
|
403
|
+
TableNameParameter,
|
|
404
|
+
"anon_ip",
|
|
405
|
+
"api_key",
|
|
406
|
+
"click_id",
|
|
407
|
+
"doc_encoding",
|
|
408
|
+
"doc_host",
|
|
409
|
+
"doc_path",
|
|
410
|
+
"doc_search",
|
|
411
|
+
"eventn_ctx_event_id",
|
|
412
|
+
"event_type",
|
|
413
|
+
"local_tz_offset",
|
|
414
|
+
"page_title",
|
|
415
|
+
"referer",
|
|
416
|
+
"screen_resolution",
|
|
417
|
+
"source_ip",
|
|
418
|
+
"url",
|
|
419
|
+
"user",
|
|
420
|
+
"location",
|
|
421
|
+
"parsed_ua",
|
|
422
|
+
"user_agent",
|
|
423
|
+
"user_language",
|
|
424
|
+
"utc_time",
|
|
425
|
+
"_timestamp",
|
|
426
|
+
"utm",
|
|
427
|
+
"vp_size",
|
|
428
|
+
]);
|
|
429
|
+
if (type === "page") {
|
|
430
|
+
properties.url = event.url;
|
|
431
|
+
properties.title = event.page_title;
|
|
432
|
+
properties.referrer = event.referer;
|
|
433
|
+
properties.search = event.doc_search;
|
|
434
|
+
properties.host = event.doc_host;
|
|
435
|
+
properties.path = event.doc_path;
|
|
436
|
+
properties.width = parseInt(event.vp_size?.split("x")[0]);
|
|
437
|
+
properties.height = parseInt(event.vp_size?.split("x")[1]);
|
|
438
|
+
}
|
|
439
|
+
const screen = {};
|
|
440
|
+
const sr = event.screen_resolution?.split("x");
|
|
441
|
+
if (sr?.length === 2) {
|
|
442
|
+
screen.width = parseInt(sr[0]);
|
|
443
|
+
screen.height = parseInt(sr[1]);
|
|
444
|
+
}
|
|
445
|
+
const vs = event.vp_size?.split("x");
|
|
446
|
+
if (vs?.length === 2) {
|
|
447
|
+
screen.innerWidth = parseInt(vs[0]);
|
|
448
|
+
screen.innerHeight = parseInt(vs[1]);
|
|
449
|
+
}
|
|
450
|
+
return removeUndefined({
|
|
451
|
+
[TableNameParameter]: event[TableNameParameter],
|
|
452
|
+
messageId: event.eventn_ctx_event_id,
|
|
453
|
+
userId: event.user?.id,
|
|
454
|
+
anonymousId: event.user?.anonymous_id,
|
|
455
|
+
timestamp: event.utc_time,
|
|
456
|
+
receivedAt: event._timestamp,
|
|
457
|
+
writeKey: event.api_key,
|
|
458
|
+
type,
|
|
459
|
+
event: eventName,
|
|
460
|
+
context: {
|
|
461
|
+
ip: event.source_ip,
|
|
462
|
+
locale: event.user_language,
|
|
463
|
+
userAgent: event.user_agent,
|
|
464
|
+
page: {
|
|
465
|
+
url: event.url,
|
|
466
|
+
title: event.page_title,
|
|
467
|
+
referrer: event.referer,
|
|
468
|
+
search: event.doc_search,
|
|
469
|
+
host: event.doc_host,
|
|
470
|
+
path: event.doc_path,
|
|
471
|
+
encoding: event.doc_encoding,
|
|
472
|
+
timezoneOffset: event.local_tz_offset,
|
|
473
|
+
},
|
|
474
|
+
screen: Object.keys(screen).length > 0 ? screen : undefined,
|
|
475
|
+
clientIds,
|
|
476
|
+
campaign: event.utm,
|
|
477
|
+
traits,
|
|
478
|
+
geo,
|
|
479
|
+
},
|
|
480
|
+
properties,
|
|
481
|
+
traits: type === "identify" || type === "group" ? traits : undefined,
|
|
482
|
+
});
|
|
483
|
+
}
|
|
51
484
|
|
|
52
485
|
exports.DropRetryErrorName = DropRetryErrorName;
|
|
53
486
|
exports.HTTPError = HTTPError;
|
|
54
487
|
exports.RetryError = RetryError;
|
|
55
488
|
exports.RetryErrorName = RetryErrorName;
|
|
489
|
+
exports.TableNameParameter = TableNameParameter;
|
|
490
|
+
exports.fromJitsuClassic = fromJitsuClassic;
|
|
491
|
+
exports.idToClassic = idToClassic;
|
|
492
|
+
exports.idToSnakeCaseFast = idToSnakeCaseFast;
|
|
493
|
+
exports.removeUndefined = removeUndefined;
|
|
494
|
+
exports.toClassic = toClassic;
|
|
495
|
+
exports.toJitsuClassic = toJitsuClassic;
|
|
496
|
+
exports.toSnakeCase = toSnakeCase;
|
|
497
|
+
exports.transfer = transfer;
|
|
498
|
+
exports.transferAsClassic = transferAsClassic;
|
|
499
|
+
exports.transferAsSnakeCase = transferAsSnakeCase;
|
|
500
|
+
exports.transferValue = transferValue;
|
|
501
|
+
exports.transferValueAsSnakeCase = transferValueAsSnakeCase;
|
package/dist/index.d.ts
CHANGED