@windmc/js 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +9 -1
package/dist/index.js CHANGED
@@ -14,7 +14,10 @@ const DEFAULT_SITE_URL = "https://windmc.su";
14
14
  */
15
15
  export function generatePKCE() {
16
16
  const codeVerifier = crypto.randomBytes(32).toString("base64url");
17
- const codeChallenge = crypto.createHash("sha256").update(codeVerifier).digest("base64url");
17
+ const codeChallenge = crypto
18
+ .createHash("sha256")
19
+ .update(codeVerifier)
20
+ .digest("base64url");
18
21
  return { codeVerifier, codeChallenge };
19
22
  }
20
23
  export class WindClient {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windmc/js",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Wind API client",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -14,6 +14,14 @@
14
14
  "files": [
15
15
  "dist"
16
16
  ],
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/TheWindmc/wind-js-client"
20
+ },
21
+ "homepage": "https://github.com/TheWindmc/wind-js-client#readme",
22
+ "bugs": {
23
+ "url": "https://github.com/TheWindmc/wind-js-client/issues"
24
+ },
17
25
  "scripts": {
18
26
  "build": "tsc",
19
27
  "prepublishOnly": "npm run build"