easywork-common-lib 1.0.456 → 1.0.457
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/common/@types/interfaces/file.interface.d.ts +0 -2
- package/dist/common/functions/cripto.js +1 -2
- package/dist/common/functions/cripto.js.map +1 -1
- package/dist/common/functions/image.d.ts +0 -1
- package/dist/common/functions/image.js +1 -2
- package/dist/common/functions/image.js.map +1 -1
- package/dist/eslint.config.js +0 -1
- package/dist/eslint.config.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateId =
|
|
3
|
+
exports.generateId = generateId;
|
|
4
4
|
const nanoid_1 = require("nanoid");
|
|
5
5
|
async function generateId(length_ = 21) {
|
|
6
6
|
return (0, nanoid_1.nanoid)(length_);
|
|
7
7
|
}
|
|
8
|
-
exports.generateId = generateId;
|
|
9
8
|
//# sourceMappingURL=cripto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cripto.js","sourceRoot":"","sources":["../../../src/common/functions/cripto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cripto.js","sourceRoot":"","sources":["../../../src/common/functions/cripto.ts"],"names":[],"mappings":";;AAEA,gCAEC;AAJD,mCAAgC;AAEzB,KAAK,UAAU,UAAU,CAAC,UAAkB,EAAE;IACjD,OAAO,IAAA,eAAM,EAAC,OAAO,CAAC,CAAC;AAC3B,CAAC"}
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.resizeImage =
|
|
6
|
+
exports.resizeImage = resizeImage;
|
|
7
7
|
const rxjs_1 = require("rxjs");
|
|
8
8
|
const sharp_1 = __importDefault(require("sharp"));
|
|
9
9
|
function resizeImage(buffer, width = 200) {
|
|
@@ -11,5 +11,4 @@ function resizeImage(buffer, width = 200) {
|
|
|
11
11
|
.resize({ width })
|
|
12
12
|
.toBuffer());
|
|
13
13
|
}
|
|
14
|
-
exports.resizeImage = resizeImage;
|
|
15
14
|
//# sourceMappingURL=image.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.js","sourceRoot":"","sources":["../../../src/common/functions/image.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"image.js","sourceRoot":"","sources":["../../../src/common/functions/image.ts"],"names":[],"mappings":";;;;;AAGA,kCAMC;AATD,+BAAwC;AACxC,kDAA0B;AAE1B,SAAgB,WAAW,CAAC,MAAc,EAAE,QAAgB,GAAG;IAC3D,OAAO,IAAA,WAAI,EACP,IAAA,eAAK,EAAC,MAAM,CAAC;SACR,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;SACjB,QAAQ,EAAE,CAClB,CAAA;AACL,CAAC"}
|
package/dist/eslint.config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint.config.js","sourceRoot":"","sources":["../src/eslint.config.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"eslint.config.js","sourceRoot":"","sources":["../src/eslint.config.js"],"names":[],"mappings":";AAAA,MAAM,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC,OAAO,CAAC;AAEvD,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC;IACtB,SAAS,EAAE;QACT,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,QAAQ;KACjB;IACD,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV,YAAY,EAAE,eAAe;KAC9B;IACD,SAAS,EAAE;QACT,IAAI,EAAE;YACJ,mBAAmB,EAAE,KAAK;SAC3B;QACD,UAAU,EAAE;YACV,wBAAwB,EAAE;gBACxB,OAAO;gBACP;oBACE,gBAAgB,EAAE,KAAK;iBACxB;aACF;YACD,yBAAyB,EAAE;gBACzB,OAAO;gBACP;oBACE,UAAU,EAAE,IAAI;iBACjB;aACF;YACD,gCAAgC,EAAE,KAAK;YACvC,+BAA+B,EAAE;gBAC/B,OAAO;gBACP;oBACE,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,CAAC;oBAC3D,SAAS,EAAE;wBACT,UAAU,EAAE,IAAI;wBAChB,SAAS,EAAE,IAAI;qBAChB;iBACF;aACF;SACF;KACF;CACF,CAAC,CAAC"}
|