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

@basalt/bedrock-utils

Package Overview
Dependencies
Maintainers
3
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@basalt/bedrock-utils - npm Package Compare versions

Comparing version 0.24.0 to 0.25.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [0.25.0](https://github.com/basaltinc/bedrock/compare/v0.24.1...v0.25.0) (2019-01-03)
### Features
* pattern list page type and status filters ([30ca725](https://github.com/basaltinc/bedrock/commit/30ca725))
# [0.24.0](https://github.com/basaltinc/bedrock/compare/v0.23.0...v0.24.0) (2018-12-27)

@@ -8,0 +19,0 @@

23

dist/arrays.js

@@ -0,1 +1,2 @@

import _typeof from "@babel/runtime/helpers/esm/typeof";
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";

@@ -27,19 +28,15 @@

* Make an array unique by removing duplicate entries.
* @param {Array} item - Array to make unique
* @param {Array} ar - Array to make unique
* @returns {Array} - A unique array
*/
export function uniqueArray(item) {
var u = {};
var newArray = [];
for (var i = 0, l = item.length; i < l; ++i) {
if (!{}.hasOwnProperty.call(u, item[i])) {
newArray.push(item[i]);
u[item[i]] = 1;
}
}
return newArray;
export function uniqueArray(ar) {
var j = {};
ar.forEach(function (v) {
j["".concat(v, "::").concat(_typeof(v))] = v;
});
return Object.keys(j).map(function (v) {
return j[v];
});
}
//# sourceMappingURL=arrays.js.map
{
"name": "@basalt/bedrock-utils",
"license": "GPL-2.0-or-later",
"version": "0.24.0",
"version": "0.25.0",
"description": "A Bedrock component that helps build Design Systems",

@@ -16,7 +16,7 @@ "main": "dist/index.js",

"dependencies": {
"@basalt/bedrock-core": "^0.24.0",
"@basalt/bedrock-core": "^0.25.0",
"color": "^3.0.0"
},
"devDependencies": {
"@basalt/bedrock-babel-config": "^0.24.0"
"@basalt/bedrock-babel-config": "^0.25.0"
},

@@ -27,3 +27,3 @@ "author": "Basalt (https://basalt.io/)",

},
"gitHead": "4727d79a72544909ad81a1a2c59191b501127b47"
"gitHead": "51bc29f93674387d83c4e1b9654db8211bf70fdb"
}

@@ -24,15 +24,11 @@ /** @module utils */

* Make an array unique by removing duplicate entries.
* @param {Array} item - Array to make unique
* @param {Array} ar - Array to make unique
* @returns {Array} - A unique array
*/
export function uniqueArray(item) {
const u = {};
const newArray = [];
for (let i = 0, l = item.length; i < l; ++i) {
if (!{}.hasOwnProperty.call(u, item[i])) {
newArray.push(item[i]);
u[item[i]] = 1;
}
}
return newArray;
export function uniqueArray(ar) {
const j = {};
ar.forEach(v => {
j[`${v}::${typeof v}`] = v;
});
return Object.keys(j).map(v => j[v]);
}
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"allowJs": false,
"checkJs": false,
"noEmit": false,
"declaration": true,
"rootDir": "src",

@@ -5,0 +9,0 @@ "outDir": "dist"

Sorry, the diff of this file is not supported yet

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