with-bottleneck 0.1.0 → 0.1.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"genBottleneck.js","sourceRoot":"","sources":["../../src/domain.operations/genBottleneck.ts"],"names":[],"mappings":";;;AAIA,2EAAwE;AACxE,yEAAsE;AACtE,2EAAwE;AACxE,2DAAwD;AACxD,wDAAqD;AAErD;;;GAGG;AACI,MAAM,aAAa,GAAG,CAAC,KAA+B,EAAc,EAAE;IAC3E,kBAAkB;IAClB,IAAA,qCAAiB,EAAC,EAAE,MAAM,EAAE,KAAK,IAAI,IAAI,EAAE,CAAC,CAAC;IAE7C,wDAAwD;IACxD,MAAM,WAAW,GAAG,IAAA,uCAAkB,EAAC,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,CAAC;IAC5E,MAAM,SAAS,GAAG,IAAA,2BAAY,EAAC,EAAE,WAAW,EAAE,CAAC,CAAC;IAEhD,oDAAoD;IACpD,MAAM,QAAQ,GAAG,IAAA,yBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,IAAI,IAAI,EAAE,CAAC,CAAC;IAEpE,+BAA+B;IAC/B,MAAM,QAAQ,GAAG,KAAK,EAAK,EAAoB,EAAc,EAAE,CAC7D,IAAA,uCAAkB,EAAC,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAC;IAElD,OAAO;QACL,SAAS;QACT,QAAQ;KACT,CAAC;AACJ,CAAC,CAAC;AAnBW,QAAA,aAAa,iBAmBxB"}
1
+ {"version":3,"file":"genBottleneck.js","sourceRoot":"","sources":["../../src/domain.operations/genBottleneck.ts"],"names":[],"mappings":";;;AAKA,2EAAwE;AACxE,yEAAsE;AACtE,2EAAwE;AACxE,2DAAwD;AACxD,wDAAqD;AAErD;;;GAGG;AACI,MAAM,aAAa,GAAG,CAAC,KAA+B,EAAc,EAAE;IAC3E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B,CAAC,CAAC;AA/CW,QAAA,cAAc,kBA+CzB"}
1
+ {"version":3,"file":"withBottleneck.js","sourceRoot":"","sources":["../../src/domain.operations/withBottleneck.ts"],"names":[],"mappings":";;;AAEA,0FAAuF;AAEvF;;;GAGG;AACI,MAAM,cAAc,GAAG,CAK5B,KAAa,EACb,OAEC,EACO,EAAE;IACV,MAAM,OAAO,GAAG,KAAK,EACnB,GAAG,IAAwB,EACW,EAAE;QACxC,8DAA8D;QAC9D,MAAM,UAAU,GAAG,IAAA,qDAAyB,EAAC;YAC3C,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,IAAI;SACL,CAAC,CAAC;QAEH,kCAAkC;QAClC;;;;;;;;;WASG;QACH,OAAO,UAAU,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAE9C,CAAC;IACJ,CAAC,CAAC;IAEF;;;;;;;;;;OAUG;IACH,OAAO,OAAiB,CAAC;AAC3B,CAAC,CAAC;AA/CW,QAAA,cAAc,kBA+CzB"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "with-bottleneck",
3
3
  "author": "ehmpathy",
4
4
  "description": "rate limit and concurrency control utilities",
5
- "version": "0.1.0",
5
+ "version": "0.1.2",
6
6
  "repository": "ehmpathy/with-bottleneck",
7
7
  "homepage": "https://github.com/ehmpathy/with-bottleneck",
8
8
  "keywords": [
@@ -42,55 +42,58 @@
42
42
  "test:lint:deps": "npx depcheck -c ./.depcheckrc.yml",
43
43
  "test:lint:biome": "biome check --diagnostic-level=error",
44
44
  "test:lint:biome:all": "biome check",
45
- "test:lint": "npm run test:lint:biome && npm run test:lint:deps",
46
- "test:unit": "jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main') $([ -n $RESNAP ] && echo '--updateSnapshot')",
47
- "test:integration": "jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main') $([ -n $RESNAP ] && echo '--updateSnapshot')",
48
- "test:acceptance:locally": "npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests $([ -n $RESNAP ] && echo '--updateSnapshot')",
49
- "test": "eval $(ECHO=true npm run --silent test:auth) && npm run test:commits && npm run test:types && npm run test:format && npm run test:lint && npm run test:unit && npm run test:integration && npm run test:acceptance:locally",
50
- "test:acceptance": "npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests $([ -n $RESNAP ] && echo '--updateSnapshot')",
45
+ "test:lint": "npm run test:lint:biome && npm run test:lint:cycles && npm run test:lint:deps",
46
+ "test:unit": "set -eu && jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests $([ -n \"${CI:-}\" ] && echo '--ci') $([ \"${THOROUGH:-}\" != \"true\" ] && echo '--changedSince=main') $([ \"${RESNAP:-}\" = \"true\" ] && echo '--updateSnapshot')",
47
+ "test:integration": "set -eu && jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests $([ -n \"${CI:-}\" ] && echo '--ci') $([ \"${THOROUGH:-}\" != \"true\" ] && echo '--changedSince=main') $([ \"${RESNAP:-}\" = \"true\" ] && echo '--updateSnapshot')",
48
+ "test:acceptance:locally": "set -eu && npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests $([ \"${RESNAP:-}\" = \"true\" ] && echo '--updateSnapshot')",
49
+ "test": "set -eu && npm run test:commits && npm run test:types && npm run test:format && npm run test:lint && npm run test:unit && npm run test:integration && npm run test:acceptance:locally",
50
+ "test:acceptance": "set -eu && npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests $([ -n \"${CI:-}\" ] && echo '--ci') $([ \"${RESNAP:-}\" = \"true\" ] && echo '--updateSnapshot')",
51
51
  "prepush": "npm run test && npm run build",
52
52
  "prepublish": "npm run build",
53
53
  "preversion": "npm run prepush",
54
54
  "postversion": "git push origin HEAD --tags --no-verify",
55
55
  "prepare:husky": "husky install && chmod ug+x .husky/*",
56
- "prepare:rhachet": "rhachet init --hooks --roles behaver mechanic reviewer",
56
+ "prepare:rhachet": "rhachet init --hooks --roles mechanic behaver driver architect ergonomist reviewer dreamer dispatcher",
57
57
  "prepare": "if [ -e .git ] && [ -z $CI ]; then npm run prepare:husky && npm run prepare:rhachet; fi",
58
- "upgrade:rhachet": "rhachet upgrade"
58
+ "upgrade:rhachet": "rhachet upgrade",
59
+ "test:lint:cycles": "dpdm --no-warning --no-tree --exit-code circular:1 --exclude \"$(yq -r '.exclude | join(\"|\") // \"^$\"' .dpdmrc.yaml)\" 'src/**/*.ts'"
59
60
  },
60
61
  "dependencies": {
61
- "helpful-errors": "1.5.3",
62
+ "domain-objects": "0.31.13",
63
+ "helpful-errors": "1.7.3",
62
64
  "iso-time": "1.11.7"
63
65
  },
64
66
  "devDependencies": {
65
67
  "@biomejs/biome": "2.3.8",
66
68
  "@commitlint/cli": "19.5.0",
67
69
  "@commitlint/config-conventional": "19.5.0",
70
+ "@jest/globals": "30.2.0",
68
71
  "@swc/core": "1.15.3",
69
72
  "@swc/jest": "0.2.39",
70
- "@tsconfig/node-lts-strictest": "18.12.1",
71
73
  "@tsconfig/node20": "20.1.5",
72
74
  "@tsconfig/strictest": "2.0.5",
73
75
  "@types/jest": "30.0.0",
74
76
  "@types/node": "22.15.21",
75
77
  "core-js": "3.26.1",
76
78
  "cz-conventional-changelog": "3.3.0",
77
- "declapract": "0.13.14",
78
- "declapract-typescript-ehmpathy": "0.47.36",
79
- "declastruct": "1.7.3",
80
- "declastruct-github": "1.3.0",
79
+ "declapract": "0.13.21",
80
+ "declapract-typescript-ehmpathy": "0.47.74",
81
+ "declastruct": "1.9.1",
82
+ "declastruct-github": "1.4.0",
81
83
  "depcheck": "1.4.3",
82
- "domain-objects": "0.31.9",
84
+ "domain-objects": "0.31.13",
85
+ "dpdm": "4.0.1",
83
86
  "esbuild-register": "3.6.0",
84
87
  "husky": "8.0.3",
85
88
  "jest": "30.2.0",
86
- "rhachet": "1.41.9",
89
+ "rhachet": "1.41.16",
87
90
  "rhachet-brains-anthropic": "0.4.1",
88
91
  "rhachet-brains-xai": "0.3.3",
89
- "rhachet-roles-bhrain": "0.27.6",
90
- "rhachet-roles-bhuild": "0.21.9",
91
- "rhachet-roles-ehmpathy": "1.35.5",
92
- "test-fns": "1.7.2",
93
- "ts-jest": "29.1.3",
92
+ "rhachet-roles-bhrain": "0.28.0",
93
+ "rhachet-roles-bhuild": "0.21.13",
94
+ "rhachet-roles-ehmpathy": "1.35.12",
95
+ "rhachet-roles-rhachet": "0.1.7",
96
+ "test-fns": "1.15.8",
94
97
  "ts-node": "10.9.2",
95
98
  "tsc-alias": "1.8.10",
96
99
  "tsx": "4.20.6",