Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
fix(protobuf): use probobuf minified (#507)
Browse files Browse the repository at this point in the history
* fix(protobuf): use probobuf minified

* fix(protobuf): use probobuf minified built from scratch

* fix(protobuf): use axios minified

* fix(protobuf): use updated version
  • Loading branch information
haddasbronfman authored Aug 2, 2021
1 parent 0dd1741 commit 5d3fe4a
Show file tree
Hide file tree
Showing 14 changed files with 30 additions and 28 deletions.
30 changes: 16 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@
"underscore": "^1.12.0"
},
"dependencies": {
"axios": "^0.21.1",
"google-protobuf": "^3.5.0",
"axios-minified": "^1.0.2",
"google-protobuf-minified": "^1.0.8",
"json-stringify-safe": "^5.0.1",
"json.sortify": "^2.2.2",
"md5": "^2.2.1",
Expand Down
2 changes: 1 addition & 1 deletion src/containers/azure.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const axios = require('axios');
const axios = require('axios-minified');
const utils = require('../utils');
const eventIterface = require('../event');

Expand Down
2 changes: 1 addition & 1 deletion src/containers/ec2.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const axios = require('axios');
const axios = require('axios-minified');
const utils = require('../utils');
const eventIterface = require('../event');

Expand Down
2 changes: 1 addition & 1 deletion src/containers/ecs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const axios = require('axios');
const axios = require('axios-minified');
const utils = require('../utils');
const eventInterface = require('../event');

Expand Down
2 changes: 1 addition & 1 deletion src/proto/error_code_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
// GENERATED CODE -- DO NOT EDIT!

var jspb = require('google-protobuf');
var jspb = require('google-protobuf-minified');
var goog = jspb;
var global = Function('return this')();

Expand Down
2 changes: 1 addition & 1 deletion src/proto/event_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
// GENERATED CODE -- DO NOT EDIT!

var jspb = require('google-protobuf');
var jspb = require('google-protobuf-minified');
var goog = jspb;
var global = Function('return this')();

Expand Down
2 changes: 1 addition & 1 deletion src/proto/exception_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
// GENERATED CODE -- DO NOT EDIT!

var jspb = require('google-protobuf');
var jspb = require('google-protobuf-minified');
var goog = jspb;
var global = Function('return this')();

Expand Down
2 changes: 1 addition & 1 deletion src/proto/timestamp_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
// GENERATED CODE -- DO NOT EDIT!

var jspb = require('google-protobuf');
var jspb = require('google-protobuf-minified');
var goog = jspb;
var global = Function('return this')();

Expand Down
2 changes: 1 addition & 1 deletion src/proto/trace_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
// GENERATED CODE -- DO NOT EDIT!

var jspb = require('google-protobuf');
var jspb = require('google-protobuf-minified');
var goog = jspb;
var global = Function('return this')();

Expand Down
2 changes: 1 addition & 1 deletion src/runners/aws_batch.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @fileoverview Runner for AWS Batch environment
*/
const axios = require('axios');
const axios = require('axios-minified');
const serverlessEvent = require('../proto/event_pb.js');
const eventInterface = require('../event.js');
const errorCode = require('../proto/error_code_pb.js');
Expand Down
2 changes: 1 addition & 1 deletion src/trace_queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @fileoverview The traces queue, cunsume traces and sends in batches
*/
const EventEmitter = require('events');
const axios = require('axios');
const axios = require('axios-minified');
const https = require('https');
const http = require('http');
const utils = require('./utils.js');
Expand Down
2 changes: 1 addition & 1 deletion src/trace_senders/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @fileoverview Send traces to the epsagon backend using http
*/

const axios = require('axios');
const axios = require('axios-minified');
const http = require('http');
const https = require('https');
const utils = require('../utils.js');
Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/runners/test_aws_batch.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { expect } = require('chai');
const sinon = require('sinon');
const axios = require('axios');
const axios = require('axios-minified');
const batchRunner = require('../../../src/runners/aws_batch.js');
const errorCode = require('../../../src/proto/error_code_pb.js');
const tracer = require('../../../src/tracer.js');
Expand Down

0 comments on commit 5d3fe4a

Please sign in to comment.