@types/nw.js 0.13.20 → 0.90.0

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 (3) hide show
  1. nw.js/README.md +2 -2
  2. nw.js/index.d.ts +37 -2
  3. nw.js/package.json +11 -4
nw.js/README.md CHANGED
@@ -8,8 +8,8 @@ This package contains type definitions for nw.js (http://nwjs.io).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nw.js.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
11
+ * Last updated: Wed, 07 Aug 2024 01:34:31 GMT
12
12
  * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
13
13
 
14
14
  # Credits
15
- These definitions were written by .
15
+ These definitions were written by [Ayushman Chhabra](https://github.com/AyushmanChhabra).
nw.js/index.d.ts CHANGED
@@ -1326,6 +1326,11 @@ declare global {
1326
1326
  */
1327
1327
  filteredArgv: Object[];
1328
1328
 
1329
+ /**
1330
+ * Get the directory where the application starts. The application will change the current directory to where the package files reside after start.
1331
+ */
1332
+ startPath: string;
1333
+
1329
1334
  /**
1330
1335
  * Get the application's data path in user's directory.
1331
1336
  */
@@ -1341,6 +1346,11 @@ declare global {
1341
1346
  */
1342
1347
  clearCache(): void;
1343
1348
 
1349
+ /**
1350
+ * Mark the Application cache group specified by manifest_url obsolete. This method call is synchronized.
1351
+ */
1352
+ clearAppCache(manifest_url: string): void;
1353
+
1344
1354
  /**
1345
1355
  * Send the `close` event to all windows of current app.
1346
1356
  */
@@ -1356,6 +1366,14 @@ declare global {
1356
1366
  */
1357
1367
  crashRenderer(): void;
1358
1368
 
1369
+ /**
1370
+ * This API is experimental and subject to change.
1371
+ *
1372
+ * @param component {string} ID of component; currently only `WIDEVINE` is supported.
1373
+ * @param callback {(version: string) => void} Callback after the component is enabled; `version` string parameter is the version of the enabled component. ‘0.0.0.0’ means it’s not installed. Use `App.updateComponent()` to install it.
1374
+ */
1375
+ enableComponent(component: string, callback: (version: string) => void): void;
1376
+
1359
1377
  /**
1360
1378
  * Query the proxy to be used for loading `url` in DOM.
1361
1379
  *
@@ -1365,17 +1383,26 @@ declare global {
1365
1383
  getProxyForURL(url: string): string;
1366
1384
 
1367
1385
  /**
1368
- * Set the proxy config which the web engine will be used to request network resources.
1386
+ * Set the proxy config which the web engine will be used to request network resources or PAC url to detect proxy automatically.
1369
1387
  *
1370
1388
  * @param config {string} Proxy rules
1389
+ * @param pac_url {string} PAC url
1371
1390
  */
1372
- setProxyConfig(config: string): void;
1391
+ setProxyConfig(config: string, pac_url: string): void;
1373
1392
 
1374
1393
  /**
1375
1394
  * Quit current app.
1376
1395
  */
1377
1396
  quit(): void;
1378
1397
 
1398
+ /**
1399
+ * Set the directory where the minidump file will be saved on crash. For more information, see [Crash dump](https://nwjs.readthedocs.io/en/latest/For%20Developers/Understanding%20Crash%20Dump/).
1400
+ *
1401
+ * @deprecated since version 0.11
1402
+ * @param dir {string} Path to generate the crash dump.
1403
+ */
1404
+ setCrashDumpDir(dir: string): void;
1405
+
1379
1406
  /**
1380
1407
  * Add an entry to the whitelist used for controlling cross-origin access.
1381
1408
  *
@@ -1420,6 +1447,14 @@ declare global {
1420
1447
  */
1421
1448
  unregisterGlobalHotKey(shortcut: Shortcut): void;
1422
1449
 
1450
+ /**
1451
+ * This API is experimental and subject to change.
1452
+ *
1453
+ * @param component {string} ID of component; currently only `WIDEVINE` is supported.
1454
+ * @param callback {(success: boolean) => void} Callback after the component is updated; success is a boolean parameter for the update result.
1455
+ */
1456
+ updateComponent(component: string, callback: (success: boolean) => void): void;
1457
+
1423
1458
  on(event: string, listener: Function): this;
1424
1459
 
1425
1460
  /**
nw.js/package.json CHANGED
@@ -1,10 +1,16 @@
1
1
  {
2
2
  "name": "@types/nw.js",
3
- "version": "0.13.20",
3
+ "version": "0.90.0",
4
4
  "description": "TypeScript definitions for nw.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nw.js",
6
6
  "license": "MIT",
7
- "contributors": [],
7
+ "contributors": [
8
+ {
9
+ "name": "Ayushman Chhabra",
10
+ "githubUsername": "AyushmanChhabra",
11
+ "url": "https://github.com/AyushmanChhabra"
12
+ }
13
+ ],
8
14
  "main": "",
9
15
  "types": "index.d.ts",
10
16
  "repository": {
@@ -16,6 +22,7 @@
16
22
  "dependencies": {
17
23
  "@types/node": "*"
18
24
  },
19
- "typesPublisherContentHash": "aa5393c17aac03cadf0bdd6ac6e74871b763dca1ed640543f378f8eeebfac75b",
20
- "typeScriptVersion": "4.5"
25
+ "typesPublisherContentHash": "0207f6670891a501e4bafa895707c0a60e440505986bce6db220d58d41493a7e",
26
+ "typeScriptVersion": "4.8",
27
+ "nonNpm": true
21
28
  }