@google/events
Advanced tools
| # Security Policy | ||
| To report a security issue, please use [g.co/vulnz](https://g.co/vulnz). | ||
| The Google Security Team will respond within 5 working days of your report on g.co/vulnz. | ||
| We use g.co/vulnz for our intake, and do coordination and disclosure here using GitHub Security Advisory to privately discuss and fix the issue. |
+11
-0
| # Changelog | ||
| ## [5.0.0](https://www.github.com/googleapis/google-cloudevents-nodejs/compare/v4.0.1...v5.0.0) (2021-06-15) | ||
| ### ⚠ BREAKING CHANGES | ||
| * allow date types to be strings (#93) | ||
| ### Bug Fixes | ||
| * allow date types to be strings ([#93](https://www.github.com/googleapis/google-cloudevents-nodejs/issues/93)) ([10e1889](https://www.github.com/googleapis/google-cloudevents-nodejs/commit/10e18896d7ffa442d52098cdf558404c165122cb)) | ||
| ### [4.0.1](https://www.github.com/googleapis/google-cloudevents-nodejs/compare/v4.0.0...v4.0.1) (2021-02-09) | ||
@@ -4,0 +15,0 @@ |
| /** | ||
| * Copyright 2020 Google LLC | ||
| * Copyright 2021 Google LLC | ||
| * | ||
@@ -36,7 +36,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| /** | ||
| * Information about an operation associated with the log entry, if applicable. | ||
| * Information about an operation associated with the log entry, if | ||
| * applicable. | ||
| */ | ||
| operation?: Operation; | ||
| /** | ||
| * The log entry payload, which is always an AuditLog for Cloud Audit Log events. | ||
| * The log entry payload, which is always an AuditLog for Cloud Audit Log | ||
| * events. | ||
| */ | ||
@@ -47,3 +49,3 @@ protoPayload?: ProtoPayload; | ||
| */ | ||
| receiveTimestamp?: Date; | ||
| receiveTimestamp?: Date | string; | ||
| /** | ||
@@ -72,3 +74,3 @@ * The monitored resource that produced this log entry. | ||
| */ | ||
| timestamp?: Date; | ||
| timestamp?: Date | string; | ||
| /** | ||
@@ -83,3 +85,4 @@ * Resource name of the trace associated with the log entry, if any. If it | ||
| /** | ||
| * Information about an operation associated with the log entry, if applicable. | ||
| * Information about an operation associated with the log entry, if | ||
| * applicable. | ||
| */ | ||
@@ -108,3 +111,4 @@ export interface Operation { | ||
| /** | ||
| * The log entry payload, which is always an AuditLog for Cloud Audit Log events. | ||
| * The log entry payload, which is always an AuditLog for Cloud Audit Log | ||
| * events. | ||
| */ | ||
@@ -187,3 +191,3 @@ export interface ProtoPayload { | ||
| /** | ||
| * Deprecated, use `metadata` field instead. | ||
| * Deprecated: Use `metadata` field instead. | ||
| * Other service-specific data about the request, response, and other | ||
@@ -600,3 +604,3 @@ * activities. | ||
| */ | ||
| time?: Date; | ||
| time?: Date | string; | ||
| } | ||
@@ -761,3 +765,3 @@ /** | ||
| /** | ||
| * Deprecated, use `metadata` field instead. | ||
| * Deprecated: Use `metadata` field instead. | ||
| * Other service-specific data about the request, response, and other | ||
@@ -764,0 +768,0 @@ * activities. |
| "use strict"; | ||
| /** | ||
| * Copyright 2020 Google LLC | ||
| * Copyright 2021 Google LLC | ||
| * | ||
@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); |
| /** | ||
| * Copyright 2020 Google LLC | ||
| * Copyright 2021 Google LLC | ||
| * | ||
@@ -35,7 +35,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| /** | ||
| * Information about an operation associated with the log entry, if applicable. | ||
| * Information about an operation associated with the log entry, if | ||
| * applicable. | ||
| */ | ||
| operation?: Operation; | ||
| /** | ||
| * The log entry payload, which is always an AuditLog for Cloud Audit Log events. | ||
| * The log entry payload, which is always an AuditLog for Cloud Audit Log | ||
| * events. | ||
| */ | ||
@@ -46,3 +48,3 @@ protoPayload?: ProtoPayload; | ||
| */ | ||
| receiveTimestamp?: Date; | ||
| receiveTimestamp?: Date | string; | ||
| /** | ||
@@ -71,3 +73,3 @@ * The monitored resource that produced this log entry. | ||
| */ | ||
| timestamp?: Date; | ||
| timestamp?: Date | string; | ||
| /** | ||
@@ -83,3 +85,4 @@ * Resource name of the trace associated with the log entry, if any. If it | ||
| /** | ||
| * Information about an operation associated with the log entry, if applicable. | ||
| * Information about an operation associated with the log entry, if | ||
| * applicable. | ||
| */ | ||
@@ -109,3 +112,4 @@ export interface Operation { | ||
| /** | ||
| * The log entry payload, which is always an AuditLog for Cloud Audit Log events. | ||
| * The log entry payload, which is always an AuditLog for Cloud Audit Log | ||
| * events. | ||
| */ | ||
@@ -188,3 +192,3 @@ export interface ProtoPayload { | ||
| /** | ||
| * Deprecated, use `metadata` field instead. | ||
| * Deprecated: Use `metadata` field instead. | ||
| * Other service-specific data about the request, response, and other | ||
@@ -589,3 +593,3 @@ * activities. | ||
| */ | ||
| time?: Date; | ||
| time?: Date | string; | ||
| } | ||
@@ -744,3 +748,3 @@ | ||
| /** | ||
| * Deprecated, use `metadata` field instead. | ||
| * Deprecated: Use `metadata` field instead. | ||
| * Other service-specific data about the request, response, and other | ||
@@ -747,0 +751,0 @@ * activities. |
| /** | ||
| * Copyright 2020 Google LLC | ||
| * Copyright 2021 Google LLC | ||
| * | ||
@@ -33,3 +33,3 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| */ | ||
| createTime?: Date; | ||
| createTime?: Date | string; | ||
| /** | ||
@@ -41,3 +41,3 @@ * Time at which execution of the build was finished. | ||
| */ | ||
| finishTime?: Date; | ||
| finishTime?: Date | string; | ||
| /** | ||
@@ -106,3 +106,3 @@ * Unique identifier of the build. | ||
| */ | ||
| startTime?: Date; | ||
| startTime?: Date | string; | ||
| /** | ||
@@ -224,7 +224,7 @@ * Status of the build. | ||
| */ | ||
| endTime?: Date; | ||
| endTime?: Date | string; | ||
| /** | ||
| * Start of time span. | ||
| */ | ||
| startTime?: Date; | ||
| startTime?: Date | string; | ||
| } | ||
@@ -423,7 +423,7 @@ /** | ||
| */ | ||
| endTime?: Date; | ||
| endTime?: Date | string; | ||
| /** | ||
| * Start of time span. | ||
| */ | ||
| startTime?: Date; | ||
| startTime?: Date | string; | ||
| } | ||
@@ -459,7 +459,7 @@ /** | ||
| */ | ||
| endTime?: Date; | ||
| endTime?: Date | string; | ||
| /** | ||
| * Start of time span. | ||
| */ | ||
| startTime?: Date; | ||
| startTime?: Date | string; | ||
| } | ||
@@ -840,7 +840,7 @@ /** | ||
| */ | ||
| endTime?: Date; | ||
| endTime?: Date | string; | ||
| /** | ||
| * Start of time span. | ||
| */ | ||
| startTime?: Date; | ||
| startTime?: Date | string; | ||
| } | ||
@@ -880,7 +880,7 @@ /** | ||
| */ | ||
| endTime?: Date; | ||
| endTime?: Date | string; | ||
| /** | ||
| * Start of time span. | ||
| */ | ||
| startTime?: Date; | ||
| startTime?: Date | string; | ||
| } | ||
@@ -918,7 +918,7 @@ /** | ||
| */ | ||
| endTime?: Date; | ||
| endTime?: Date | string; | ||
| /** | ||
| * Start of time span. | ||
| */ | ||
| startTime?: Date; | ||
| startTime?: Date | string; | ||
| } | ||
@@ -925,0 +925,0 @@ /** |
| "use strict"; | ||
| /** | ||
| * Copyright 2020 Google LLC | ||
| * Copyright 2021 Google LLC | ||
| * | ||
@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); |
| /** | ||
| * Copyright 2020 Google LLC | ||
| * Copyright 2021 Google LLC | ||
| * | ||
@@ -34,3 +34,3 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| */ | ||
| createTime?: Date; | ||
| createTime?: Date | string; | ||
| /** | ||
@@ -42,3 +42,3 @@ * Time at which execution of the build was finished. | ||
| */ | ||
| finishTime?: Date; | ||
| finishTime?: Date | string; | ||
| /** | ||
@@ -107,3 +107,3 @@ * Unique identifier of the build. | ||
| */ | ||
| startTime?: Date; | ||
| startTime?: Date | string; | ||
| /** | ||
@@ -224,7 +224,7 @@ * Status of the build. | ||
| */ | ||
| endTime?: Date; | ||
| endTime?: Date | string; | ||
| /** | ||
| * Start of time span. | ||
| */ | ||
| startTime?: Date; | ||
| startTime?: Date | string; | ||
| } | ||
@@ -434,7 +434,7 @@ | ||
| */ | ||
| endTime?: Date; | ||
| endTime?: Date | string; | ||
| /** | ||
| * Start of time span. | ||
| */ | ||
| startTime?: Date; | ||
| startTime?: Date | string; | ||
| } | ||
@@ -472,7 +472,7 @@ | ||
| */ | ||
| endTime?: Date; | ||
| endTime?: Date | string; | ||
| /** | ||
| * Start of time span. | ||
| */ | ||
| startTime?: Date; | ||
| startTime?: Date | string; | ||
| } | ||
@@ -857,7 +857,7 @@ | ||
| */ | ||
| endTime?: Date; | ||
| endTime?: Date | string; | ||
| /** | ||
| * Start of time span. | ||
| */ | ||
| startTime?: Date; | ||
| startTime?: Date | string; | ||
| } | ||
@@ -899,7 +899,7 @@ | ||
| */ | ||
| endTime?: Date; | ||
| endTime?: Date | string; | ||
| /** | ||
| * Start of time span. | ||
| */ | ||
| startTime?: Date; | ||
| startTime?: Date | string; | ||
| } | ||
@@ -939,7 +939,7 @@ | ||
| */ | ||
| endTime?: Date; | ||
| endTime?: Date | string; | ||
| /** | ||
| * Start of time span. | ||
| */ | ||
| startTime?: Date; | ||
| startTime?: Date | string; | ||
| } | ||
@@ -946,0 +946,0 @@ |
| /** | ||
| * Copyright 2020 Google LLC | ||
| * Copyright 2021 Google LLC | ||
| * | ||
@@ -50,3 +50,3 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| */ | ||
| createTime?: Date; | ||
| createTime?: Date | string; | ||
| /** | ||
@@ -82,4 +82,4 @@ * The document's fields. | ||
| /** | ||
| * The resource name of the document, for example | ||
| * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. | ||
| * The resource name of the document. For example: | ||
| * `projects/{project_id}/databases/{database_id}/documents/{document_path}` | ||
| */ | ||
@@ -94,3 +94,3 @@ name?: string; | ||
| */ | ||
| updateTime?: Date; | ||
| updateTime?: Date | string; | ||
| } | ||
@@ -158,3 +158,3 @@ /** | ||
| */ | ||
| timestampValue?: Date; | ||
| timestampValue?: Date | string; | ||
| } | ||
@@ -222,3 +222,3 @@ /** | ||
| */ | ||
| timestampValue?: Date; | ||
| timestampValue?: Date | string; | ||
| } | ||
@@ -302,3 +302,3 @@ /** | ||
| */ | ||
| timestampValue?: Date; | ||
| timestampValue?: Date | string; | ||
| } | ||
@@ -362,3 +362,3 @@ /** | ||
| */ | ||
| createTime?: Date; | ||
| createTime?: Date | string; | ||
| /** | ||
@@ -394,4 +394,4 @@ * The document's fields. | ||
| /** | ||
| * The resource name of the document, for example | ||
| * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. | ||
| * The resource name of the document. For example: | ||
| * `projects/{project_id}/databases/{database_id}/documents/{document_path}` | ||
| */ | ||
@@ -406,3 +406,3 @@ name?: string; | ||
| */ | ||
| updateTime?: Date; | ||
| updateTime?: Date | string; | ||
| } | ||
@@ -409,0 +409,0 @@ /** |
| "use strict"; | ||
| /** | ||
| * Copyright 2020 Google LLC | ||
| * Copyright 2021 Google LLC | ||
| * | ||
@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); |
| /** | ||
| * Copyright 2020 Google LLC | ||
| * Copyright 2021 Google LLC | ||
| * | ||
@@ -52,3 +52,3 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| */ | ||
| createTime?: Date; | ||
| createTime?: Date | string; | ||
| /** | ||
@@ -82,4 +82,4 @@ * The document's fields. | ||
| /** | ||
| * The resource name of the document, for example | ||
| * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. | ||
| * The resource name of the document. For example: | ||
| * `projects/{project_id}/databases/{database_id}/documents/{document_path}` | ||
| */ | ||
@@ -94,3 +94,3 @@ name?: string; | ||
| */ | ||
| updateTime?: Date; | ||
| updateTime?: Date | string; | ||
| } | ||
@@ -159,3 +159,3 @@ | ||
| */ | ||
| timestampValue?: Date; | ||
| timestampValue?: Date | string; | ||
| } | ||
@@ -224,3 +224,3 @@ | ||
| */ | ||
| timestampValue?: Date; | ||
| timestampValue?: Date | string; | ||
| } | ||
@@ -304,3 +304,3 @@ | ||
| */ | ||
| timestampValue?: Date; | ||
| timestampValue?: Date | string; | ||
| } | ||
@@ -369,3 +369,3 @@ | ||
| */ | ||
| createTime?: Date; | ||
| createTime?: Date | string; | ||
| /** | ||
@@ -399,4 +399,4 @@ * The document's fields. | ||
| /** | ||
| * The resource name of the document, for example | ||
| * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. | ||
| * The resource name of the document. For example: | ||
| * `projects/{project_id}/databases/{database_id}/documents/{document_path}` | ||
| */ | ||
@@ -411,3 +411,3 @@ name?: string; | ||
| */ | ||
| updateTime?: Date; | ||
| updateTime?: Date | string; | ||
| } | ||
@@ -414,0 +414,0 @@ |
| /** | ||
| * Copyright 2020 Google LLC | ||
| * Copyright 2021 Google LLC | ||
| * | ||
@@ -50,2 +50,12 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| messageId?: string; | ||
| /** | ||
| * If non-empty, identifies related messages for which publish order should be | ||
| * respected. | ||
| */ | ||
| orderingKey?: string; | ||
| /** | ||
| * The time at which the message was published, populated by the server when | ||
| * it receives the `Publish` call. | ||
| */ | ||
| publishTime?: Date | string; | ||
| } | ||
@@ -52,0 +62,0 @@ /** |
| "use strict"; | ||
| /** | ||
| * Copyright 2020 Google LLC | ||
| * Copyright 2021 Google LLC | ||
| * | ||
@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); |
| /** | ||
| * Copyright 2020 Google LLC | ||
| * Copyright 2021 Google LLC | ||
| * | ||
@@ -50,2 +50,12 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| messageId?: string; | ||
| /** | ||
| * If non-empty, identifies related messages for which publish order should be | ||
| * respected. | ||
| */ | ||
| orderingKey?: string; | ||
| /** | ||
| * The time at which the message was published, populated by the server when | ||
| * it receives the `Publish` call. | ||
| */ | ||
| publishTime?: Date | string; | ||
| } | ||
@@ -52,0 +62,0 @@ |
| /** | ||
| * Copyright 2020 Google LLC | ||
| * Copyright 2021 Google LLC | ||
| * | ||
@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| /** | ||
| * Copyright 2020 Google LLC | ||
| * Copyright 2021 Google LLC | ||
| * | ||
@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); |
| /** | ||
| * Copyright 2020 Google LLC | ||
| * Copyright 2021 Google LLC | ||
| * | ||
@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); |
| /** | ||
| * Copyright 2020 Google LLC | ||
| * Copyright 2021 Google LLC | ||
| * | ||
@@ -63,3 +63,3 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| */ | ||
| crc32C?: string; | ||
| crc32c?: string; | ||
| /** | ||
@@ -131,3 +131,3 @@ * Metadata of customer-supplied encryption key, if the object is encrypted by | ||
| */ | ||
| retentionExpirationTime?: Date; | ||
| retentionExpirationTime?: Date | string; | ||
| /** | ||
@@ -154,3 +154,3 @@ * The link to this object. | ||
| */ | ||
| timeCreated?: Date; | ||
| timeCreated?: Date | string; | ||
| /** | ||
@@ -160,11 +160,11 @@ * The deletion time of the object. Will be returned if and only if this | ||
| */ | ||
| timeDeleted?: Date; | ||
| timeDeleted?: Date | string; | ||
| /** | ||
| * The time at which the object's storage class was last changed. | ||
| */ | ||
| timeStorageClassUpdated?: Date; | ||
| timeStorageClassUpdated?: Date | string; | ||
| /** | ||
| * The modification time of the object metadata. | ||
| */ | ||
| updated?: Date; | ||
| updated?: Date | string; | ||
| } | ||
@@ -171,0 +171,0 @@ /** |
| "use strict"; | ||
| /** | ||
| * Copyright 2020 Google LLC | ||
| * Copyright 2021 Google LLC | ||
| * | ||
@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); |
| /** | ||
| * Copyright 2020 Google LLC | ||
| * Copyright 2021 Google LLC | ||
| * | ||
@@ -64,3 +64,3 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| */ | ||
| crc32C?: string; | ||
| crc32c?: string; | ||
| /** | ||
@@ -130,3 +130,3 @@ * Metadata of customer-supplied encryption key, if the object is encrypted by | ||
| */ | ||
| retentionExpirationTime?: Date; | ||
| retentionExpirationTime?: Date | string; | ||
| /** | ||
@@ -153,3 +153,3 @@ * The link to this object. | ||
| */ | ||
| timeCreated?: Date; | ||
| timeCreated?: Date | string; | ||
| /** | ||
@@ -159,11 +159,11 @@ * The deletion time of the object. Will be returned if and only if this | ||
| */ | ||
| timeDeleted?: Date; | ||
| timeDeleted?: Date | string; | ||
| /** | ||
| * The time at which the object's storage class was last changed. | ||
| */ | ||
| timeStorageClassUpdated?: Date; | ||
| timeStorageClassUpdated?: Date | string; | ||
| /** | ||
| * The modification time of the object metadata. | ||
| */ | ||
| updated?: Date; | ||
| updated?: Date | string; | ||
| } | ||
@@ -170,0 +170,0 @@ |
| /** | ||
| * Copyright 2020 Google LLC | ||
| * Copyright 2021 Google LLC | ||
| * | ||
@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); |
| /** | ||
| * Copyright 2020 Google LLC | ||
| * Copyright 2021 Google LLC | ||
| * | ||
@@ -53,3 +53,3 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| */ | ||
| photoUrl?: string; | ||
| photoURL?: string; | ||
| /** | ||
@@ -83,7 +83,7 @@ * User's info at the providers | ||
| */ | ||
| createdAt?: Date; | ||
| createTime?: Date | string; | ||
| /** | ||
| * The date the user last signed in. | ||
| */ | ||
| lastSignedInAt?: Date; | ||
| lastSignInTime?: Date | string; | ||
| } | ||
@@ -106,3 +106,3 @@ | ||
| */ | ||
| photoUrl?: string; | ||
| photoURL?: string; | ||
| /** | ||
@@ -109,0 +109,0 @@ * The linked provider ID (e.g. "google.com" for the Google provider). |
| /** | ||
| * Copyright 2020 Google LLC | ||
| * Copyright 2021 Google LLC | ||
| * | ||
@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); |
| /** | ||
| * Copyright 2020 Google LLC | ||
| * Copyright 2021 Google LLC | ||
| * | ||
@@ -37,3 +37,3 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| */ | ||
| updateTime?: Date; | ||
| updateTime?: Date | string; | ||
| /** | ||
@@ -44,3 +44,4 @@ * What type of update was made. | ||
| /** | ||
| * Aggregation of all metadata fields about the account that performed the update. | ||
| * Aggregation of all metadata fields about the account that performed the | ||
| * update. | ||
| */ | ||
@@ -69,3 +70,4 @@ updateUser?: UpdateUser; | ||
| /** | ||
| * Aggregation of all metadata fields about the account that performed the update. | ||
| * Aggregation of all metadata fields about the account that performed the | ||
| * update. | ||
| */ | ||
@@ -72,0 +74,0 @@ export interface UpdateUser { |
+1
-1
| { | ||
| "name": "@google/events", | ||
| "version": "4.0.1", | ||
| "version": "5.0.0", | ||
| "description": "Client library for CloudEvents issued by Google.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
227068
0.89%40
2.56%5916
0.51%