@zodic/shared 0.0.65 → 0.0.67

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/app/api/index.ts +2 -1
  2. package/package.json +1 -7
package/app/api/index.ts CHANGED
@@ -539,11 +539,12 @@ export const Api = (env: BackendBindings) => ({
539
539
  callTimezone: async ({
540
540
  lat,
541
541
  lon,
542
+ timestamp,
542
543
  }: {
543
544
  lat: number;
544
545
  lon: number;
546
+ timestamp: number;
545
547
  }): Promise<number> => {
546
- const timestamp = Math.floor(Date.now() / 1000);
547
548
  const url = `https://maps.googleapis.com/maps/api/timezone/json?location=${lat},${lon}&timestamp=${timestamp}&key=${env.GOOGLE_TIMEZONE_API_KEY}`;
548
549
 
549
550
  try {
package/package.json CHANGED
@@ -1,17 +1,11 @@
1
1
  {
2
2
  "name": "@zodic/shared",
3
- "version": "0.0.65",
3
+ "version": "0.0.67",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
9
- "exports": {
10
- "./types": "./types/index.ts",
11
- "./utils": "./utils/index.ts",
12
- "./app/frontend": "./app/frontend/index.ts",
13
- "./app": "./app/index.ts"
14
- },
15
9
  "scripts": {
16
10
  "migrate-latest-test": "wrangler d1 execute DB --file=$(ls -t ./db/migrations/*.sql | head -n 1)",
17
11
  "migrate-latest": "wrangler d1 execute DB --file=$(ls -t ./db/migrations/*.sql | head -n 1) --remote --yes",