You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

weex-styler

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.15 to 0.0.16

4

index.js

@@ -44,3 +44,3 @@ 'use strict'

err.forEach(function (error) {
log.push({line: error.line, column: error.column, reason: error.toString()})
log.push({line: error.line, column: error.column, reason: error.toString().replace('Error', 'ERROR')})
})

@@ -102,3 +102,3 @@ }

column: rule.position.start.column,
reason: 'Error: Selector `' + selector + '` is not supported. Weex only support single-classname selector'
reason: 'ERROR: Selector `' + selector + '` is not supported. Weex only support single-classname selector'
})

@@ -105,0 +105,0 @@ }

@@ -203,3 +203,3 @@ var util = require('./util')

reason: function reason(k, v, result) {
return 'Error: property value `' + v + '` is not supported for `' + util.camelCaseToHyphened(k) + '` (only number and pixel values are supported)'
return 'ERROR: property value `' + v + '` is not supported for `' + util.camelCaseToHyphened(k) + '` (only number and pixel values are supported)'
}

@@ -271,3 +271,3 @@ }

reason: function reason(k, v, result) {
return 'Error: property value `' + v + '` is not valid for `' + util.camelCaseToHyphened(k) + '`'
return 'ERROR: property value `' + v + '` is not valid for `' + util.camelCaseToHyphened(k) + '`'
}

@@ -295,3 +295,3 @@ }

reason: function reason(k, v, result) {
return 'Error: property value `' + v + '` is not supported for `' + util.camelCaseToHyphened(k) + '` (only number is supported)'
return 'ERROR: property value `' + v + '` is not supported for `' + util.camelCaseToHyphened(k) + '` (only number is supported)'
}

@@ -319,3 +319,3 @@ }

reason: function reason(k, v, result) {
return 'Error: property value `' + v + '` is not supported for `' + util.camelCaseToHyphened(k) + '` (only integer is supported)'
return 'ERROR: property value `' + v + '` is not supported for `' + util.camelCaseToHyphened(k) + '` (only integer is supported)'
}

@@ -353,3 +353,3 @@ }

reason: function reason(k, v, result) {
return 'Error: property value `' + v + '` is not supported for `' + util.camelCaseToHyphened(k) + '` (supported values are: `' + list.join('`|`') + '`)'
return 'ERROR: property value `' + v + '` is not supported for `' + util.camelCaseToHyphened(k) + '` (supported values are: `' + list.join('`|`') + '`)'
}

@@ -468,3 +468,3 @@ }

result = {value: value}
log = {reason: 'Warning: `' + util.camelCaseToHyphened(name) + '` is not a standard property name'}
log = {reason: 'WARNING: `' + util.camelCaseToHyphened(name) + '` is not a standard property name'}
}

@@ -471,0 +471,0 @@ return {

{
"name": "weex-styler",
"version": "0.0.15",
"version": "0.0.16",
"description": "Weex <style> transformer",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -18,5 +18,5 @@ var chai = require('chai')

expect(data.log).eql([
{line: 1, column: 1, reason: 'Error: Selector `html` is not supported. Weex only support single-classname selector'},
{line: 1, column: 1, reason: 'ERROR: Selector `html` is not supported. Weex only support single-classname selector'},
{line: 3, column: 7, reason: 'NOTE: property value `red` is autofixed to `#FF0000`'},
{line: 3, column: 60, reason: 'Warning: `-webkit-transform` is not a standard property name'},
{line: 3, column: 60, reason: 'WARNING: `-webkit-transform` is not a standard property name'},
{line: 3, column: 94, reason: 'NOTE: property value `200px` is autofixed to `200`'},

@@ -73,3 +73,3 @@ {line: 3, column: 117, reason: 'NOTE: property value `0px` is autofixed to `0`'}

expect(err[0].source).eql('')
expect(data.log).eql([{line: 1, column: 5, reason: 'Error: undefined:1:5: missing \'{\''}])
expect(data.log).eql([{line: 1, column: 5, reason: 'ERROR: undefined:1:5: missing \'{\''}])
done()

@@ -76,0 +76,0 @@ })

@@ -54,3 +54,3 @@ var chai = require('chai')

{reason: 'NOTE: property value `0px` is autofixed to `0`'},
{reason: 'Error: property value `asdf` is not supported for `margin-right` (only number and pixel values are supported)'}
{reason: 'ERROR: property value `asdf` is not supported for `margin-right` (only number and pixel values are supported)'}
])

@@ -96,4 +96,4 @@ done()

expect(data.log).eql([
{reason: 'Error: property value `a` is not supported for `opacity` (only number is supported)'},
{reason: 'Error: property value `0.5a` is not supported for `opacity` (only number is supported)'}
{reason: 'ERROR: property value `a` is not supported for `opacity` (only number is supported)'},
{reason: 'ERROR: property value `0.5a` is not supported for `opacity` (only number is supported)'}
])

@@ -137,5 +137,5 @@ done()

expect(data.log).eql([
{reason: 'Error: property value `0.5` is not supported for `z-index` (only integer is supported)'},
{reason: 'Error: property value `a` is not supported for `z-index` (only integer is supported)'},
{reason: 'Error: property value `0.5a` is not supported for `z-index` (only integer is supported)'}
{reason: 'ERROR: property value `0.5` is not supported for `z-index` (only integer is supported)'},
{reason: 'ERROR: property value `a` is not supported for `z-index` (only integer is supported)'},
{reason: 'ERROR: property value `0.5a` is not supported for `z-index` (only integer is supported)'}
])

@@ -203,5 +203,5 @@ done()

{reason: 'NOTE: property value `lightpink` is autofixed to `#FFB6C1`'},
{reason: 'Error: property value `asdf` is not valid for `background-color`'},
{reason: 'Error: property value `rgb(266,0,255)` is not valid for `color`'},
{reason: 'Error: property value `rgba(234,45,99,1.3)` is not valid for `background-color`'}
{reason: 'ERROR: property value `asdf` is not valid for `background-color`'},
{reason: 'ERROR: property value `rgb(266,0,255)` is not valid for `color`'},
{reason: 'ERROR: property value `rgba(234,45,99,1.3)` is not valid for `background-color`'}
])

@@ -244,3 +244,3 @@ done()

{reason: 'NOTE: property value `relative` is the DEFAULT value for `position` (could be removed)'},
{reason: 'Error: property value `` is not supported for `position` (supported values are: `relative`|`absolute`|`sticky`|`fixed`)'}
{reason: 'ERROR: property value `` is not supported for `position` (supported values are: `relative`|`absolute`|`sticky`|`fixed`)'}
])

@@ -270,5 +270,5 @@ done()

expect(data.log).eql([
{reason: 'Warning: `abc` is not a standard property name'},
{reason: 'Warning: `-abc-def` is not a standard property name'},
{reason: 'Warning: `abc-def` is not a standard property name'}
{reason: 'WARNING: `abc` is not a standard property name'},
{reason: 'WARNING: `-abc-def` is not a standard property name'},
{reason: 'WARNING: `abc-def` is not a standard property name'}
])

@@ -293,3 +293,3 @@ done()

{reason: 'NOTE: property value `red` is autofixed to `#FF0000`'},
{reason: 'Warning: `-webkit-transform` is not a standard property name'},
{reason: 'WARNING: `-webkit-transform` is not a standard property name'},
{reason: 'NOTE: property value `200px` is autofixed to `200`'}

@@ -296,0 +296,0 @@ ])

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc