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

@tds/util-helpers

Package Overview
Dependencies
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tds/util-helpers - npm Package Compare versions

Comparing version 1.5.1 to 1.6.0

pixelToRem.js

11

CHANGELOG.md

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

# [1.6.0](https://github.com/telus/tds-core/compare/@tds/util-helpers@1.5.1...@tds/util-helpers@1.6.0) (2021-01-15)
### Features
* **util-helpers:** add pixelToRem() ([39b8594](https://github.com/telus/tds-core/commit/39b8594c365a62c75bb3e27d65687b75c35945fe))
## [1.5.1](https://github.com/telus/tds-core/compare/@tds/util-helpers@1.5.0...@tds/util-helpers@1.5.1) (2020-09-11)

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

@@ -76,2 +76,8 @@ 'use strict';

var BASE_FONT_SIZE = 16;
var pixelToRem = function pixelToRem(pixel) {
return "".concat(pixel / BASE_FONT_SIZE, "rem");
};
var DependentIconSizeContext = react.createContext({});

@@ -257,4 +263,5 @@

exports.handleResponsiveStyles = handleResponsiveStyles;
exports.pixelToRem = pixelToRem;
exports.prepareArray = prepareArray;
exports.safeRest = safeRest;
exports.uniqueId = uniqueId;

8

dist/index.es.js

@@ -72,2 +72,8 @@ import { createContext } from 'react';

var BASE_FONT_SIZE = 16;
var pixelToRem = function pixelToRem(pixel) {
return "".concat(pixel / BASE_FONT_SIZE, "rem");
};
var DependentIconSizeContext = createContext({});

@@ -248,2 +254,2 @@

export { DependentIconSizeContext, generateResponsiveStyles, generateStyles, getCopy, handleResponsiveStyles, prepareArray, safeRest, uniqueId };
export { DependentIconSizeContext, generateResponsiveStyles, generateStyles, getCopy, handleResponsiveStyles, pixelToRem, prepareArray, safeRest, uniqueId };

@@ -5,2 +5,3 @@ /* eslint-disable import/prefer-default-export */

export { default as safeRest } from './safeRest'
export { default as pixelToRem } from './pixelToRem'
export { default as DependentIconSizeContext } from './DependentIconSizeContext'

@@ -7,0 +8,0 @@ export {

4

package.json
{
"name": "@tds/util-helpers",
"version": "1.5.1",
"version": "1.6.0",
"description": "TDS helpers",

@@ -26,3 +26,3 @@ "main": "index.cjs.js",

},
"gitHead": "75cca2ccb763f7a4d8834024e2e64d0ad88f0981"
"gitHead": "7e200d67011651c14f894191e0667af9817d2377"
}
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