bttostatsv
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -18,3 +18,3 @@ 'use strict'; | ||
*/ | ||
get: function( browsertimeJSON, namespace ) { | ||
get: function ( browsertimeJSON, namespace ) { | ||
const myMetrics = []; | ||
@@ -30,2 +30,4 @@ const types = [ 'min', 'median', 'mdev' ]; | ||
'visualMetrics.PerceptualSpeedIndex', | ||
'visualMetrics.LargestImage', | ||
'visualMetrics.Logo', | ||
'cpu.categories.Rendering', | ||
@@ -32,0 +34,0 @@ 'cpu.categories.Scripting', |
@@ -14,3 +14,3 @@ /** | ||
function sendMetrics( url ) { | ||
request( url, function( error, response, body ) { | ||
request( url, function ( error, response, body ) { | ||
if ( !error ) { | ||
@@ -30,3 +30,3 @@ console.log( 'Succesfully sent metrics' ); | ||
*/ | ||
send: function( metrics, endpoint ) { | ||
send: function ( metrics, endpoint ) { | ||
let url = `${endpoint}?`; | ||
@@ -33,0 +33,0 @@ let newUrl; |
{ | ||
"name": "bttostatsv", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"bin": "./bin/index.js", | ||
@@ -11,7 +11,7 @@ "description": "Send Browsertime metrics to statsv", | ||
], | ||
"homepage": "https://github.com/soulgalore/bttostatsv", | ||
"homepage": "https://github.com/wikimedia/performance-bttostatsv", | ||
"license": "Apache-2.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:soulgalore/bttostatsv.git" | ||
"url": "git@github.com:wikimedia/performance-bttostatsv.git" | ||
}, | ||
@@ -23,3 +23,5 @@ "files": [ | ||
"scripts": { | ||
"test": "eslint . && ava" | ||
"test": "eslint . && ava", | ||
"lint": "eslint .", | ||
"lint:fix": "eslint . --fix" | ||
}, | ||
@@ -31,4 +33,4 @@ "engines": { | ||
"ava": "0.22.0", | ||
"eslint": "^3.19.0", | ||
"eslint-config-wikimedia": "^0.3.0" | ||
"eslint": "^4.9.0", | ||
"eslint-config-wikimedia": "^0.5.0" | ||
}, | ||
@@ -35,0 +37,0 @@ "main": "./bin/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
113
1
3
0
14506
2