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

percy-client

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

percy-client - npm Package Compare versions

Comparing version 0.2.0 to 1.0.0

dist/environment.js

8

dist/main.js

@@ -8,2 +8,3 @@ 'use strict';

var utils = require('./utils');
var Environment = require('./environment');
var requestPromise = require('request-promise');

@@ -62,2 +63,3 @@

this.apiUrl = options.apiUrl || 'https://percy.io/api/v1';
this.environment = options.environment || new Environment(process.env);
this._httpClient = requestPromise;

@@ -114,3 +116,7 @@ }

'attributes': {
'branch': 'master'
'branch': this.environment.branch,
'commit-sha': this.environment.commitSha,
'pull-request-number': this.environment.pullRequestNumber,
'parallel-nonce': this.environment.parallelNonce,
'parallel-total-shards': this.environment.parallelTotalShards
}

@@ -117,0 +123,0 @@ }

6

package.json
{
"name": "percy-client",
"version": "0.2.0",
"description": "API client library for percy.io",
"version": "1.0.0",
"description": "JavaScript API client library for Percy (https://percy.io).",
"main": "dist/main.js",
"scripts": {
"build:compile": "babel main.js utils.js --presets babel-preset-es2015 --out-dir dist",
"build:compile": "babel main.js utils.js environment.js --presets babel-preset-es2015 --out-dir dist",
"build:browserify": "browserify --standalone percy-client --ignore cls-bluebird dist/main.js -o dist/bundle.js",

@@ -9,0 +9,0 @@ "build": "npm run build:compile && npm run build:browserify",

@@ -6,2 +6,6 @@ # percy-js

WIP.
JavaScript API client library for [Percy](https://percy.io).
This is a low-level API library, you probably want to use a higher-level plugin. Check out:
* [ember-percy](https://github.com/percy/ember-percy)

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