@types/chrome 0.0.161 → 0.0.162
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.
- chrome/README.md +1 -1
- chrome/index.d.ts +17 -1
- chrome/package.json +2 -2
chrome/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Chrome extension development (http://
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Fri, 29 Oct 2021 07:31:20 GMT
|
12
12
|
* Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
|
13
13
|
* Global values: `chrome`
|
14
14
|
|
chrome/index.d.ts
CHANGED
@@ -2941,10 +2941,18 @@ declare namespace chrome.enterprise.platformKeys {
|
|
2941
2941
|
id: string;
|
2942
2942
|
/**
|
2943
2943
|
* Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are hardware-backed.
|
2944
|
-
* Only non-extractable RSASSA-PKCS1-V1_5 keys with modulusLength up to 2048 can be generated. Each key can be used for signing data at most once.
|
2944
|
+
* Only non-extractable RSASSA-PKCS1-V1_5 keys with modulusLength up to 2048 and ECDSA with namedCurve P-256 can be generated. Each key can be used for signing data at most once.
|
2945
2945
|
* Keys generated on a specific Token cannot be used with any other Tokens, nor can they be used with window.crypto.subtle. Equally, Key objects created with window.crypto.subtle cannot be used with this interface.
|
2946
2946
|
*/
|
2947
2947
|
subtleCrypto: SubtleCrypto;
|
2948
|
+
/**
|
2949
|
+
* Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are software-backed.
|
2950
|
+
* Protection of the keys, and thus implementation of the non-extractable property, is done in software, so the keys are less protected than hardware-backed keys.
|
2951
|
+
* Only non-extractable RSASSA-PKCS1-V1_5 keys with modulusLength up to 2048 can be generated. Each key can be used for signing data at most once.
|
2952
|
+
* Keys generated on a specific Token cannot be used with any other Tokens, nor can they be used with window.crypto.subtle. Equally, Key objects created with window.crypto.subtle cannot be used with this interface.
|
2953
|
+
* @since Chrome 97.
|
2954
|
+
*/
|
2955
|
+
softwareBackedSubtleCrypto: SubtleCrypto;
|
2948
2956
|
}
|
2949
2957
|
|
2950
2958
|
/**
|
@@ -3074,6 +3082,14 @@ declare namespace chrome.enterprise.deviceAttributes {
|
|
3074
3082
|
* @param callback Called with the Annotated Location of the device.
|
3075
3083
|
*/
|
3076
3084
|
export function getDeviceAnnotatedLocation(callback: (annotatedLocation: string) => void): void;
|
3085
|
+
/**
|
3086
|
+
* @since Chrome 82.
|
3087
|
+
* @description
|
3088
|
+
* Fetches the device's hostname as set by DeviceHostnameTemplate policy.
|
3089
|
+
* If the current user is not affiliated or no hostname has been set by the the enterprise policy, returns an empty string.
|
3090
|
+
* @param callback Called with the hostname of the device.
|
3091
|
+
*/
|
3092
|
+
export function getDeviceHostname(callback: (hostname: string) => void): void;
|
3077
3093
|
}
|
3078
3094
|
|
3079
3095
|
////////////////////
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.162",
|
4
4
|
"description": "TypeScript definitions for Chrome extension development",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
|
6
6
|
"license": "MIT",
|
@@ -98,6 +98,6 @@
|
|
98
98
|
"@types/filesystem": "*",
|
99
99
|
"@types/har-format": "*"
|
100
100
|
},
|
101
|
-
"typesPublisherContentHash": "
|
101
|
+
"typesPublisherContentHash": "4603e266a952458d468abddb8eb896dc707ef1feb21163821d1272610a0ee2bf",
|
102
102
|
"typeScriptVersion": "3.7"
|
103
103
|
}
|