@ddysiodev/js-sdk 0.1.0 → 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 CHANGED
@@ -80,7 +80,7 @@ const request = await ddys.requests.create({
80
80
  console.log(request.url);
81
81
  ```
82
82
 
83
- Do not bundle a site owner's API key into public browser JavaScript.
83
+ Public display features do not require an API key. For write endpoints, configure the key on your server or Worker.
84
84
 
85
85
  ## Custom API Base URL
86
86
 
package/README.zh-CN.md CHANGED
@@ -76,7 +76,7 @@ const request = await ddys.requests.create({
76
76
  console.log(request.url);
77
77
  ```
78
78
 
79
- 不要把站长自己的 API Key 打包进公开浏览器 JavaScript。公开展示类功能不需要 API Key。
79
+ 公开展示类功能无需 API Key;如需调用写接口,建议在服务端或 Worker 中配置用户 API Key。
80
80
 
81
81
  ## 自定义 API 地址
82
82
 
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  const DEFAULT_BASE_URL = 'https://ddys.io/api/v1';
2
2
  const DEFAULT_TIMEOUT_MS = 15000;
3
- const DEFAULT_USER_AGENT = '@ddysiodev/js-sdk/0.1.0';
3
+ const DEFAULT_USER_AGENT = '@ddysiodev/js-sdk/0.1.1';
4
4
 
5
5
  class DdysApiError extends Error {
6
6
  constructor(message, options = {}) {
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  const DEFAULT_BASE_URL = 'https://ddys.io/api/v1';
2
2
  const DEFAULT_TIMEOUT_MS = 15000;
3
- const DEFAULT_USER_AGENT = '@ddysiodev/js-sdk/0.1.0';
3
+ const DEFAULT_USER_AGENT = '@ddysiodev/js-sdk/0.1.1';
4
4
 
5
5
  class DdysApiError extends Error {
6
6
  constructor(message, options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ddysiodev/js-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Official JavaScript SDK for the DDYS Open API.",
5
5
  "license": "MIT",
6
6
  "type": "module",