@promptowl/contextnest-community 1.0.1 → 1.1.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/CONFIGURATION.md +6 -4
- package/README.md +80 -7
- package/dist/{chunk-JMZ75ZCD.js → chunk-7UTMBL6Z.js} +1 -1
- package/dist/{chunk-5VHKEIAW.js → chunk-S2EWN2VA.js} +18 -36
- package/dist/{chunk-KQCWNHDM.js → chunk-TDAX3JOT.js} +25 -0
- package/dist/chunk-WCOUCBDJ.js +1406 -0
- package/dist/{chunk-7K2LLJXK.js → chunk-XRK6SQSC.js} +1 -1
- package/dist/index.js +1022 -1230
- package/dist/{keys-YV33AJK3.js → keys-73STFJJB.js} +1 -1
- package/dist/{review-service-4WS3XL6K.js → review-service-3OJIPYNV.js} +4 -4
- package/dist/{stewardship-service-C5D2O7ZE.js → stewardship-service-3XGX7QIN.js} +20 -4
- package/dist/{version-service-TFEYNPH7.js → version-service-UODXLAOJ.js} +2 -2
- package/dist/web3/assets/index-BLxRS7jD.js +673 -0
- package/dist/web3/assets/index-DszK6Vkc.css +1 -0
- package/dist/web3/index.html +2 -2
- package/package.json +136 -134
- package/dist/chunk-K22GWPT4.js +0 -498
- package/dist/web3/assets/index-DkLevP7k.js +0 -624
- package/dist/web3/assets/index-DpoBdKrd.css +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { randomBytes, createHash, timingSafeEqual } from "crypto";
|
|
3
3
|
import bcrypt from "bcryptjs";
|
|
4
4
|
var KEY_PREFIX = "cnst_";
|
|
5
|
-
var BCRYPT_ROUNDS = 12;
|
|
5
|
+
var BCRYPT_ROUNDS = process.env.VITEST ? 4 : 12;
|
|
6
6
|
function generateApiKey() {
|
|
7
7
|
return KEY_PREFIX + randomBytes(32).toString("hex");
|
|
8
8
|
}
|