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

@aesthetic/addon-direction

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aesthetic/addon-direction - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

11

dts/index.d.ts

@@ -5,10 +5,5 @@ /**

*/
import { Direction, NativeProperty, Value } from '@aesthetic/types';
declare const _default: {
convert<T extends Value>(from: Direction, to: Direction, property: NativeProperty, value: T): {
property: NativeProperty;
value: T;
};
};
export default _default;
import { DirectionConverter } from '@aesthetic/types';
declare const converter: DirectionConverter;
export default converter;
//# sourceMappingURL=index.d.ts.map

@@ -9,3 +9,3 @@ // Bundled with Packemon: https://packemon.dev

const index = {
const converter = {
convert(from, to, property, value) {

@@ -26,3 +26,3 @@ if (from === to) {

};
export default index;
export default converter;
//# sourceMappingURL=index.js.map

@@ -12,3 +12,3 @@ // Bundled with Packemon: https://packemon.dev

const index = {
const converter = {
convert(from, to, property, value) {

@@ -29,3 +29,3 @@ if (from === to) {

};
module.exports = index;
module.exports = converter;
//# sourceMappingURL=index.js.map
{
"name": "@aesthetic/addon-direction",
"version": "0.4.1",
"version": "0.4.2",
"description": "Aesthetic addon to convert direction between LTR and RTL.",

@@ -33,3 +33,3 @@ "keywords": [

"dependencies": {
"@aesthetic/types": "^0.6.1",
"@aesthetic/types": "^0.6.2",
"rtl-css-js": "^1.14.1"

@@ -44,3 +44,3 @@ },

},
"gitHead": "864068a1c3e4f6562bc2f920bca3de52d47bc19b"
"gitHead": "1d7a8aee700f68a11bd98c7a3b3d45d2ef3f789c"
}

@@ -7,11 +7,6 @@ /**

import { getPropertyDoppelganger, getValueDoppelganger } from 'rtl-css-js/core';
import { Direction, NativeProperty, Value } from '@aesthetic/types';
import { DirectionConverter, NativeProperty } from '@aesthetic/types';
export default {
convert<T extends Value>(
from: Direction,
to: Direction,
property: NativeProperty,
value: T,
): { property: NativeProperty; value: T } {
const converter: DirectionConverter = {
convert(from, to, property, value) {
if (from === to) {

@@ -27,1 +22,3 @@ return { property, value };

};
export default converter;

Sorry, the diff of this file is not supported yet

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