@friendlycaptcha/server-sdk 0.1.1 → 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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.2
4
+
5
+ * Add missing `.js` to internal import statement - fixes an import error if you are not using Typescript.
6
+
7
+ ## 0.1.1
8
+
9
+ * Fix SDK header name (internal change).
10
+
3
11
  ## 0.1.0
4
12
 
5
13
  Initial release.
@@ -1 +1 @@
1
- export * from "./types";
1
+ export * from "./types.js";
package/dist/api/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./types";
1
+ export * from "./types.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { SiteverifyErrorResponseErrorData, SiteverifyResponse } from "../api";
1
+ import type { SiteverifyErrorResponseErrorData, SiteverifyResponse } from "../api/index.js";
2
2
  import { VerifyClientErrorCode } from "./errors.js";
3
3
  /**
4
4
  * The result of a captcha siteverify request.
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.1";
1
+ export declare const SDK_VERSION = "0.1.2";
@@ -1,4 +1,4 @@
1
1
  // This file is auto-generated by scripts/updateVersion.mjs
2
2
  // Do not edit this file directly
3
- export const SDK_VERSION = "0.1.1";
3
+ export const SDK_VERSION = "0.1.2";
4
4
  //# sourceMappingURL=version.gen.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@friendlycaptcha/server-sdk",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Serverside client SDK for the Friendly Captcha V2 API",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
package/src/api/index.ts CHANGED
@@ -1 +1 @@
1
- export * from "./types";
1
+ export * from "./types.js";
@@ -1,4 +1,4 @@
1
- import type { SiteverifyErrorResponseErrorData, SiteverifyResponse } from "../api";
1
+ import type { SiteverifyErrorResponseErrorData, SiteverifyResponse } from "../api/index.js";
2
2
  import {
3
3
  FAILED_DUE_TO_CLIENT_ERROR_CODE,
4
4
  FAILED_TO_DECODE_RESPONSE_ERROR_CODE,
@@ -1,3 +1,3 @@
1
1
  // This file is auto-generated by scripts/updateVersion.mjs
2
2
  // Do not edit this file directly
3
- export const SDK_VERSION = "0.1.1";
3
+ export const SDK_VERSION = "0.1.2";