@hsds/utils-sass
Advanced tools
Comparing version 5.2.1 to 7.0.0
@@ -5,4 +5,26 @@ # Changelog | ||
### [5.2.1](https://github.com/helpscout/hsds/compare/utils-sass-5.2.0...utils-sass-5.2.1) (2022-08-25) | ||
# [7.0.0](https://github.com/helpscout/hsds/compare/v6.0.0...v7.0.0) (2023-01-12) | ||
# [6.0.0](https://github.com/helpscout/hsds/compare/v5.0.0...v6.0.0) (2023-01-12) | ||
# [5.0.0](https://github.com/helpscout/hsds/compare/v4.0.0...v5.0.0) (2023-01-12) | ||
### Bug Fixes | ||
* **workspace:** remove esm module from projects ([829cc37](https://github.com/helpscout/hsds/commit/829cc3795f54a8bcfbc0c45b5bc36bd17463bf54)) | ||
### Features | ||
* **workspace:** improves versioning packages ([b836826](https://github.com/helpscout/hsds/commit/b836826d549aeb7295498f1091c783136079f134)) | ||
### [5.2.1](https://github.com/helpscout/hsds/compare/utils-sass-5.2.0...utils-sass-5.2.1) (2022-08-29) | ||
## [5.2.0](https://github.com/helpscout/hsds/compare/utils-sass-5.1.0...utils-sass-5.2.0) (2022-08-18) | ||
@@ -9,0 +31,0 @@ |
{ | ||
"name": "@hsds/utils-sass", | ||
"version": "5.2.1", | ||
"main": "./index.cjs.js", | ||
"module": "./index.esm.js", | ||
"typings": "./index.d.ts", | ||
"version": "7.0.0", | ||
"main": "./index.cjs", | ||
"type": "commonjs", | ||
"types": "./index.d.ts", | ||
"dependencies": { | ||
"lodash.isplainobject": "^4.0.6" | ||
"lodash.isplainobject": "4.0.6" | ||
}, | ||
"peerDependencies": {} | ||
} |
@@ -5,7 +5,4 @@ "use strict"; | ||
exports.forEach = void 0; | ||
var _lodash = _interopRequireDefault(require("lodash.isplainobject")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -22,16 +19,11 @@ * A helper function that works like Sass' @for. | ||
} | ||
if (typeof callback !== 'function') return ''; | ||
if (Array.isArray(list)) { | ||
return list.map(callback).join(' '); | ||
} | ||
if ((0, _lodash.default)(list)) { | ||
return Object.keys(list).map((key, index) => callback(key, list[key], index)).join(' '); | ||
} | ||
return ''; | ||
}; | ||
exports.forEach = forEach; |
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
4761
0
174
Updatedlodash.isplainobject@4.0.6