@ciderjs/gasnuki 0.3.3 → 0.3.4
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/README.ja.md +1 -1
- package/README.md +1 -1
- package/dist/cli.cjs +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/shared/{gasnuki.D1fp3Uiw.mjs → gasnuki.C96Q3amR.mjs} +12 -1
- package/dist/shared/{gasnuki.D8w16Lbm.cjs → gasnuki.kBd1L15Q.cjs} +12 -1
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +6 -6
package/README.ja.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @ciderjs/gasnuki
|
|
2
2
|
|
|
3
3
|
[](./README.md)
|
|
4
|
-
[](https://github.com/luthpg/gasnuki)
|
|
5
5
|
[](LICENSE)
|
|
6
6
|
[](https://www.npmjs.com/package/@ciderjs/gasnuki)
|
|
7
7
|
[](https://github.com/luthpg/gasnuki/issues)
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @ciderjs/gasnuki
|
|
2
2
|
|
|
3
3
|
[](./README.ja.md)
|
|
4
|
-
[](https://github.com/luthpg/gasnuki)
|
|
5
5
|
[](LICENSE)
|
|
6
6
|
[](https://www.npmjs.com/package/@ciderjs/gasnuki)
|
|
7
7
|
[](https://github.com/luthpg/gasnuki/issues)
|
package/dist/cli.cjs
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
const path = require('node:path');
|
|
5
5
|
const commander = require('commander');
|
|
6
6
|
const index = require('./index.cjs');
|
|
7
|
-
const config = require('./shared/gasnuki.
|
|
7
|
+
const config = require('./shared/gasnuki.kBd1L15Q.cjs');
|
|
8
8
|
require('chokidar');
|
|
9
9
|
require('consola');
|
|
10
10
|
require('node:fs');
|
|
@@ -25,7 +25,7 @@ function _interopNamespaceCompat(e) {
|
|
|
25
25
|
|
|
26
26
|
const path__namespace = /*#__PURE__*/_interopNamespaceCompat(path);
|
|
27
27
|
|
|
28
|
-
const version = "0.3.
|
|
28
|
+
const version = "0.3.4";
|
|
29
29
|
|
|
30
30
|
const parseArgs = async (command) => {
|
|
31
31
|
const cliOpts = command.opts();
|
package/dist/cli.mjs
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import * as path from 'node:path';
|
|
3
3
|
import { Command } from 'commander';
|
|
4
4
|
import { generateTypes } from './index.mjs';
|
|
5
|
-
import { l as loadConfig } from './shared/gasnuki.
|
|
5
|
+
import { l as loadConfig } from './shared/gasnuki.C96Q3amR.mjs';
|
|
6
6
|
import 'chokidar';
|
|
7
7
|
import 'consola';
|
|
8
8
|
import 'node:fs';
|
|
9
9
|
import 'ts-morph';
|
|
10
10
|
import 'jiti';
|
|
11
11
|
|
|
12
|
-
const version = "0.3.
|
|
12
|
+
const version = "0.3.4";
|
|
13
13
|
|
|
14
14
|
const parseArgs = async (command) => {
|
|
15
15
|
const cliOpts = command.opts();
|
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const path = require('node:path');
|
|
4
4
|
const chokidar = require('chokidar');
|
|
5
5
|
const consola = require('consola');
|
|
6
|
-
const config = require('./shared/gasnuki.
|
|
6
|
+
const config = require('./shared/gasnuki.kBd1L15Q.cjs');
|
|
7
7
|
require('node:fs');
|
|
8
8
|
require('ts-morph');
|
|
9
9
|
require('jiti');
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as path from 'node:path';
|
|
2
2
|
import * as chokidar from 'chokidar';
|
|
3
3
|
import { consola } from 'consola';
|
|
4
|
-
import { g as generateAppsScriptTypes } from './shared/gasnuki.
|
|
5
|
-
export { d as defineConfig } from './shared/gasnuki.
|
|
4
|
+
import { g as generateAppsScriptTypes } from './shared/gasnuki.C96Q3amR.mjs';
|
|
5
|
+
export { d as defineConfig } from './shared/gasnuki.C96Q3amR.mjs';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'ts-morph';
|
|
8
8
|
import 'jiti';
|
|
@@ -139,7 +139,18 @@ const generateAppsScriptTypes = async ({
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
const collectSymbolsFromType = (type, foundSymbols) => {
|
|
142
|
-
const
|
|
142
|
+
const aliasSymbol = type.getAliasSymbol();
|
|
143
|
+
if (aliasSymbol) {
|
|
144
|
+
if (foundSymbols.has(aliasSymbol)) {
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
foundSymbols.add(aliasSymbol);
|
|
148
|
+
for (const typeArg of type.getAliasTypeArguments()) {
|
|
149
|
+
collectSymbolsFromType(typeArg, foundSymbols);
|
|
150
|
+
}
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
const symbol = type.getSymbol();
|
|
143
154
|
if (symbol && !foundSymbols.has(symbol)) {
|
|
144
155
|
foundSymbols.add(symbol);
|
|
145
156
|
if (type.isObject()) {
|
|
@@ -156,7 +156,18 @@ const generateAppsScriptTypes = async ({
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
const collectSymbolsFromType = (type, foundSymbols) => {
|
|
159
|
-
const
|
|
159
|
+
const aliasSymbol = type.getAliasSymbol();
|
|
160
|
+
if (aliasSymbol) {
|
|
161
|
+
if (foundSymbols.has(aliasSymbol)) {
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
foundSymbols.add(aliasSymbol);
|
|
165
|
+
for (const typeArg of type.getAliasTypeArguments()) {
|
|
166
|
+
collectSymbolsFromType(typeArg, foundSymbols);
|
|
167
|
+
}
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
const symbol = type.getSymbol();
|
|
160
171
|
if (symbol && !foundSymbols.has(symbol)) {
|
|
161
172
|
foundSymbols.add(symbol);
|
|
162
173
|
if (type.isObject()) {
|
package/dist/vite.cjs
CHANGED
package/dist/vite.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as path from 'node:path';
|
|
2
2
|
import { consola } from 'consola';
|
|
3
|
-
import { l as loadConfig, g as generateAppsScriptTypes } from './shared/gasnuki.
|
|
3
|
+
import { l as loadConfig, g as generateAppsScriptTypes } from './shared/gasnuki.C96Q3amR.mjs';
|
|
4
4
|
import 'node:fs';
|
|
5
5
|
import 'ts-morph';
|
|
6
6
|
import 'jiti';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ciderjs/gasnuki",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Type definitions and utilities for Google Apps Script client-side API",
|
|
5
5
|
"main": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
"ts-morph": "^27.0.2"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@biomejs/biome": "^2.3.
|
|
66
|
-
"@types/node": "^25.0.
|
|
67
|
-
"@vitest/coverage-v8": "4.0.
|
|
65
|
+
"@biomejs/biome": "^2.3.10",
|
|
66
|
+
"@types/node": "^25.0.3",
|
|
67
|
+
"@vitest/coverage-v8": "4.0.16",
|
|
68
68
|
"typescript": "^5.9.3",
|
|
69
69
|
"unbuild": "^3.6.1",
|
|
70
|
-
"vite": "^7.
|
|
71
|
-
"vitest": "4.0.
|
|
70
|
+
"vite": "^7.3.0",
|
|
71
|
+
"vitest": "4.0.16"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"vite": "^7"
|