pols-validator 2.3.0 → 2.3.1
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/rules.js +1 -1
- package/package.json +1 -1
- package/src/rules.ts +1 -1
package/dist/rules.js
CHANGED
|
@@ -408,7 +408,7 @@ class PRules extends rulesEngine_1.PRulesEngine {
|
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
join(separator) {
|
|
411
|
-
return this.isArray().add(this.
|
|
411
|
+
return this.isArray().add(this.join.name, (wrapper) => {
|
|
412
412
|
wrapper.value = wrapper.value.join(separator);
|
|
413
413
|
});
|
|
414
414
|
}
|
package/package.json
CHANGED
package/src/rules.ts
CHANGED
|
@@ -405,7 +405,7 @@ export class PRules extends PRulesEngine {
|
|
|
405
405
|
}
|
|
406
406
|
|
|
407
407
|
join(separator: string) {
|
|
408
|
-
return this.isArray().add(this.
|
|
408
|
+
return this.isArray().add(this.join.name, (wrapper: PRulesWrapper<unknown[]>) => {
|
|
409
409
|
wrapper.value = wrapper.value.join(separator) as any
|
|
410
410
|
})
|
|
411
411
|
}
|