@leadertechie/personal-site-kit 0.1.0-alpha.19 → 0.1.0-alpha.20

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.
@@ -1 +1 @@
1
- {"version":3,"file":"auth-handler.d.ts","sourceRoot":"","sources":["../../../src/api/handlers/auth-handler.ts"],"names":[],"mappings":"AAwBA,wBAAsB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAgC/F"}
1
+ {"version":3,"file":"auth-handler.d.ts","sourceRoot":"","sources":["../../../src/api/handlers/auth-handler.ts"],"names":[],"mappings":"AAyBA,wBAAsB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAgC/F"}
package/dist/api.js CHANGED
@@ -1,5 +1,5 @@
1
- import { W as WebsiteAPI } from "./chunks/website-api-BjNkkALB.js";
2
- import { A, B, M, R, c, a, g, b, d, h, e, r, s, v } from "./chunks/website-api-BjNkkALB.js";
1
+ import { W as WebsiteAPI } from "./chunks/website-api-CFRUPu0X.js";
2
+ import { A, B, M, R, c, a, g, b, d, h, e, r, s, v } from "./chunks/website-api-CFRUPu0X.js";
3
3
  const defaultAPI = new WebsiteAPI();
4
4
  export {
5
5
  A as AUTH_KV,
@@ -252,7 +252,7 @@ async function clearRateLimit(env, ip) {
252
252
  const kvKey = `rate:${ip}`;
253
253
  await env.KV.delete(kvKey);
254
254
  }
255
- async function getAuthStore$1(env) {
255
+ async function getAuthStore(env) {
256
256
  const store = await env.KV.get(AUTH_KV, "json");
257
257
  return store;
258
258
  }
@@ -266,7 +266,7 @@ async function setupAuth(env, username, password) {
266
266
  }));
267
267
  }
268
268
  async function verifyCredentials(env, username, password) {
269
- const store = await getAuthStore$1(env);
269
+ const store = await getAuthStore(env);
270
270
  if (!store) {
271
271
  return false;
272
272
  }
@@ -409,7 +409,7 @@ async function handleContent(request, env, subpath) {
409
409
  if (method === "GET" && subpath.startsWith("images/")) {
410
410
  return handleGet(request, bucket, subpath);
411
411
  }
412
- const store = await getAuthStore$1(env);
412
+ const store = await getAuthStore(env);
413
413
  if (!store) {
414
414
  if (method === "GET") {
415
415
  return handleGet(request, bucket, subpath);
@@ -946,7 +946,7 @@ export {
946
946
  RATE_LIMIT_KV as R,
947
947
  WebsiteAPI as W,
948
948
  clearRateLimit as a,
949
- getAuthStore$1 as b,
949
+ getAuthStore as b,
950
950
  checkRateLimit as c,
951
951
  getClientIP as d,
952
952
  hashPassword as e,
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A, B, M, R, W, c, a, g, b, d, h, e, r, s, v } from "./chunks/website-api-BjNkkALB.js";
1
+ import { A, B, M, R, W, c, a, g, b, d, h, e, r, s, v } from "./chunks/website-api-CFRUPu0X.js";
2
2
  import { WebsitePrerender } from "./prerender.js";
3
3
  import { A as A2, a as a2, b as b2, c as c2, d as d2, e as e2, f, g as g2, h as h2, i, B as B2, F, M as M2, j, S, k } from "./chunks/index-DrnbjP2Q.js";
4
4
  import { S as S2, g as g3, i as i2, r as r2 } from "./chunks/site-store-CGV9c2DI.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leadertechie/personal-site-kit",
3
- "version": "0.1.0-alpha.19",
3
+ "version": "0.1.0-alpha.20",
4
4
  "type": "module",
5
5
  "description": "A high-performance personal website engine for Cloudflare Workers and R2",
6
6
  "repository": {