@sinonjs/commons
Advanced tools
Comparing version 1.8.1 to 1.8.2
# Changes | ||
## 1.8.2 | ||
- [`6b7a796`](https://github.com/sinonjs/commons/commit/6b7a796ffc088b43dc283cc4477a7d641720dc96) | ||
Add .d.ts files to package (Morgan Roderick) | ||
> | ||
> In order to improve the experience of TypeScript users, we are compiling | ||
> `.d.ts` files from the JSDoc and distributing them with the package | ||
> | ||
_Released on 2021-01-13._ | ||
## 1.8.1 | ||
@@ -4,0 +15,0 @@ |
@@ -15,3 +15,3 @@ "use strict"; | ||
try { | ||
/* eslint-disable-next-line local-rules/no-prototype-methods */ | ||
// eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods | ||
obj.forEach(function() { | ||
@@ -18,0 +18,0 @@ if (!fn.apply(this, arguments)) { |
@@ -6,3 +6,3 @@ "use strict"; | ||
module.exports = function copyPrototypeMethods(prototype) { | ||
/* eslint-disable local-rules/no-prototype-methods */ | ||
// eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods | ||
return Object.getOwnPropertyNames(prototype).reduce(function(result, name) { | ||
@@ -9,0 +9,0 @@ // ignore size because it throws from Map |
@@ -11,3 +11,3 @@ "use strict"; | ||
if (value && value.toString) { | ||
/* eslint-disable-next-line local-rules/no-prototype-methods */ | ||
// eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods | ||
return value.toString(); | ||
@@ -14,0 +14,0 @@ } |
{ | ||
"name": "@sinonjs/commons", | ||
"version": "1.8.1", | ||
"version": "1.8.2", | ||
"description": "Simple functions shared among the sinon end user libraries", | ||
"main": "lib/index.js", | ||
"types": "./types/index.d.ts", | ||
"scripts": { | ||
"build": "rm -rf types && tsc", | ||
"lint": "eslint .", | ||
@@ -12,2 +14,3 @@ "precommit": "lint-staged", | ||
"test-coverage": "nyc --reporter text --reporter html --reporter lcovonly npm run test", | ||
"prepublishOnly": "npm run build", | ||
"preversion": "npm run test-check-coverage", | ||
@@ -22,3 +25,4 @@ "version": "changes --commits --footer", | ||
"files": [ | ||
"lib" | ||
"lib", | ||
"types" | ||
], | ||
@@ -37,2 +41,3 @@ "author": "", | ||
"devDependencies": { | ||
"@sinonjs/eslint-plugin-no-prototype-methods": "^0.1.0", | ||
"@sinonjs/referee-sinon": "7.0.2", | ||
@@ -45,3 +50,2 @@ "@studio/changes": "^2.0.0", | ||
"eslint-plugin-jsdoc": "^22.1.0", | ||
"eslint-plugin-local-rules": "^0.1.0", | ||
"eslint-plugin-mocha": "^6.1.1", | ||
@@ -55,3 +59,4 @@ "eslint-plugin-prettier": "^3.0.0", | ||
"nyc": "15.0.0", | ||
"prettier": "^1.14.3" | ||
"prettier": "^1.14.3", | ||
"typescript": "^4.1.3" | ||
}, | ||
@@ -58,0 +63,0 @@ "dependencies": { |
37264
52
941
18