Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@viamrobotics/rpc

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@viamrobotics/rpc - npm Package Compare versions

Comparing version 0.1.20 to 0.1.21

src/gen/google/api/servicecontrol/v2/service_controller_grpc_web_pb.js

2

package.json
{
"name": "@viamrobotics/rpc",
"version": "0.1.20",
"version": "0.1.21",
"license": "MIT",

@@ -5,0 +5,0 @@ "dependencies": {

@@ -59,3 +59,3 @@ import { grpc } from "@improbable-eng/grpc-web";

const getExtraMetadata = async (): Promise<grpc.Metadata> => {
// TODO(https://github.com/viamrobotics/goutils/issues/13): handle expiration
// TODO(GOUT-10): handle expiration
if (accessToken == "") {

@@ -176,3 +176,3 @@ const request = new AuthenticateRequest();

// use.
// TODO(https://github.com/viamrobotics/core/issues/111): figure out decent way to handle reconnect on connection termination
// TODO(GOUT-7): figure out decent way to handle reconnect on connection termination
export async function dialWebRTC(signalingAddress: string, host: string, opts?: DialOptions): Promise<WebRTCConnection> {

@@ -206,10 +206,2 @@ const webrtcOpts = opts?.webrtcOptions;

if (opts?.externalAuthAddress) {
// TODO(https://github.com/viamrobotics/goutils/issues/12): prepare AuthenticateTo here
// for client channel.
} else if (opts?.credentials?.type) {
// TODO(https://github.com/viamrobotics/goutils/issues/12): prepare Authenticate here
// for client channel
}
let uuid = '';

@@ -395,2 +387,11 @@ // only send once since exchange may end or ICE may end

sendDone();
if (opts?.externalAuthAddress) {
// TODO(GOUT-11): prepare AuthenticateTo here
// for client channel.
} else if (opts?.credentials?.type) {
// TODO(GOUT-11): prepare Authenticate here
// for client channel
}
return { transportFactory: cc.transportFactory(), peerConnection: pc };

@@ -397,0 +398,0 @@ }

@@ -16,9 +16,3 @@ // source: google/api/annotations.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_api_http_pb = require('../../google/api/http_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/auth.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ goog.exportSymbol('proto.google.api.AuthProvider', null, global);

@@ -16,9 +16,3 @@ // source: google/api/backend.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ goog.exportSymbol('proto.google.api.Backend', null, global);

@@ -5,3 +5,2 @@ // package: google.api

import * as jspb from "google-protobuf";
import * as google_api_metric_pb from "../../google/api/metric_pb";

@@ -8,0 +7,0 @@ export class Billing extends jspb.Message {

@@ -16,12 +16,4 @@ // source: google/api/billing.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
var google_api_metric_pb = require('../../google/api/metric_pb.js');
goog.object.extend(proto, google_api_metric_pb);
goog.exportSymbol('proto.google.api.Billing', null, global);

@@ -28,0 +20,0 @@ goog.exportSymbol('proto.google.api.Billing.BillingDestination', null, global);

@@ -16,9 +16,3 @@ // source: google/api/client.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/config_change.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ goog.exportSymbol('proto.google.api.Advice', null, global);

@@ -16,9 +16,3 @@ // source: google/api/consumer.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ goog.exportSymbol('proto.google.api.ProjectProperties', null, global);

@@ -16,9 +16,3 @@ // source: google/api/context.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ goog.exportSymbol('proto.google.api.Context', null, global);

@@ -16,9 +16,3 @@ // source: google/api/control.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ goog.exportSymbol('proto.google.api.Control', null, global);

@@ -16,9 +16,3 @@ // source: google/api/distribution.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/documentation.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ goog.exportSymbol('proto.google.api.Documentation', null, global);

@@ -16,9 +16,3 @@ // source: google/api/endpoint.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ goog.exportSymbol('proto.google.api.Endpoint', null, global);

@@ -16,9 +16,3 @@ // source: google/api/error_reason.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ goog.exportSymbol('proto.google.api.ErrorReason', null, global);

@@ -16,9 +16,3 @@ // source: google/api/expr/conformance/v1alpha1/conformance_service.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_api_expr_v1alpha1_checked_pb = require('../../../../../google/api/expr/v1alpha1/checked_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/expr/v1alpha1/eval.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_api_expr_v1alpha1_value_pb = require('../../../../google/api/expr/v1alpha1/value_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/expr/v1alpha1/explain.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_api_expr_v1alpha1_value_pb = require('../../../../google/api/expr/v1alpha1/value_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/expr/v1alpha1/value.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/expr/v1beta1/decl.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_api_expr_v1beta1_expr_pb = require('../../../../google/api/expr/v1beta1/expr_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/expr/v1beta1/eval.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_api_expr_v1beta1_value_pb = require('../../../../google/api/expr/v1beta1/value_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/expr/v1beta1/source.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ goog.exportSymbol('proto.google.api.expr.v1beta1.SourceInfo', null, global);

@@ -16,9 +16,3 @@ // source: google/api/expr/v1beta1/value.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/field_behavior.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/http.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ goog.exportSymbol('proto.google.api.CustomHttpPattern', null, global);

@@ -16,9 +16,3 @@ // source: google/api/httpbody.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/label.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ goog.exportSymbol('proto.google.api.LabelDescriptor', null, global);

@@ -16,9 +16,3 @@ // source: google/api/launch_stage.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ goog.exportSymbol('proto.google.api.LaunchStage', null, global);

@@ -16,9 +16,3 @@ // source: google/api/log.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_api_label_pb = require('../../google/api/label_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/logging.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ goog.exportSymbol('proto.google.api.Logging', null, global);

@@ -16,9 +16,3 @@ // source: google/api/metric.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_api_label_pb = require('../../google/api/label_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/monitored_resource.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_api_label_pb = require('../../google/api/label_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/monitoring.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ goog.exportSymbol('proto.google.api.Monitoring', null, global);

@@ -16,9 +16,3 @@ // source: google/api/quota.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ goog.exportSymbol('proto.google.api.MetricRule', null, global);

@@ -16,9 +16,3 @@ // source: google/api/resource.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/routing.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');

@@ -13,3 +13,2 @@ // package: google.api

import * as google_api_http_pb from "../../google/api/http_pb";
import * as google_api_label_pb from "../../google/api/label_pb";
import * as google_api_log_pb from "../../google/api/log_pb";

@@ -21,7 +20,5 @@ import * as google_api_logging_pb from "../../google/api/logging_pb";

import * as google_api_quota_pb from "../../google/api/quota_pb";
import * as google_api_resource_pb from "../../google/api/resource_pb";
import * as google_api_source_info_pb from "../../google/api/source_info_pb";
import * as google_api_system_parameter_pb from "../../google/api/system_parameter_pb";
import * as google_api_usage_pb from "../../google/api/usage_pb";
import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb";
import * as google_protobuf_api_pb from "google-protobuf/google/protobuf/api_pb";

@@ -28,0 +25,0 @@ import * as google_protobuf_type_pb from "google-protobuf/google/protobuf/type_pb";

@@ -16,9 +16,3 @@ // source: google/api/service.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -41,4 +35,2 @@ var google_api_auth_pb = require('../../google/api/auth_pb.js');

goog.object.extend(proto, google_api_http_pb);
var google_api_label_pb = require('../../google/api/label_pb.js');
goog.object.extend(proto, google_api_label_pb);
var google_api_log_pb = require('../../google/api/log_pb.js');

@@ -56,4 +48,2 @@ goog.object.extend(proto, google_api_log_pb);

goog.object.extend(proto, google_api_quota_pb);
var google_api_resource_pb = require('../../google/api/resource_pb.js');
goog.object.extend(proto, google_api_resource_pb);
var google_api_source_info_pb = require('../../google/api/source_info_pb.js');

@@ -65,4 +55,2 @@ goog.object.extend(proto, google_api_source_info_pb);

goog.object.extend(proto, google_api_usage_pb);
var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
goog.object.extend(proto, google_protobuf_any_pb);
var google_protobuf_api_pb = require('google-protobuf/google/protobuf/api_pb.js');

@@ -69,0 +57,0 @@ goog.object.extend(proto, google_protobuf_api_pb);

@@ -16,9 +16,3 @@ // source: google/api/servicecontrol/v1/check_error.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_rpc_status_pb = require('../../../../google/rpc/status_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/servicecontrol/v1/distribution.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_api_distribution_pb = require('../../../../google/api/distribution_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/servicecontrol/v1/http_request.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/servicecontrol/v1/log_entry.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_api_servicecontrol_v1_http_request_pb = require('../../../../google/api/servicecontrol/v1/http_request_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/servicecontrol/v1/metric_value.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_api_servicecontrol_v1_distribution_pb = require('../../../../google/api/servicecontrol/v1/distribution_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/servicecontrol/v1/operation.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_api_servicecontrol_v1_log_entry_pb = require('../../../../google/api/servicecontrol/v1/log_entry_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/servicecontrol/v1/quota_controller.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_api_annotations_pb = require('../../../../google/api/annotations_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/servicecontrol/v1/service_controller.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_api_annotations_pb = require('../../../../google/api/annotations_pb.js');

@@ -5,13 +5,5 @@ // package: google.api.servicemanagement.v1

import * as jspb from "google-protobuf";
import * as google_api_annotations_pb from "../../../../google/api/annotations_pb";
import * as google_api_config_change_pb from "../../../../google/api/config_change_pb";
import * as google_api_field_behavior_pb from "../../../../google/api/field_behavior_pb";
import * as google_api_metric_pb from "../../../../google/api/metric_pb";
import * as google_api_quota_pb from "../../../../google/api/quota_pb";
import * as google_api_service_pb from "../../../../google/api/service_pb";
import * as google_longrunning_operations_pb from "../../../../google/longrunning/operations_pb";
import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb";
import * as google_protobuf_field_mask_pb from "google-protobuf/google/protobuf/field_mask_pb";
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
import * as google_rpc_status_pb from "../../../../google/rpc/status_pb";

@@ -18,0 +10,0 @@ export class ManagedService extends jspb.Message {

@@ -32,6 +32,2 @@ /**

var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js')
var google_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js')
var google_rpc_status_pb = require('../../../../google/rpc/status_pb.js')
const proto = {};

@@ -888,125 +884,3 @@ proto.google = {};

/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.google.api.servicemanagement.v1.EnableServiceRequest,
* !proto.google.longrunning.Operation>}
*/
const methodDescriptor_ServiceManager_EnableService = new grpc.web.MethodDescriptor(
'/google.api.servicemanagement.v1.ServiceManager/EnableService',
grpc.web.MethodType.UNARY,
proto.google.api.servicemanagement.v1.EnableServiceRequest,
google_longrunning_operations_pb.Operation,
/**
* @param {!proto.google.api.servicemanagement.v1.EnableServiceRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_longrunning_operations_pb.Operation.deserializeBinary
);
/**
* @param {!proto.google.api.servicemanagement.v1.EnableServiceRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.google.longrunning.Operation)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.google.longrunning.Operation>|undefined}
* The XHR Node Readable Stream
*/
proto.google.api.servicemanagement.v1.ServiceManagerClient.prototype.enableService =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/google.api.servicemanagement.v1.ServiceManager/EnableService',
request,
metadata || {},
methodDescriptor_ServiceManager_EnableService,
callback);
};
/**
* @param {!proto.google.api.servicemanagement.v1.EnableServiceRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.google.longrunning.Operation>}
* Promise that resolves to the response
*/
proto.google.api.servicemanagement.v1.ServiceManagerPromiseClient.prototype.enableService =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/google.api.servicemanagement.v1.ServiceManager/EnableService',
request,
metadata || {},
methodDescriptor_ServiceManager_EnableService);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.google.api.servicemanagement.v1.DisableServiceRequest,
* !proto.google.longrunning.Operation>}
*/
const methodDescriptor_ServiceManager_DisableService = new grpc.web.MethodDescriptor(
'/google.api.servicemanagement.v1.ServiceManager/DisableService',
grpc.web.MethodType.UNARY,
proto.google.api.servicemanagement.v1.DisableServiceRequest,
google_longrunning_operations_pb.Operation,
/**
* @param {!proto.google.api.servicemanagement.v1.DisableServiceRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_longrunning_operations_pb.Operation.deserializeBinary
);
/**
* @param {!proto.google.api.servicemanagement.v1.DisableServiceRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.google.longrunning.Operation)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.google.longrunning.Operation>|undefined}
* The XHR Node Readable Stream
*/
proto.google.api.servicemanagement.v1.ServiceManagerClient.prototype.disableService =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/google.api.servicemanagement.v1.ServiceManager/DisableService',
request,
metadata || {},
methodDescriptor_ServiceManager_DisableService,
callback);
};
/**
* @param {!proto.google.api.servicemanagement.v1.DisableServiceRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.google.longrunning.Operation>}
* Promise that resolves to the response
*/
proto.google.api.servicemanagement.v1.ServiceManagerPromiseClient.prototype.disableService =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/google.api.servicemanagement.v1.ServiceManager/DisableService',
request,
metadata || {},
methodDescriptor_ServiceManager_DisableService);
};
module.exports = proto.google.api.servicemanagement.v1;

@@ -127,20 +127,2 @@ // package: google.api.servicemanagement.v1

type ServiceManagerEnableService = {
readonly methodName: string;
readonly service: typeof ServiceManager;
readonly requestStream: false;
readonly responseStream: false;
readonly requestType: typeof google_api_servicemanagement_v1_servicemanager_pb.EnableServiceRequest;
readonly responseType: typeof google_longrunning_operations_pb.Operation;
};
type ServiceManagerDisableService = {
readonly methodName: string;
readonly service: typeof ServiceManager;
readonly requestStream: false;
readonly responseStream: false;
readonly requestType: typeof google_api_servicemanagement_v1_servicemanager_pb.DisableServiceRequest;
readonly responseType: typeof google_longrunning_operations_pb.Operation;
};
export class ServiceManager {

@@ -161,4 +143,2 @@ static readonly serviceName: string;

static readonly GenerateConfigReport: ServiceManagerGenerateConfigReport;
static readonly EnableService: ServiceManagerEnableService;
static readonly DisableService: ServiceManagerDisableService;
}

@@ -315,21 +295,3 @@

): UnaryResponse;
enableService(
requestMessage: google_api_servicemanagement_v1_servicemanager_pb.EnableServiceRequest,
metadata: grpc.Metadata,
callback: (error: ServiceError|null, responseMessage: google_longrunning_operations_pb.Operation|null) => void
): UnaryResponse;
enableService(
requestMessage: google_api_servicemanagement_v1_servicemanager_pb.EnableServiceRequest,
callback: (error: ServiceError|null, responseMessage: google_longrunning_operations_pb.Operation|null) => void
): UnaryResponse;
disableService(
requestMessage: google_api_servicemanagement_v1_servicemanager_pb.DisableServiceRequest,
metadata: grpc.Metadata,
callback: (error: ServiceError|null, responseMessage: google_longrunning_operations_pb.Operation|null) => void
): UnaryResponse;
disableService(
requestMessage: google_api_servicemanagement_v1_servicemanager_pb.DisableServiceRequest,
callback: (error: ServiceError|null, responseMessage: google_longrunning_operations_pb.Operation|null) => void
): UnaryResponse;
}

@@ -133,20 +133,2 @@ // package: google.api.servicemanagement.v1

ServiceManager.EnableService = {
methodName: "EnableService",
service: ServiceManager,
requestStream: false,
responseStream: false,
requestType: google_api_servicemanagement_v1_servicemanager_pb.EnableServiceRequest,
responseType: google_longrunning_operations_pb.Operation
};
ServiceManager.DisableService = {
methodName: "DisableService",
service: ServiceManager,
requestStream: false,
responseStream: false,
requestType: google_api_servicemanagement_v1_servicemanager_pb.DisableServiceRequest,
responseType: google_longrunning_operations_pb.Operation
};
exports.ServiceManager = ServiceManager;

@@ -562,65 +544,3 @@

ServiceManagerClient.prototype.enableService = function enableService(requestMessage, metadata, callback) {
if (arguments.length === 2) {
callback = arguments[1];
}
var client = grpc.unary(ServiceManager.EnableService, {
request: requestMessage,
host: this.serviceHost,
metadata: metadata,
transport: this.options.transport,
debug: this.options.debug,
onEnd: function (response) {
if (callback) {
if (response.status !== grpc.Code.OK) {
var err = new Error(response.statusMessage);
err.code = response.status;
err.metadata = response.trailers;
callback(err, null);
} else {
callback(null, response.message);
}
}
}
});
return {
cancel: function () {
callback = null;
client.close();
}
};
};
ServiceManagerClient.prototype.disableService = function disableService(requestMessage, metadata, callback) {
if (arguments.length === 2) {
callback = arguments[1];
}
var client = grpc.unary(ServiceManager.DisableService, {
request: requestMessage,
host: this.serviceHost,
metadata: metadata,
transport: this.options.transport,
debug: this.options.debug,
onEnd: function (response) {
if (callback) {
if (response.status !== grpc.Code.OK) {
var err = new Error(response.statusMessage);
err.code = response.status;
err.metadata = response.trailers;
callback(err, null);
} else {
callback(null, response.message);
}
}
}
});
return {
cancel: function () {
callback = null;
client.close();
}
};
};
exports.ServiceManagerClient = ServiceManagerClient;

@@ -12,4 +12,2 @@ // package: google.api.servicemanagement.v1

import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb";
import * as google_protobuf_field_mask_pb from "google-protobuf/google/protobuf/field_mask_pb";
import * as google_rpc_status_pb from "../../../../google/rpc/status_pb";

@@ -453,82 +451,2 @@ export class ListServicesRequest extends jspb.Message {

export class EnableServiceRequest extends jspb.Message {
getServiceName(): string;
setServiceName(value: string): void;
getConsumerId(): string;
setConsumerId(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): EnableServiceRequest.AsObject;
static toObject(includeInstance: boolean, msg: EnableServiceRequest): EnableServiceRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: EnableServiceRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): EnableServiceRequest;
static deserializeBinaryFromReader(message: EnableServiceRequest, reader: jspb.BinaryReader): EnableServiceRequest;
}
export namespace EnableServiceRequest {
export type AsObject = {
serviceName: string,
consumerId: string,
}
}
export class EnableServiceResponse extends jspb.Message {
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): EnableServiceResponse.AsObject;
static toObject(includeInstance: boolean, msg: EnableServiceResponse): EnableServiceResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: EnableServiceResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): EnableServiceResponse;
static deserializeBinaryFromReader(message: EnableServiceResponse, reader: jspb.BinaryReader): EnableServiceResponse;
}
export namespace EnableServiceResponse {
export type AsObject = {
}
}
export class DisableServiceRequest extends jspb.Message {
getServiceName(): string;
setServiceName(value: string): void;
getConsumerId(): string;
setConsumerId(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DisableServiceRequest.AsObject;
static toObject(includeInstance: boolean, msg: DisableServiceRequest): DisableServiceRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: DisableServiceRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DisableServiceRequest;
static deserializeBinaryFromReader(message: DisableServiceRequest, reader: jspb.BinaryReader): DisableServiceRequest;
}
export namespace DisableServiceRequest {
export type AsObject = {
serviceName: string,
consumerId: string,
}
}
export class DisableServiceResponse extends jspb.Message {
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DisableServiceResponse.AsObject;
static toObject(includeInstance: boolean, msg: DisableServiceResponse): DisableServiceResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: DisableServiceResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DisableServiceResponse;
static deserializeBinaryFromReader(message: DisableServiceResponse, reader: jspb.BinaryReader): DisableServiceResponse;
}
export namespace DisableServiceResponse {
export type AsObject = {
}
}
export class GenerateConfigReportRequest extends jspb.Message {

@@ -535,0 +453,0 @@ hasNewConfig(): boolean;

@@ -16,9 +16,3 @@ // source: google/api/serviceusage/v1/resources.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_api_auth_pb = require('../../../../google/api/auth_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/source_info.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');

@@ -16,9 +16,3 @@ // source: google/api/system_parameter.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ goog.exportSymbol('proto.google.api.SystemParameter', null, global);

@@ -16,9 +16,3 @@ // source: google/api/usage.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ goog.exportSymbol('proto.google.api.Usage', null, global);

@@ -16,9 +16,3 @@ // source: google/api/visibility.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');

@@ -16,9 +16,3 @@ // source: google/rpc/code.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ goog.exportSymbol('proto.google.rpc.Code', null, global);

@@ -16,9 +16,3 @@ // source: google/rpc/status.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');

@@ -16,9 +16,3 @@ // source: proto/rpc/v1/auth.proto

var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

@@ -25,0 +19,0 @@ var google_api_annotations_pb = require('../../../google/api/annotations_pb.js');

@@ -35,9 +35,23 @@ interface ReadyPeer {

negotiationChannel.binaryType = "arraybuffer";
let makingOffer = false;
let ignoreOffer = false;
const polite = true;
negotiationChannel.onmessage = async (event: MessageEvent<any>) => {
try {
const remoteSDP = new RTCSessionDescription(JSON.parse(atob(event.data)));
await peerConnection.setRemoteDescription(remoteSDP);
const answerDesc = await peerConnection.createAnswer();
await peerConnection.setLocalDescription(answerDesc);
negotiationChannel.send(btoa(JSON.stringify(peerConnection.localDescription)));
const description = new RTCSessionDescription(JSON.parse(atob(event.data)));
const offerCollision = (description.type === "offer") &&
(description || peerConnection.signalingState !== "stable");
ignoreOffer = !polite && offerCollision;
if (ignoreOffer) {
return;
}
await peerConnection.setRemoteDescription(description);
if (description.type === "offer") {
await peerConnection.setLocalDescription();
negotiationChannel.send(btoa(JSON.stringify(peerConnection.localDescription)));
}
} catch (e) {

@@ -48,2 +62,14 @@ console.error(e);

peerConnection.onnegotiationneeded = async () => {
try {
makingOffer = true;
await peerConnection.setLocalDescription();
negotiationChannel.send(btoa(JSON.stringify(peerConnection.localDescription)));
} catch (e) {
console.error(e);
} finally {
makingOffer = false;
}
};
if (!disableTrickle) {

@@ -50,0 +76,0 @@ return Promise.resolve({ pc: peerConnection, dc: dataChannel })

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc