@brainervirus/workit-pi 1.0.11 → 1.0.12

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.
Files changed (3) hide show
  1. package/dist/worker.js +21 -0
  2. package/dist/workit.js +3856 -3563
  3. package/package.json +1 -1
package/dist/worker.js CHANGED
@@ -7992,6 +7992,27 @@ var metadataLockSchema = object({
7992
7992
  }).strict();
7993
7993
  // packages/workit-core/src/core/authority.ts
7994
7994
  var verifiedAuthorities = new WeakMap;
7995
+ // packages/workit-core/src/core/config.ts
7996
+ var PRESETS = {
7997
+ gitflow: {
7998
+ allowed: ["feature/*", "bugfix/*", "hotfix/*", "release/*"],
7999
+ protected: ["main", "develop", "master", "prod", "production"]
8000
+ },
8001
+ "github-flow": { allowed: ["*"], protected: ["main"] },
8002
+ "trunk-based": { allowed: ["*"], protected: ["main"] },
8003
+ custom: { allowed: [], protected: [] }
8004
+ };
8005
+ var DEFAULTS = {
8006
+ locale: "en",
8007
+ localeOptions: ["en", "es-CL", "es-MX", "es-AR", "pt-BR"],
8008
+ timezone: "America/Santiago",
8009
+ branchPolicy: {
8010
+ preset: "gitflow",
8011
+ allowed: [...PRESETS.gitflow.allowed],
8012
+ protected: [...PRESETS.gitflow.protected]
8013
+ },
8014
+ commitPolicy: { preset: "conventional" }
8015
+ };
7995
8016
  // packages/workit-core/src/core/external-action.ts
7996
8017
  var externalActionSchema = discriminatedUnion("operation", [
7997
8018
  object({