@theholocron/google-client 1.31.0 → 1.32.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/dist/index.d.mts CHANGED
@@ -1,12 +1,12 @@
1
1
  import { JWT, OAuth2Client } from "google-auth-library";
2
- //#region src/types.d.ts
2
+ //#region ../../../../../src/types.d.ts
3
3
  type Return<T> = [Error, null, number] | [null, T, number];
4
4
  //#endregion
5
- //#region src/authentication.d.ts
5
+ //#region ../../../../../src/authentication.d.ts
6
6
  declare const oauth: (scopes: string[]) => Promise<OAuth2Client | null>;
7
7
  declare function googleAuth(scopes: string[]): Promise<JWT>;
8
8
  //#endregion
9
- //#region src/index.d.ts
9
+ //#region ../../../../../src/index.d.ts
10
10
  declare const google: {
11
11
  documents: {
12
12
  get: (id: string) => Promise<Return<import("googleapis").docs_v1.Schema$Document>>;
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import http from "node:http";
3
3
  import url from "node:url";
4
4
  import open from "open";
5
5
  import destroyer from "server-destroy";
6
- //#region src/key.ts
6
+ //#region ../../../../../src/key.ts
7
7
  /**
8
8
  * Load service account credentials from environment variables.
9
9
  * Set GOOGLE_SERVICE_ACCOUNT_JSON to the full JSON key file content,
@@ -35,7 +35,7 @@ function loadServiceAccountKey() {
35
35
  };
36
36
  }
37
37
  //#endregion
38
- //#region src/authentication.ts
38
+ //#region ../../../../../src/authentication.ts
39
39
  function buildOAuth2Client() {
40
40
  const clientID = process.env.GOOGLE_CLIENT_ID;
41
41
  const clientSecret = process.env.GOOGLE_CLIENT_SECRET;
@@ -77,7 +77,7 @@ async function googleAuth(scopes) {
77
77
  }).getClient();
78
78
  }
79
79
  //#endregion
80
- //#region src/documents.ts
80
+ //#region ../../../../../src/documents.ts
81
81
  const docs = google$1.docs("v1");
82
82
  async function getDocument(id) {
83
83
  if (!id) return [
@@ -106,7 +106,7 @@ async function getDocument(id) {
106
106
  }
107
107
  const documents = { get: getDocument };
108
108
  //#endregion
109
- //#region src/spreadsheets.ts
109
+ //#region ../../../../../src/spreadsheets.ts
110
110
  const sheets = google$1.sheets("v4");
111
111
  async function getSpreadsheet(id) {
112
112
  if (!id) return [
@@ -135,7 +135,7 @@ async function getSpreadsheet(id) {
135
135
  }
136
136
  }
137
137
  //#endregion
138
- //#region src/index.ts
138
+ //#region ../../../../../src/index.ts
139
139
  const google = {
140
140
  documents,
141
141
  spreadsheets: { get: getSpreadsheet }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/google-client",
3
- "version": "1.31.0",
3
+ "version": "1.32.1",
4
4
  "description": "A TypeScript client for Google Workspace APIs (Docs, Sheets)",
5
5
  "keywords": [
6
6
  "google",
@@ -38,10 +38,10 @@
38
38
  "server-destroy": "^1.0.1"
39
39
  },
40
40
  "devDependencies": {
41
- "@theholocron/cli": "5.0.0-alpha.33",
41
+ "@theholocron/cli": "5.0.0-alpha.79",
42
42
  "@theholocron/eslint-config": "^8.4.3",
43
43
  "@theholocron/tsconfig": "^8.2.0",
44
- "@theholocron/tsdown-config": "^8.2.0",
44
+ "@theholocron/tsdown-config": "^8.6.1",
45
45
  "@theholocron/vitest-config": "^8.2.0",
46
46
  "@types/node": "^26.4.1",
47
47
  "@types/server-destroy": "^1.0.4",
@@ -64,7 +64,7 @@
64
64
  "releases": "https://github.com/theholocron/clients/releases",
65
65
  "wiki": "https://github.com/theholocron/clients/wiki",
66
66
  "scripts": {
67
- "delivery.build": "tsdown",
67
+ "delivery.build": "holocron run delivery.build -- && node ../../scripts/check-bundle-size.mjs",
68
68
  "sourceQuality.staticAnalysis": "holocron run sourceQuality.staticAnalysis --",
69
69
  "test:watch": "vitest",
70
70
  "verification.typeSafety": "holocron run verification.typeSafety --",