Socket
Socket
Sign inDemoInstall

fower-plugin-font-family

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fower-plugin-font-family - npm Package Compare versions

Comparing version 1.38.0 to 1.39.0

5

dist/fower-plugin-font-family.cjs.development.js

@@ -5,3 +5,2 @@ 'use strict';

var core = require('@fower/core');
var utils = require('@fower/utils');

@@ -15,5 +14,5 @@

isMatch: isMatch,
handleAtom: function handleAtom(atom) {
handleAtom: function handleAtom(atom, parser) {
var key = atom.key;
var fontFamilies = core.store.getTheme().fontFamilies;
var fontFamilies = parser.config.theme.fontFamilies;
var posfix = key.replace(/^font/i, '');

@@ -20,0 +19,0 @@ var styleValue = fontFamilies[utils.downFirst(posfix)];

2

dist/fower-plugin-font-family.cjs.production.min.js

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@fower/core"),t=require("@fower/utils");function r(e){return/^font(Sans|Serif|Mono)?$/i.test(e)}exports.default=function(){return{isMatch:r,handleAtom:function(r){var o=r.key,n=e.store.getTheme().fontFamilies,i=o.replace(/^font/i,""),s=n[t.downFirst(i)];return r.style={fontFamily:s},r}}},exports.isMatch=r;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@fower/utils");function t(e){return/^font(Sans|Serif|Mono)?$/i.test(e)}exports.default=function(){return{isMatch:t,handleAtom:function(t,r){var n=r.config.theme.fontFamilies,o=t.key.replace(/^font/i,""),i=n[e.downFirst(o)];return t.style={fontFamily:i},t}}},exports.isMatch=t;
//# sourceMappingURL=fower-plugin-font-family.cjs.production.min.js.map

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

import { store } from '@fower/core';
import { downFirst } from '@fower/utils';

@@ -10,5 +9,5 @@

isMatch: isMatch,
handleAtom: function handleAtom(atom) {
handleAtom: function handleAtom(atom, parser) {
var key = atom.key;
var fontFamilies = store.getTheme().fontFamilies;
var fontFamilies = parser.config.theme.fontFamilies;
var posfix = key.replace(/^font/i, '');

@@ -15,0 +14,0 @@ var styleValue = fontFamilies[downFirst(posfix)];

{
"name": "fower-plugin-font-family",
"version": "1.38.0",
"version": "1.39.0",
"license": "MIT",

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

"dependencies": {
"@fower/atomic-props": "^1.38.0",
"@fower/core": "^1.38.0",
"@fower/utils": "^1.38.0"
"@fower/atomic-props": "^1.39.0",
"@fower/core": "^1.39.0",
"@fower/utils": "^1.39.0"
},
"gitHead": "3bdc9acfd80533f2b1de163eb2087c8aa9688424"
"gitHead": "697daf010cf4715beceda9ca9596bf7fd77ccb79"
}

Sorry, the diff of this file is not supported yet

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