@nice-code/common-errors 0.0.21 → 0.1.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/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # @nice-code/common-errors
2
+
3
+ Shared error domains for Standard Schema validation errors and Hono middleware integration.
4
+
5
+ See the [main README](../../README.md#nice-codecommon-errors) for full documentation and examples.
@@ -2594,7 +2594,7 @@ var niceCatchSValidation = () => async (ctx, next) => {
2594
2594
  }
2595
2595
  }
2596
2596
  };
2597
- // ../../node_modules/.bun/hono@4.12.14/node_modules/hono/dist/utils/url.js
2597
+ // ../../node_modules/.bun/hono@4.12.15/node_modules/hono/dist/utils/url.js
2598
2598
  var tryDecode = (str, decoder) => {
2599
2599
  try {
2600
2600
  return decoder(str);
@@ -2610,7 +2610,7 @@ var tryDecode = (str, decoder) => {
2610
2610
  };
2611
2611
  var decodeURIComponent_ = decodeURIComponent;
2612
2612
 
2613
- // ../../node_modules/.bun/hono@4.12.14/node_modules/hono/dist/utils/cookie.js
2613
+ // ../../node_modules/.bun/hono@4.12.15/node_modules/hono/dist/utils/cookie.js
2614
2614
  var validCookieNameRegEx = /^[\w!#$%&'*.^`|~+-]+$/;
2615
2615
  var validCookieValueRegEx = /^[ !#-:<-[\]-~]*$/;
2616
2616
  var trimCookieWhitespace = (value) => {
@@ -2661,7 +2661,7 @@ var parse = (cookie, name) => {
2661
2661
  return parsedCookie;
2662
2662
  };
2663
2663
 
2664
- // ../../node_modules/.bun/hono@4.12.14/node_modules/hono/dist/helper/cookie/index.js
2664
+ // ../../node_modules/.bun/hono@4.12.15/node_modules/hono/dist/helper/cookie/index.js
2665
2665
  var getCookie = (c, key, prefix) => {
2666
2666
  const cookie = c.req.raw.headers.get("Cookie");
2667
2667
  if (typeof key === "string") {
@@ -2684,7 +2684,7 @@ var getCookie = (c, key, prefix) => {
2684
2684
  return obj;
2685
2685
  };
2686
2686
 
2687
- // ../../node_modules/.bun/hono@4.12.14/node_modules/hono/dist/http-exception.js
2687
+ // ../../node_modules/.bun/hono@4.12.15/node_modules/hono/dist/http-exception.js
2688
2688
  var HTTPException = class extends Error {
2689
2689
  res;
2690
2690
  status;
@@ -2707,7 +2707,7 @@ var HTTPException = class extends Error {
2707
2707
  }
2708
2708
  };
2709
2709
 
2710
- // ../../node_modules/.bun/hono@4.12.14/node_modules/hono/dist/utils/buffer.js
2710
+ // ../../node_modules/.bun/hono@4.12.15/node_modules/hono/dist/utils/buffer.js
2711
2711
  var bufferToFormData = (arrayBuffer, contentType) => {
2712
2712
  const response = new Response(arrayBuffer, {
2713
2713
  headers: {
@@ -2717,7 +2717,7 @@ var bufferToFormData = (arrayBuffer, contentType) => {
2717
2717
  return response.formData();
2718
2718
  };
2719
2719
 
2720
- // ../../node_modules/.bun/hono@4.12.14/node_modules/hono/dist/validator/validator.js
2720
+ // ../../node_modules/.bun/hono@4.12.15/node_modules/hono/dist/validator/validator.js
2721
2721
  var jsonRegex = /^application\/([a-z-\.]+\+)?json(;\s*[a-zA-Z0-9\-]+\=([^;]+))*$/;
2722
2722
  var multipartRegex = /^multipart\/form-data(;\s?boundary=[a-zA-Z0-9'"()+_,\-./:=?]+)?$/;
2723
2723
  var urlencodedRegex = /^application\/x-www-form-urlencoded(;\s*[a-zA-Z0-9\-]+\=([^;]+))*$/;
@@ -2794,7 +2794,7 @@ var validator = (target, validationFunc) => {
2794
2794
  };
2795
2795
  };
2796
2796
 
2797
- // ../../node_modules/.bun/@hono+standard-validator@0.2.2+6f986fe481fa21c3/node_modules/@hono/standard-validator/dist/index.js
2797
+ // ../../node_modules/.bun/@hono+standard-validator@0.2.2+ba5f02f09be4faa7/node_modules/@hono/standard-validator/dist/index.js
2798
2798
  var RESTRICTED_DATA_FIELDS = { header: ["cookie"] };
2799
2799
  function sanitizeIssues(issues, vendor, target) {
2800
2800
  if (!(target in RESTRICTED_DATA_FIELDS))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-code/common-errors",
3
- "version": "0.0.21",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -29,13 +29,13 @@
29
29
  "build-types": "tsc --project tsconfig.build.json"
30
30
  },
31
31
  "dependencies": {
32
- "@nice-code/error": "0.0.21",
32
+ "@nice-code/error": "0.1.1",
33
33
  "@standard-schema/spec": "^1.1.0",
34
34
  "@hono/standard-validator": "^0.2.2",
35
35
  "http-status-codes": "^2.3.0"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "valibot": "^1.3.1",
39
- "hono": "^4.12.14"
39
+ "hono": "^4.12.15"
40
40
  }
41
41
  }