jsx2posthtml
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -8,2 +8,8 @@ # Change Log | ||
## [1.1.1] - 2017-06-21 | ||
## Fixed | ||
- Remove postinstall script. | ||
## [1.1.0] - 2017-06-07 | ||
@@ -10,0 +16,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.jsx2posthtml=t()}(this,function(){"use strict";function n(n,t){for(var e=[],f=2;f<arguments.length;f++)e[f-2]=arguments[f];if(e=u(e),"function"==typeof n)return n(a({},t,{children:e}));var i={tag:n},c=!1;if(t){t.hasOwnProperty("dangerouslySetInnerHTML")&&t.dangerouslySetInnerHTML&&(i.content=[t.dangerouslySetInnerHTML.__html],c=!0);var s=r(t);s&&(i.attrs=s)}return c||0===e.length||(i.content=e.map(o)),i}function t(n){return"&"+f[n]+";"}function e(n){return n.replace(i,t)}function r(n){var t=Object.keys(n),r=t.indexOf("dangerouslySetInnerHTML");if(-1!==r&&t.splice(r,1),0===t.length)return null;for(var o={},u=0,a=t;u<a.length;u++){var f=a[u],i=c[f]?c[f]:e(f),s=n[f];o[i]="string"==typeof s?e(s):n[f]}return o}function o(n){return"string"==typeof n?e(n):n&&n.hasOwnProperty("__html")?n.__html:n}function u(n){return n.reduce(function(n,t){return n.concat(Array.isArray(t)?u(t):t)},[])}var a=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},f={"&":"amp","<":"lt",">":"gt",'"':"quot","'":"apos"},i=new RegExp("["+Object.keys(f).join("")+"]","g"),c={className:"class",htmlFor:"for"};return n}); | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.jsx2posthtml=t()}(this,function(){"use strict";function n(n){return"&"+a[n]+";"}function t(t){return t.replace(f,n)}function e(n){var e=Object.keys(n),r=e.indexOf("dangerouslySetInnerHTML");if(-1!==r&&e.splice(r,1),0===e.length)return null;for(var o={},u=0,a=e;u<a.length;u++){var f=a[u],c=i[f]?i[f]:t(f),s=n[f];o[c]="string"==typeof s?t(s):n[f]}return o}function r(n){return"string"==typeof n?t(n):n&&n.hasOwnProperty("__html")?n.__html:n}function o(n){return n.reduce(function(n,t){return n.concat(Array.isArray(t)?o(t):t)},[])}var u=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},a={"&":"amp","<":"lt",">":"gt",'"':"quot","'":"apos"},f=new RegExp("["+Object.keys(a).join("")+"]","g"),i={className:"class",htmlFor:"for"};return function(n,t){for(var a=[],f=2;f<arguments.length;f++)a[f-2]=arguments[f];if(a=o(a),"function"==typeof n)return n(u({},t,{children:a}));var i={tag:n},c=!1;if(t){t.hasOwnProperty("dangerouslySetInnerHTML")&&t.dangerouslySetInnerHTML&&(i.content=[t.dangerouslySetInnerHTML.__html],c=!0);var s=e(t);s&&(i.attrs=s)}return c||0===a.length||(i.content=a.map(r)),i}}); |
{ | ||
"name": "jsx2posthtml", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Converts JSX to PostHTML node", | ||
@@ -22,4 +22,3 @@ "main": "./es2015-cjs/index.js", | ||
"minify": "uglifyjs ./es5/index.js -c -m -o ./es5/jsx2posthtml.min.js", | ||
"prepublishOnly": "npm run test && npm run clean && npm run build:all && npm run minify", | ||
"postinstall": "npm run build:all" | ||
"prepublishOnly": "npm run test && npm run clean && npm run build:all && npm run minify" | ||
}, | ||
@@ -46,5 +45,5 @@ "repository": { | ||
"@types/mocha": "^2.2.41", | ||
"@types/node": "^7.0.28", | ||
"@types/node": "^8.0.1", | ||
"chai": "^4.0.2", | ||
"cross-env": "^5.0.0", | ||
"cross-env": "^5.0.1", | ||
"if-env": "^1.0.0", | ||
@@ -55,3 +54,3 @@ "mocha": "^3.4.2", | ||
"rimraf": "^2.6.1", | ||
"rollup": "^0.42.0", | ||
"rollup": "^0.43.0", | ||
"rollup-plugin-node-resolve": "^3.0.0", | ||
@@ -62,3 +61,3 @@ "ts-node": "^3.0.6", | ||
"typescript": "^2.3.4", | ||
"uglify-js": "^3.0.15" | ||
"uglify-js": "^3.0.18" | ||
}, | ||
@@ -65,0 +64,0 @@ "optionalDependencies": { |
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
69145
0