Comparing version 0.0.11 to 0.2.0
@@ -1,6 +0,16 @@ | ||
## 0.0.11 | ||
# 0.2.0 (2018-03-03) | ||
* Changed Node target version to 6 since it is the current LTS. | ||
# 0.1.0 (2018-03-03) | ||
* Changed Node target version to 6 since it is the current LTS. | ||
# 0.0.11 | ||
* Upgrade to latest version of dependencies and use Babel 7 beta. | ||
## 0.0.10 | ||
# 0.0.10 | ||
@@ -10,31 +20,31 @@ * Upgraded to latest version of lintly and added ESLint config file. | ||
## 0.0.9 | ||
# 0.0.9 | ||
* Added coverage badge to [README.md](README.md). | ||
## 0.0.8 | ||
# 0.0.8 | ||
* Added npm badge to [README.md](README.md). | ||
## 0.0.7 | ||
# 0.0.7 | ||
* Added [LICENSE.md](LICENSE.md). | ||
## 0.0.6 | ||
# 0.0.6 | ||
* Update `package.json` to limit what files are included in npm package. | ||
## 0.0.5 | ||
# 0.0.5 | ||
* Update Jest config to err if coverage drops below 100%. | ||
## 0.0.4 | ||
# 0.0.4 | ||
* Upgraded dependencies to latest versions. | ||
## 0.0.3 | ||
# 0.0.3 | ||
* Switched to using [lintly](https://github.com/dogma-io/lintly) for linting to reduce boilerplate in this repo. | ||
## 0.0.2 | ||
# 0.0.2 | ||
@@ -45,4 +55,4 @@ * Fixed usage text in [README.md](README.md). | ||
## 0.0.1 | ||
# 0.0.1 | ||
* Initial implementation. |
@@ -17,9 +17,8 @@ "use strict"; | ||
if (Array.isArray(object)) { | ||
return Object.freeze(object.map(function (item) { | ||
return Object.freeze(object.map(item => { | ||
return deepFreeze(item); | ||
})); | ||
} else if (typeof object === 'object' && object !== null) { | ||
return Object.freeze(Object.keys(object).reduce(function (obj, key) { | ||
return Object.freeze(Object.keys(object).reduce((obj, key) => { | ||
return Object.assign(obj, { | ||
// $FlowFixMe - Flow will complain about accessing computed property | ||
[key]: deepFreeze(object[key]) | ||
@@ -26,0 +25,0 @@ }); |
{ | ||
"name": "freezly", | ||
"version": "0.0.11", | ||
"version": "0.2.0", | ||
"description": "Small utility for deeply freezing objects in JavaScript.", | ||
@@ -10,3 +10,3 @@ "main": "lib/index.js", | ||
"scripts": { | ||
"build": "nodely -s ./src -o ./lib # && npm run gen-types", | ||
"build": "nodely -s ./src -o ./lib -n 1 # && npm run gen-types", | ||
"gen-types": "flow gen-flow-files src --out-dir lib", | ||
@@ -37,14 +37,12 @@ "postpublish": "codecov", | ||
"devDependencies": { | ||
"@babel/core": "7.0.0-beta.36", | ||
"@babel/preset-env": "7.0.0-beta.36", | ||
"@babel/preset-flow": "7.0.0-beta.36", | ||
"@babel/preset-react": "7.0.0-beta.36", | ||
"babel-core": "^7.0.0-0", | ||
"babel-jest": "22.0.4", | ||
"babel-jest": "22.4.1", | ||
"codecov": "3.0.0", | ||
"flow-bin": "0.63.1", | ||
"jest-cli": "22.0.4", | ||
"lintly": "0.0.18", | ||
"nodely": "0.0.22" | ||
"jest-cli": "22.4.2", | ||
"lintly": "0.0.25", | ||
"nodely": "0.0.29" | ||
}, | ||
"engines": { | ||
"node": ">= 6" | ||
}, | ||
"jest": { | ||
@@ -69,2 +67,2 @@ "collectCoverage": true, | ||
} | ||
} | ||
} |
@@ -5,2 +5,10 @@ # freezly [![NPM][npm-img]][npm-url] [![Coverage][cov-img]][cov-url] | ||
## Table of Contents | ||
* [Installation](#installation) | ||
* [Documentation](#documentation) | ||
* [Code of Conduct](#code-of-conduct) | ||
* [Contributing](#contributing) | ||
* [License](#license) | ||
## Installation | ||
@@ -20,3 +28,3 @@ | ||
## Usage | ||
## Documentation | ||
@@ -39,2 +47,14 @@ Below is an example of how to use **freezly**. | ||
## Code of Conduct | ||
Please see the [code of conduct](CODE_OF_CONDUCT.md). | ||
## Contributing | ||
Please see the [contributing guide](CONTRIBUTING.md). | ||
## License | ||
[MIT](LICENSE.md) | ||
[cov-img]: https://img.shields.io/codecov/c/github/dogma-io/freezly.svg "Code Coverage" | ||
@@ -45,2 +65,1 @@ [cov-url]: https://codecov.io/gh/dogma-io/freezly | ||
[npm-url]: https://www.npmjs.com/package/freezly | ||
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
5651
6
62
5
24
1