Skip to content

Commit 43787c8

Browse files
chore: update owners (googlemaps#635) eec9527
1 parent d48b60a commit 43787c8

File tree

15 files changed

+1028
-868
lines changed

15 files changed

+1028
-868
lines changed

assets/main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/style.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,12 +766,13 @@ footer .tsd-legend {
766766

767767
.tsd-flag {
768768
display: inline-block;
769-
padding: 1px 5px;
769+
padding: 0.25em 0.4em;
770770
border-radius: 4px;
771771
color: var(--color-comment-tag-text);
772772
background-color: var(--color-comment-tag);
773773
text-indent: 0;
774-
font-size: 14px;
774+
font-size: 75%;
775+
line-height: 1;
775776
font-weight: normal;
776777
}
777778

classes/Loader.html

Lines changed: 19 additions & 17 deletions
Large diffs are not rendered by default.

dist/index.d.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,19 @@ export interface LoaderOptions {
152152
* The number of script load retries.
153153
*/
154154
retries?: number;
155+
/**
156+
* Maps JS customers can configure HTTP Referrer Restrictions in the Cloud
157+
* Console to limit which URLs are allowed to use a particular API Key. By
158+
* default, these restrictions can be configured to allow only certain paths
159+
* to use an API Key. If any URL on the same domain or origin may use the API
160+
* Key, you can set `auth_referrer_policy=origin` to limit the amount of data
161+
* sent when authorizing requests from the Maps JavaScript API. This is
162+
* available starting in version 3.46. When this parameter is specified and
163+
* HTTP Referrer Restrictions are enabled on Cloud Console, Maps JavaScript
164+
* API will only be able to load if there is an HTTP Referrer Restriction that
165+
* matches the current website's domain without a path specified.
166+
*/
167+
authReferrerPolicy?: "origin";
155168
}
156169
/**
157170
* The status of the [[Loader]].
@@ -231,6 +244,10 @@ export declare class Loader {
231244
* See [[LoaderOptions.url]]
232245
*/
233246
readonly url: string;
247+
/**
248+
* See [[LoaderOptions.authReferrerPolicy]]
249+
*/
250+
readonly authReferrerPolicy: "origin";
234251
private CALLBACK;
235252
private callbacks;
236253
private done;
@@ -246,7 +263,7 @@ export declare class Loader {
246263
* const loader = Loader({apiKey, version: 'weekly', libraries: ['places']});
247264
* ```
248265
*/
249-
constructor({ apiKey, channel, client, id, libraries, language, region, version, mapIds, nonce, retries, url, }: LoaderOptions);
266+
constructor({ apiKey, authReferrerPolicy, channel, client, id, language, libraries, mapIds, nonce, region, retries, url, version, }: LoaderOptions);
250267
get options(): LoaderOptions;
251268
get status(): LoaderStatus;
252269
private get failed();

0 commit comments

Comments
 (0)