@appium/support 3.1.7 → 3.1.9
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/build/lib/fs.d.ts +1 -1
- package/build/lib/fs.d.ts.map +1 -1
- package/build/lib/fs.js +2 -2
- package/build/lib/fs.js.map +1 -1
- package/build/lib/net.d.ts +2 -2
- package/build/lib/net.d.ts.map +1 -1
- package/build/lib/net.js +2 -2
- package/build/lib/zip.d.ts +17 -17
- package/build/lib/zip.d.ts.map +1 -1
- package/build/lib/zip.js +6 -6
- package/lib/fs.js +2 -2
- package/lib/net.js +2 -2
- package/lib/zip.js +6 -6
- package/package.json +5 -5
package/build/lib/fs.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export default fs;
|
|
|
3
3
|
/**
|
|
4
4
|
* The callback function which will be called during the directory walking
|
|
5
5
|
*/
|
|
6
|
-
export type WalkDirCallback = (itemPath: string, isDirectory: boolean) => boolean;
|
|
6
|
+
export type WalkDirCallback = (itemPath: string, isDirectory: boolean) => boolean | void;
|
|
7
7
|
export type glob = typeof glob;
|
|
8
8
|
export type mv = typeof mv;
|
|
9
9
|
export type PathLike = import('fs').PathLike;
|
package/build/lib/fs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../lib/fs.js"],"names":[],"mappings":";;;;;yCAmYW,MAAM,eACN,OAAO,KACN,OAAO;;;
|
|
1
|
+
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../lib/fs.js"],"names":[],"mappings":";;;;;yCAmYW,MAAM,eACN,OAAO,KACN,OAAO,GAAC,IAAI;;;uBAMX,OAAO,IAAI,EAAE,QAAQ;kEAMvB,MAAM,UACN,OAAO,GAAC,OAAO,SAAS,EAAE,gBAAgB,CAAC,OAAO,CAAC,qGAIjD,EAAE;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAC,CAAC;;IAjXlD;;;;;;;;OAQG;IACH,yEAOC;IAED;;;;;;;;OAQG;IACH,4EAUC;IAED;;;OAGG;IACH,sEAEC;IAMkB,6FAAmE;;IAUtF;;;;;;;OAOG;IACH,0IAQC;IACD;;;;;;;OAOG;IACH,6GAKC;IAED;;;;OAIG;IACH,sEAEC;IAKc,uFAAwD;;;IAYtD,uFAAsD;;;IAQvE;;;;;OAKG;IACH,uGAcC;IAED;;;;;;;OAOG;IACH,gFAEC;IAED;;;;OAIG;IACH,gFAEC;IAED;;;;;;;OAOG;IAEH,4GAwEC;IACD;;;;;;OAMG;IACH,oHAUC;IACD;;;;;;OAMG;IACH,8CASC;;;;;;;;;;;;IA+EA;;;OAOF"}
|
package/build/lib/fs.js
CHANGED
|
@@ -184,8 +184,8 @@ const fs = {
|
|
|
184
184
|
* @throws {Error} If the `dir` parameter contains a path to an invalid folder
|
|
185
185
|
* @returns {Promise<string?>} returns the found path or null if the item was not found
|
|
186
186
|
*/
|
|
187
|
+
// eslint-disable-next-line promise/prefer-await-to-callbacks
|
|
187
188
|
async walkDir(dir, recursive, callback) {
|
|
188
|
-
//eslint-disable-line promise/prefer-await-to-callbacks
|
|
189
189
|
let isValidRoot = false;
|
|
190
190
|
let errMsg = null;
|
|
191
191
|
try {
|
|
@@ -347,7 +347,7 @@ exports.default = fs;
|
|
|
347
347
|
* @callback WalkDirCallback
|
|
348
348
|
* @param {string} itemPath The path of the file or folder
|
|
349
349
|
* @param {boolean} isDirectory Shows if it is a directory or a file
|
|
350
|
-
* @return {boolean} return true if you want to stop walking
|
|
350
|
+
* @return {boolean|void} return true if you want to stop walking
|
|
351
351
|
*/
|
|
352
352
|
/**
|
|
353
353
|
* @typedef {import('glob')} glob
|
package/build/lib/fs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs.js","sourceRoot":"","sources":["../../lib/fs.js"],"names":[],"mappings":";AAAA,YAAY;;;;;;AAEZ,wDAAyB;AACzB,oDAA4B;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I,EAAE,aAAU,CAAC,IAAI;IACrB,OAAO,EAAE,aAAU,CAAC,OAAO;IAC3B,MAAM,EAAE,aAAU,CAAC,MAAM;IACzB,KAAK,EAAE,kBAAC,CAAC,SAAS,CAAC,UAAK,CAAC;IACzB,SAAS,EAAE,aAAU,CAAC,SAAS;IAE/B,mBAAmB;IAEnB;;;OAGG;IACH,IAAI,EAAE,cAAS,CAAC,IAAI;IAEpB;;;OAGG;IACH,IAAI,EAAE,cAAS,CAAC,IAAI;IAEpB;;;OAGG;IACH,IAAI,EAAE,cAAS,CAAC,IAAI;IAEpB;;;OAGG;IACH,IAAI,EAAE,cAAS,CAAC,IAAI;CACrB,CAAC;AAEM,gBAAE;AACV,kBAAe,EAAE,CAAC;AAElB;;;;;;GAMG;AAEH;;;;GAIG;AAEH;;;;;;;;;GASG"}
|
package/build/lib/net.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export type HttpUploadOptions = {
|
|
|
55
55
|
/**
|
|
56
56
|
* - Additional request headers mapping
|
|
57
57
|
*/
|
|
58
|
-
headers
|
|
58
|
+
headers?: import("@appium/types").HTTPHeaders | undefined;
|
|
59
59
|
/**
|
|
60
60
|
* - The HTTP method used for file upload
|
|
61
61
|
*/
|
|
@@ -74,7 +74,7 @@ export type HttpUploadOptions = {
|
|
|
74
74
|
* to be included into the upload request. This property is only considered if
|
|
75
75
|
* `fileFieldName` is set
|
|
76
76
|
*/
|
|
77
|
-
formFields?: Record<string, any> | undefined;
|
|
77
|
+
formFields?: Record<string, any> | [string, any][] | undefined;
|
|
78
78
|
};
|
|
79
79
|
/**
|
|
80
80
|
* Uploads the given file to a remote location. HTTP(S) and FTP
|
package/build/lib/net.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"net.d.ts","sourceRoot":"","sources":["../../lib/net.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAsTc,MAAM;;;;UACN,MAAM;;;;;;aAMN,KAAK;YACL,KAAK;aACL,KAAK;mBACL,KAAK;gBACL,KAAK
|
|
1
|
+
{"version":3,"file":"net.d.ts","sourceRoot":"","sources":["../../lib/net.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAsTc,MAAM;;;;UACN,MAAM;;;;;;aAMN,KAAK;YACL,KAAK;aACL,KAAK;mBACL,KAAK;gBACL,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAzJnB;;;;;;;;GAQG;AACH,sCALW,MAAM,aACN,MAAM,0FAEJ,QAAQ,IAAI,CAAC,CAyCzB;AAED;;;;;;;GAOG;AACH,wCALW,MAAM,WACN,MAAM,+EAkEhB"}
|
package/build/lib/net.js
CHANGED
|
@@ -284,12 +284,12 @@ exports.downloadFile = downloadFile;
|
|
|
284
284
|
/**
|
|
285
285
|
* Specific options for {@linkcode uploadFile} if the remote location uses the `http(s)` protocol
|
|
286
286
|
* @typedef HttpUploadOptions
|
|
287
|
-
* @property {
|
|
287
|
+
* @property {import('@appium/types').HTTPHeaders} [headers] - Additional request headers mapping
|
|
288
288
|
* @property {import('axios').Method} [method='POST'] - The HTTP method used for file upload
|
|
289
289
|
* @property {number} [timeout] - The actual request timeout in milliseconds; defaults to {@linkcode DEFAULT_TIMEOUT_MS}
|
|
290
290
|
* @property {string} [fileFieldName='file'] - The name of the form field containing the file
|
|
291
291
|
* content to be uploaded. Any falsy value make the request to use non-multipart upload
|
|
292
|
-
* @property {Record<string,any>} [formFields] - The additional form fields
|
|
292
|
+
* @property {Record<string, any> | [string, any][]} [formFields] - The additional form fields
|
|
293
293
|
* to be included into the upload request. This property is only considered if
|
|
294
294
|
* `fileFieldName` is set
|
|
295
295
|
*/
|
package/build/lib/zip.d.ts
CHANGED
|
@@ -34,29 +34,29 @@ export type ZipEntry = {
|
|
|
34
34
|
};
|
|
35
35
|
export type ZipOptions = {
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Whether to encode
|
|
38
38
|
* the resulting archive to a base64-encoded string
|
|
39
39
|
*/
|
|
40
|
-
encodeToBase64
|
|
40
|
+
encodeToBase64?: boolean | undefined;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Whether to log the actual
|
|
43
43
|
* archiver performance
|
|
44
44
|
*/
|
|
45
|
-
isMetered
|
|
45
|
+
isMetered?: boolean | undefined;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* The maximum size of
|
|
48
48
|
* the resulting archive in bytes. This is set to 1GB by default, because
|
|
49
49
|
* Appium limits the maximum HTTP body size to 1GB. Also, the NodeJS heap
|
|
50
50
|
* size must be enough to keep the resulting object (usually this size is
|
|
51
51
|
* limited to 1.4 GB)
|
|
52
52
|
*/
|
|
53
|
-
maxSize
|
|
53
|
+
maxSize?: number | undefined;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* The compression level. The maximum
|
|
56
56
|
* level is 9 (the best compression, worst performance). The minimum
|
|
57
57
|
* compression level is 0 (no compression).
|
|
58
58
|
*/
|
|
59
|
-
level
|
|
59
|
+
level?: number | undefined;
|
|
60
60
|
};
|
|
61
61
|
export type ZipCompressionOptions = {
|
|
62
62
|
/**
|
|
@@ -67,14 +67,14 @@ export type ZipCompressionOptions = {
|
|
|
67
67
|
};
|
|
68
68
|
export type ZipSourceOptions = {
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
70
|
+
* - GLOB pattern for compression
|
|
71
71
|
*/
|
|
72
|
-
pattern
|
|
72
|
+
pattern?: string | undefined;
|
|
73
73
|
/**
|
|
74
74
|
* - The source root folder (the parent folder of
|
|
75
75
|
* the destination file by default)
|
|
76
76
|
*/
|
|
77
|
-
cwd
|
|
77
|
+
cwd?: string | undefined;
|
|
78
78
|
/**
|
|
79
79
|
* - The list of ignored patterns
|
|
80
80
|
*/
|
|
@@ -116,16 +116,16 @@ export function extractAllTo(zipFilePath: string, destDir: string, opts?: Extrac
|
|
|
116
116
|
export function readEntries(zipFilePath: string, onEntry: Function): Promise<any>;
|
|
117
117
|
/**
|
|
118
118
|
* @typedef ZipOptions
|
|
119
|
-
* @property {boolean} encodeToBase64
|
|
119
|
+
* @property {boolean} [encodeToBase64=false] Whether to encode
|
|
120
120
|
* the resulting archive to a base64-encoded string
|
|
121
|
-
* @property {boolean} isMetered
|
|
121
|
+
* @property {boolean} [isMetered=true] Whether to log the actual
|
|
122
122
|
* archiver performance
|
|
123
|
-
* @property {number} maxSize
|
|
123
|
+
* @property {number} [maxSize=1073741824] The maximum size of
|
|
124
124
|
* the resulting archive in bytes. This is set to 1GB by default, because
|
|
125
125
|
* Appium limits the maximum HTTP body size to 1GB. Also, the NodeJS heap
|
|
126
126
|
* size must be enough to keep the resulting object (usually this size is
|
|
127
127
|
* limited to 1.4 GB)
|
|
128
|
-
* @property {number} level
|
|
128
|
+
* @property {number} [level=9] The compression level. The maximum
|
|
129
129
|
* level is 9 (the best compression, worst performance). The minimum
|
|
130
130
|
* compression level is 0 (no compression).
|
|
131
131
|
*/
|
|
@@ -162,8 +162,8 @@ export function assertValidZip(filePath: string): Promise<boolean>;
|
|
|
162
162
|
*/
|
|
163
163
|
/**
|
|
164
164
|
* @typedef ZipSourceOptions
|
|
165
|
-
* @property {string} pattern
|
|
166
|
-
* @property {string} cwd - The source root folder (the parent folder of
|
|
165
|
+
* @property {string} [pattern='**\/*'] - GLOB pattern for compression
|
|
166
|
+
* @property {string} [cwd] - The source root folder (the parent folder of
|
|
167
167
|
* the destination file by default)
|
|
168
168
|
* @property {string[]} [ignore] - The list of ignored patterns
|
|
169
169
|
*/
|
package/build/lib/zip.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zip.d.ts","sourceRoot":"","sources":["../../lib/zip.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;WAySc,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"zip.d.ts","sourceRoot":"","sources":["../../lib/zip.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;WAySc,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAwLX,MAAM;;;;;;;;;;;;;;;;;AAjTpB;;;;;;;;;GASG;AAEH;;;;;;GAMG;AACH,0CAJW,MAAM,WACN,MAAM,uDAuBhB;AAiFD;;;;;GAKG;AAEH;;;;;;;;GAQG;AACH,yCANW,MAAM,mCA6BhB;AAED;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;GASG;AACH,uCAPW,MAAM,SACN,UAAU,GACR,QAAQ,MAAM,CAAC,CAwF3B;AAhMD;;;;;;GAMG;AACH,yCAJW,MAAM,OAAO,SACb,MAAM,KAAK,WACX,MAAM,mCAmChB;AA0JD;;;;;GAKG;AACH,yCAHW,MAAM,oBA2BhB;AAED;;;;GAIG;AAEH;;;;;;GAMG;AAEH;;;;;;;GAOG;AACH,mCALW,MAAM,QACN,gBAAgB,SAChB,qBAAqB,gBA8B/B"}
|
package/build/lib/zip.js
CHANGED
|
@@ -309,16 +309,16 @@ async function readEntries(zipFilePath, onEntry) {
|
|
|
309
309
|
exports.readEntries = readEntries;
|
|
310
310
|
/**
|
|
311
311
|
* @typedef ZipOptions
|
|
312
|
-
* @property {boolean} encodeToBase64
|
|
312
|
+
* @property {boolean} [encodeToBase64=false] Whether to encode
|
|
313
313
|
* the resulting archive to a base64-encoded string
|
|
314
|
-
* @property {boolean} isMetered
|
|
314
|
+
* @property {boolean} [isMetered=true] Whether to log the actual
|
|
315
315
|
* archiver performance
|
|
316
|
-
* @property {number} maxSize
|
|
316
|
+
* @property {number} [maxSize=1073741824] The maximum size of
|
|
317
317
|
* the resulting archive in bytes. This is set to 1GB by default, because
|
|
318
318
|
* Appium limits the maximum HTTP body size to 1GB. Also, the NodeJS heap
|
|
319
319
|
* size must be enough to keep the resulting object (usually this size is
|
|
320
320
|
* limited to 1.4 GB)
|
|
321
|
-
* @property {number} level
|
|
321
|
+
* @property {number} [level=9] The compression level. The maximum
|
|
322
322
|
* level is 9 (the best compression, worst performance). The minimum
|
|
323
323
|
* compression level is 0 (no compression).
|
|
324
324
|
*/
|
|
@@ -446,8 +446,8 @@ exports.assertValidZip = assertValidZip;
|
|
|
446
446
|
*/
|
|
447
447
|
/**
|
|
448
448
|
* @typedef ZipSourceOptions
|
|
449
|
-
* @property {string} pattern
|
|
450
|
-
* @property {string} cwd - The source root folder (the parent folder of
|
|
449
|
+
* @property {string} [pattern='**\/*'] - GLOB pattern for compression
|
|
450
|
+
* @property {string} [cwd] - The source root folder (the parent folder of
|
|
451
451
|
* the destination file by default)
|
|
452
452
|
* @property {string[]} [ignore] - The list of ignored patterns
|
|
453
453
|
*/
|
package/lib/fs.js
CHANGED
|
@@ -211,8 +211,8 @@ const fs = {
|
|
|
211
211
|
* @throws {Error} If the `dir` parameter contains a path to an invalid folder
|
|
212
212
|
* @returns {Promise<string?>} returns the found path or null if the item was not found
|
|
213
213
|
*/
|
|
214
|
+
// eslint-disable-next-line promise/prefer-await-to-callbacks
|
|
214
215
|
async walkDir(dir, recursive, callback) {
|
|
215
|
-
//eslint-disable-line promise/prefer-await-to-callbacks
|
|
216
216
|
let isValidRoot = false;
|
|
217
217
|
let errMsg = null;
|
|
218
218
|
try {
|
|
@@ -387,7 +387,7 @@ export default fs;
|
|
|
387
387
|
* @callback WalkDirCallback
|
|
388
388
|
* @param {string} itemPath The path of the file or folder
|
|
389
389
|
* @param {boolean} isDirectory Shows if it is a directory or a file
|
|
390
|
-
* @return {boolean} return true if you want to stop walking
|
|
390
|
+
* @return {boolean|void} return true if you want to stop walking
|
|
391
391
|
*/
|
|
392
392
|
|
|
393
393
|
/**
|
package/lib/net.js
CHANGED
|
@@ -325,12 +325,12 @@ export {uploadFile, downloadFile};
|
|
|
325
325
|
/**
|
|
326
326
|
* Specific options for {@linkcode uploadFile} if the remote location uses the `http(s)` protocol
|
|
327
327
|
* @typedef HttpUploadOptions
|
|
328
|
-
* @property {
|
|
328
|
+
* @property {import('@appium/types').HTTPHeaders} [headers] - Additional request headers mapping
|
|
329
329
|
* @property {import('axios').Method} [method='POST'] - The HTTP method used for file upload
|
|
330
330
|
* @property {number} [timeout] - The actual request timeout in milliseconds; defaults to {@linkcode DEFAULT_TIMEOUT_MS}
|
|
331
331
|
* @property {string} [fileFieldName='file'] - The name of the form field containing the file
|
|
332
332
|
* content to be uploaded. Any falsy value make the request to use non-multipart upload
|
|
333
|
-
* @property {Record<string,any>} [formFields] - The additional form fields
|
|
333
|
+
* @property {Record<string, any> | [string, any][]} [formFields] - The additional form fields
|
|
334
334
|
* to be included into the upload request. This property is only considered if
|
|
335
335
|
* `fileFieldName` is set
|
|
336
336
|
*/
|
package/lib/zip.js
CHANGED
|
@@ -336,16 +336,16 @@ async function readEntries(zipFilePath, onEntry) {
|
|
|
336
336
|
|
|
337
337
|
/**
|
|
338
338
|
* @typedef ZipOptions
|
|
339
|
-
* @property {boolean} encodeToBase64
|
|
339
|
+
* @property {boolean} [encodeToBase64=false] Whether to encode
|
|
340
340
|
* the resulting archive to a base64-encoded string
|
|
341
|
-
* @property {boolean} isMetered
|
|
341
|
+
* @property {boolean} [isMetered=true] Whether to log the actual
|
|
342
342
|
* archiver performance
|
|
343
|
-
* @property {number} maxSize
|
|
343
|
+
* @property {number} [maxSize=1073741824] The maximum size of
|
|
344
344
|
* the resulting archive in bytes. This is set to 1GB by default, because
|
|
345
345
|
* Appium limits the maximum HTTP body size to 1GB. Also, the NodeJS heap
|
|
346
346
|
* size must be enough to keep the resulting object (usually this size is
|
|
347
347
|
* limited to 1.4 GB)
|
|
348
|
-
* @property {number} level
|
|
348
|
+
* @property {number} [level=9] The compression level. The maximum
|
|
349
349
|
* level is 9 (the best compression, worst performance). The minimum
|
|
350
350
|
* compression level is 0 (no compression).
|
|
351
351
|
*/
|
|
@@ -485,8 +485,8 @@ async function assertValidZip(filePath) {
|
|
|
485
485
|
|
|
486
486
|
/**
|
|
487
487
|
* @typedef ZipSourceOptions
|
|
488
|
-
* @property {string} pattern
|
|
489
|
-
* @property {string} cwd - The source root folder (the parent folder of
|
|
488
|
+
* @property {string} [pattern='**\/*'] - GLOB pattern for compression
|
|
489
|
+
* @property {string} [cwd] - The source root folder (the parent folder of
|
|
490
490
|
* the destination file by default)
|
|
491
491
|
* @property {string[]} [ignore] - The list of ignored patterns
|
|
492
492
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/support",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.9",
|
|
4
4
|
"description": "Support libs used across appium packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@appium/tsconfig": "^0.2.4",
|
|
45
|
-
"@appium/types": "^0.10.
|
|
45
|
+
"@appium/types": "^0.10.3",
|
|
46
46
|
"@colors/colors": "1.5.0",
|
|
47
|
-
"@types/archiver": "5.3.
|
|
47
|
+
"@types/archiver": "5.3.2",
|
|
48
48
|
"@types/base64-stream": "1.0.2",
|
|
49
49
|
"@types/find-root": "1.1.2",
|
|
50
50
|
"@types/glob": "8.1.0",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"source-map-support": "0.5.21",
|
|
96
96
|
"supports-color": "8.1.1",
|
|
97
97
|
"teen_process": "2.0.2",
|
|
98
|
-
"type-fest": "3.
|
|
98
|
+
"type-fest": "3.7.2",
|
|
99
99
|
"uuid": "9.0.0",
|
|
100
100
|
"which": "3.0.0",
|
|
101
101
|
"yauzl": "2.10.0"
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"publishConfig": {
|
|
108
108
|
"access": "public"
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "a11a6ede3320c0a58aad82fd7fc4c8b8ba75ae95",
|
|
111
111
|
"typedoc": {
|
|
112
112
|
"entryPoint": "./lib/index.js"
|
|
113
113
|
}
|