Remove the Public API URL

The Public API was proposed for the next version (0.2.7.54), but due to the increased security risks of providing an unauthenticated Public API, the Public API URL is being discontinued.

This service will be available in the future through marketplaces offered by cloud platforms. Additionally, as the server-side script is open-source, you can set it up yourself.

https://github.com/gnh1201/caterpillar
This commit is contained in:
Namhyeon Go 2024-11-27 15:36:35 +09:00
parent 116bd84394
commit 9038829f24
2 changed files with 11 additions and 11 deletions

View File

@ -3,13 +3,13 @@
// https://github.com/gnh1201/welsonjs // https://github.com/gnh1201/welsonjs
// //
// ***SECURITY NOTICE*** // ***SECURITY NOTICE***
// The Punycode (IDN) library requires an active internet connection. Data may be transmitted externally, and users must adhere to the terms of use. // Due to potential security issues, the Public API URL is not provided. If you need to request access, please refer to the project's contact information.
// - Privacy Policy: https://policy.catswords.social/site_terms.html // You can download the server-side script that implements this functionality from the link below:
// - Terms of Service: https://policy.catswords.social/site_extended_description.html // https://github.com/gnh1201/caterpillar
// //
var JsonRpc2 = require("lib/jsonrpc2"); var JsonRpc2 = require("lib/jsonrpc2");
var API_URL = "https://public-api.catswords.net"; var API_URL = "http://localhost:8080";
function encode(s) { function encode(s) {
var rpc = JsonRpc2.create(API_URL); var rpc = JsonRpc2.create(API_URL);
@ -34,6 +34,6 @@ function decode(s) {
exports.encode = encode; exports.encode = encode;
exports.decode = decode; exports.decode = decode;
exports.VERSIONINFO = "Punycode Public API client (punycode.js) version 0.2"; exports.VERSIONINFO = "Punycode Public API client (punycode.js) version 0.2.1";
exports.global = global; exports.global = global;
exports.require = global.require; exports.require = global.require;

View File

@ -4,13 +4,13 @@
// https://github.com/gnh1201/welsonjs // https://github.com/gnh1201/welsonjs
// //
// ***SECURITY NOTICE*** // ***SECURITY NOTICE***
// The TOTP library requires an internet connection, and data may be transmitted externally. Users must adhere to the terms of use and privacy policy. // Due to potential security issues, the Public API URL is not provided. If you need to request access, please refer to the project's contact information.
// - Privacy Policy: https://policy.catswords.social/site_terms.html // You can download the server-side script that implements this functionality from the link below:
// - Terms of Service: https://policy.catswords.social/site_extended_description.html // https://github.com/gnh1201/caterpillar
// //
var JsonRpc2 = require("lib/jsonrpc2"); var JsonRpc2 = require("lib/jsonrpc2");
var API_URL = "https://public-api.catswords.net"; var API_URL = "http://localhost:8080";
function getPubKey() { function getPubKey() {
var rpc = JsonRpc2.create(API_URL); var rpc = JsonRpc2.create(API_URL);
@ -45,7 +45,7 @@ function getOtp(pubkey) {
exports.getPubKey = getPubKey; exports.getPubKey = getPubKey;
exports.getOtp = getOtp; exports.getOtp = getOtp;
exports.VERSIONINFO = "TOTP library (totp.js) version 0.1.3"; exports.VERSIONINFO = "TOTP library (totp.js) version 0.1.4";
exports.AUTHOR = "abuse@catswords.net"; exports.AUTHOR = "abuse@catswords.net";
exports.global = global; exports.global = global;
exports.require = global.require; exports.require = global.require;