@ingram-tech/nk-forms 0.2.0 → 0.2.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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { type FormHandlerOptions, type FormSchema, handleFormSubmission, type RateLimitDecision, } from "./handler.js";
2
2
  export { type NotificationEmailOptions, type NotificationField, type RenderedEmail, renderNotificationEmail, } from "./email.js";
3
3
  export { mintFormToken } from "./token.js";
4
- export { createFormToken, verifyHuman } from "@ingram-tech/bot-protection";
4
+ export { checkBot, createFormToken, verifyHuman } from "@ingram-tech/bot-protection";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,oBAAoB,EACpB,KAAK,iBAAiB,GACtB,MAAM,cAAc,CAAC;AACtB,OAAO,EACN,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,uBAAuB,GACvB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,oBAAoB,EACpB,KAAK,iBAAiB,GACtB,MAAM,cAAc,CAAC;AACtB,OAAO,EACN,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,uBAAuB,GACvB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAM3C,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC"}
package/dist/index.js CHANGED
@@ -3,6 +3,9 @@
3
3
  export { handleFormSubmission, } from "./handler.js";
4
4
  export { renderNotificationEmail, } from "./email.js";
5
5
  export { mintFormToken } from "./token.js";
6
- // Re-export the underlying primitives so a form route is a single import.
7
- export { createFormToken, verifyHuman } from "@ingram-tech/bot-protection";
6
+ // Re-export the underlying primitives so a form route is a single import, and
7
+ // a site never needs to depend on @ingram-tech/bot-protection directly.
8
+ // `checkBot` is the raw Vercel BotID layer, for guarding non-form endpoints
9
+ // (a checkout, an authed route) where the full form pipeline doesn't fit.
10
+ export { checkBot, createFormToken, verifyHuman } from "@ingram-tech/bot-protection";
8
11
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,+EAA+E;AAC/E,OAAO,EAGN,oBAAoB,GAEpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAIN,uBAAuB,GACvB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,0EAA0E;AAC1E,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,+EAA+E;AAC/E,OAAO,EAGN,oBAAoB,GAEpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAIN,uBAAuB,GACvB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,8EAA8E;AAC9E,wEAAwE;AACxE,4EAA4E;AAC5E,0EAA0E;AAC1E,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ingram-tech/nk-forms",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Contact/signup form pipeline for Next.js sites — bot protection, validation, and escaped email notifications in one handler.",
5
5
  "license": "MIT",
6
6
  "type": "module",