then-chrome
Advanced tools
Comparing version 1.0.0 to 1.0.4
{ | ||
"name": "then-chrome", | ||
"version": "1.0.0", | ||
"version": "1.0.4", | ||
"description": "Promise wrapper for chrome api", | ||
@@ -10,8 +10,13 @@ "main": "out/index.js", | ||
"scripts": { | ||
"clean": "rm -rf ./out/ && rm -rf ./coverage/", | ||
"test": "mocha --recursive --compilers js:babel/register --require ./test/setup.js", | ||
"code": "eslint ./src ./test && jscs ./src ./test", | ||
"build": "npm run code && npm run test && npm run babel", | ||
"babel": "npm run clean && babel ./src --out-dir ./out", | ||
"clean": "rm -rf ./out/", | ||
"prepublish": "npm run build" | ||
"publish-test": "mocha --recursive --compilers js:babel/register --require ./test/setup.js --reporter mocha-tldr-reporter", | ||
"lint": "eslint ./src ./test && jscs ./src ./test", | ||
"build": "npm run transpile", | ||
"transpile": "npm run clean && babel ./src --out-dir ./out", | ||
"prepublish": "npm run lint && npm run publish-test && npm run build", | ||
"coverage": "isparta cover _mocha -- --require babel/register --require ./test/setup.js --recursive -R mocha-lcov-reporter", | ||
"precoveralls": "npm run coverage", | ||
"coveralls": "coveralls < coverage/lcov.info", | ||
"bundle": "webpack" | ||
}, | ||
@@ -33,15 +38,19 @@ "repository": { | ||
"babel": "^5.8.29", | ||
"babel-eslint": "^4.1.3", | ||
"babel-core": "^5.8.34", | ||
"babel-loader": "^5.4.0", | ||
"bluebird": "^3.0.5", | ||
"chai": "^3.4.0", | ||
"chai-as-promised": "^5.1.0", | ||
"coveralls": "^2.11.6", | ||
"eslint": "^1.7.3", | ||
"eslint-config-airbnb": "^0.1.0", | ||
"eslint-plugin-react": "^3.6.3", | ||
"isparta": "^4.0.0", | ||
"jscs": "^2.2.1", | ||
"lodash": "^3.10.1", | ||
"mocha": "^2.3.3", | ||
"mocha-lcov-reporter": "^1.0.0", | ||
"mocha-tldr-reporter": "^1.0.0", | ||
"sinon": "^1.17.2", | ||
"sinon-chrome": "^1.0.2" | ||
"sinon-chrome": "^1.1.0", | ||
"webpack": "^1.12.10" | ||
} | ||
} |
## then-chrome | ||
[](https://travis-ci.org/acvetkov/then-chrome) | ||
[](https://coveralls.io/github/acvetkov/then-chrome?branch=coverage) | ||
[](https://www.npmjs.com/package/then-chrome) | ||
[](https://codeclimate.com/github/acvetkov/then-chrome) | ||
@@ -28,3 +28,3 @@ Promise-based [chrome api](https://developer.chrome.com/extensions/api_index#stable_apis). | ||
Sycn methods are wrapped too | ||
Sync methods are wrapped too | ||
@@ -31,0 +31,0 @@ ```js |
@@ -6,10 +6,11 @@ /** | ||
var chai = require('chai'); | ||
import chai from 'chai'; | ||
import chrome from 'sinon-chrome'; | ||
import sinon from 'sinon'; | ||
import chaiAsPromised from 'chai-as-promised'; | ||
global.chrome = require('sinon-chrome'); | ||
global.chrome = chrome; | ||
global.assert = chai.assert; | ||
global.sinon = require('sinon'); | ||
global.sinon = sinon; | ||
global.sinon.assert.expose(global.assert, {prefix: ''}); | ||
var chaiAsPromised = require('chai-as-promised'); | ||
chai.use(chaiAsPromised); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
78132
25
2176
0
17