File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import protobuf , { convertFieldsToCamelCase } from 'protobufjs'
2+ import p from './studioapi.proto.js' ;
23
34/**
45 * The studio namespace.
@@ -18,7 +19,7 @@ var studio = (function() {
1819 */
1920studio . protocol = ( function ( ProtoBuf ) {
2021 var obj = { } ,
21- studioBuilder = ProtoBuf . loadProtoFile ( "./studioapi.proto" ) ;
22+ studioBuilder = ProtoBuf . loadProto ( p ) ;
2223 obj . Hello = studioBuilder . build ( "Hello" ) ;
2324 obj . AuthRequest = studioBuilder . build ( "AuthRequest" ) ;
2425 obj . AuthRequestChallengeResponse = studioBuilder . build ( "AuthRequest.ChallengeResponse" ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " cdp-client" ,
3- "version" : " 2.0.0 " ,
3+ "version" : " 2.0.1 " ,
44 "description" : " A simple Javascript interface for the CDP Studio development platform that allows Javascript applications to interact with" ,
55 "main" : " index.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change 1+ const p = `
12// This file describes the StudioAPI wire protocol. It can be compiled with
23// the Google Protobuf protoc compiler into native C++, Java, Python etc.
34
@@ -232,4 +233,5 @@ message ValueRequest {
232233 // missing or zero means all samples must be provided
233234 extensions 100 to max;
234235}
235-
236+ ` ;
237+ export default p ;
You can’t perform that action at this time.
0 commit comments