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

@tokey/css-value-parser

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tokey/css-value-parser - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

10

dist/value-parser.js

@@ -17,7 +17,13 @@ "use strict";

if (type === `space`) {
const firstSpace = value.indexOf(` `);
let firstSpace = value.indexOf(` `);
if (firstSpace === -1) {
firstSpace = value.indexOf(`\n`);
}
if (firstSpace === -1) {
firstSpace = value.indexOf(`\t`);
}
const before = firstSpace !== -1 ? value.substring(0, firstSpace) : ``;
const after = firstSpace !== -1 ? value.substring(firstSpace + 1) : value.substring(1);
ast.push((0, ast_types_1.space)({
value: firstSpace !== -1 ? ` ` : value[0],
value: firstSpace !== -1 ? value[firstSpace] : value[0],
start,

@@ -24,0 +30,0 @@ end,

4

package.json
{
"name": "@tokey/css-value-parser",
"description": "value parser for css",
"version": "0.1.3",
"version": "0.1.4",
"main": "dist/index.js",

@@ -11,3 +11,3 @@ "types": "dist/index.d.ts",

"dependencies": {
"@tokey/core": "^1.3.0"
"@tokey/core": "^1.4.0"
},

@@ -14,0 +14,0 @@ "keywords": [

@@ -53,3 +53,9 @@ import {

if (type === `space`) {
const firstSpace = value.indexOf(` `);
let firstSpace = value.indexOf(` `);
if (firstSpace === -1) {
firstSpace = value.indexOf(`\n`);
}
if (firstSpace === -1) {
firstSpace = value.indexOf(`\t`);
}
const before = firstSpace !== -1 ? value.substring(0, firstSpace) : ``;

@@ -59,3 +65,3 @@ const after = firstSpace !== -1 ? value.substring(firstSpace + 1) : value.substring(1);

space({
value: firstSpace !== -1 ? ` ` : value[0],
value: firstSpace !== -1 ? value[firstSpace] : value[0],
start,

@@ -62,0 +68,0 @@ end,

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