hillclimb 0.5.3 → 0.5.4
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/cli.js +18 -1
- package/dist/pattern-worker.js +18 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -10475,6 +10475,22 @@ var patterns_default = {
|
|
|
10475
10475
|
]
|
|
10476
10476
|
};
|
|
10477
10477
|
|
|
10478
|
+
// src/middleware/patterns-local.json
|
|
10479
|
+
var patterns_local_default = {
|
|
10480
|
+
patterns: [
|
|
10481
|
+
{
|
|
10482
|
+
name: "Hugging Face User Access Token",
|
|
10483
|
+
regex: "(?:(?<![A-Za-z0-9])|(?<=\\\\[nrt]))hf_[A-Za-z0-9]{34,40}",
|
|
10484
|
+
confidence: "high"
|
|
10485
|
+
},
|
|
10486
|
+
{
|
|
10487
|
+
name: "Hugging Face Organization API Token",
|
|
10488
|
+
regex: "(?:(?<![A-Za-z0-9])|(?<=\\\\[nrt]))api_org_[A-Za-z0-9]{34,40}",
|
|
10489
|
+
confidence: "high"
|
|
10490
|
+
}
|
|
10491
|
+
]
|
|
10492
|
+
};
|
|
10493
|
+
|
|
10478
10494
|
// src/middleware/pattern-core.ts
|
|
10479
10495
|
var DELIMITER_SUFFIX = /\(=\| =\|:\| :\)$/;
|
|
10480
10496
|
var HAS_VALUE_MATCHER = /[[{+*]|\\[wdWDsS]/;
|
|
@@ -10510,7 +10526,8 @@ function countCaptureGroups(source) {
|
|
|
10510
10526
|
}
|
|
10511
10527
|
function compilePatterns() {
|
|
10512
10528
|
const patterns = [];
|
|
10513
|
-
|
|
10529
|
+
const allPatterns = [...patterns_default.patterns, ...patterns_local_default.patterns];
|
|
10530
|
+
for (const p7 of allPatterns) {
|
|
10514
10531
|
if (p7.confidence !== "high") continue;
|
|
10515
10532
|
if (DELIMITER_SUFFIX.test(p7.regex)) continue;
|
|
10516
10533
|
if (!HAS_VALUE_MATCHER.test(p7.regex)) continue;
|
package/dist/pattern-worker.js
CHANGED
|
@@ -8057,6 +8057,22 @@ var patterns_default = {
|
|
|
8057
8057
|
]
|
|
8058
8058
|
};
|
|
8059
8059
|
|
|
8060
|
+
// src/middleware/patterns-local.json
|
|
8061
|
+
var patterns_local_default = {
|
|
8062
|
+
patterns: [
|
|
8063
|
+
{
|
|
8064
|
+
name: "Hugging Face User Access Token",
|
|
8065
|
+
regex: "(?:(?<![A-Za-z0-9])|(?<=\\\\[nrt]))hf_[A-Za-z0-9]{34,40}",
|
|
8066
|
+
confidence: "high"
|
|
8067
|
+
},
|
|
8068
|
+
{
|
|
8069
|
+
name: "Hugging Face Organization API Token",
|
|
8070
|
+
regex: "(?:(?<![A-Za-z0-9])|(?<=\\\\[nrt]))api_org_[A-Za-z0-9]{34,40}",
|
|
8071
|
+
confidence: "high"
|
|
8072
|
+
}
|
|
8073
|
+
]
|
|
8074
|
+
};
|
|
8075
|
+
|
|
8060
8076
|
// src/middleware/pattern-core.ts
|
|
8061
8077
|
var DELIMITER_SUFFIX = /\(=\| =\|:\| :\)$/;
|
|
8062
8078
|
var HAS_VALUE_MATCHER = /[[{+*]|\\[wdWDsS]/;
|
|
@@ -8092,7 +8108,8 @@ function countCaptureGroups(source) {
|
|
|
8092
8108
|
}
|
|
8093
8109
|
function compilePatterns() {
|
|
8094
8110
|
const patterns = [];
|
|
8095
|
-
|
|
8111
|
+
const allPatterns = [...patterns_default.patterns, ...patterns_local_default.patterns];
|
|
8112
|
+
for (const p of allPatterns) {
|
|
8096
8113
|
if (p.confidence !== "high") continue;
|
|
8097
8114
|
if (DELIMITER_SUFFIX.test(p.regex)) continue;
|
|
8098
8115
|
if (!HAS_VALUE_MATCHER.test(p.regex)) continue;
|