| "use strict"; | ||
| module.exports = warnOnce; | ||
| var printed = {}; | ||
| function warnOnce(message) { | ||
| if (printed[message]) { | ||
| return; | ||
| }printed[message] = true; | ||
| if (typeof console !== "undefined" && console.warn) console.warn(message); | ||
| } |
+7
-7
@@ -122,3 +122,3 @@ # PostCSS API | ||
| resolve(); | ||
| }) | ||
| }); | ||
| }); | ||
@@ -481,3 +481,3 @@ }; | ||
| }); | ||
| } | ||
| }; | ||
| }); | ||
@@ -491,3 +491,3 @@ | ||
| // }] | ||
| }) | ||
| }); | ||
| ``` | ||
@@ -570,4 +570,4 @@ | ||
| }); | ||
| } | ||
| }) | ||
| }; | ||
| }); | ||
| ``` | ||
@@ -587,3 +587,3 @@ | ||
| } | ||
| }) | ||
| }); | ||
| ``` | ||
@@ -1374,3 +1374,3 @@ | ||
| comment.removeSelf(); | ||
| }) | ||
| }); | ||
| ``` | ||
@@ -1377,0 +1377,0 @@ |
+3
-0
@@ -0,1 +1,4 @@ | ||
| ## 4.1.1 | ||
| * Show deprecated message only once. | ||
| ## 4.1 “Marquis Andras” | ||
@@ -2,0 +5,0 @@ * Asynchronous plugin support. |
@@ -9,3 +9,3 @@ "use strict"; | ||
| var warn = _interopRequire(require("./warn")); | ||
| var warnOnce = _interopRequire(require("./warn-once")); | ||
@@ -70,3 +70,3 @@ var CssSyntaxError = (function (_SyntaxError) { | ||
| CssSyntaxError.prototype.highlight = function highlight(color) { | ||
| warn("CssSyntaxError#highlight is deprecated and will be removed " + "in 5.0. Use error.showSourceCode instead."); | ||
| warnOnce("CssSyntaxError#highlight is deprecated and will be " + "removed in 5.0. Use error.showSourceCode instead."); | ||
| return this.showSourceCode(color).replace(/^\n/, ""); | ||
@@ -73,0 +73,0 @@ }; |
@@ -13,2 +13,4 @@ "use strict"; | ||
| var warnOnce = _interopRequire(require("./warn-once")); | ||
| var Result = _interopRequire(require("./result")); | ||
@@ -20,4 +22,2 @@ | ||
| var warn = _interopRequire(require("./warn")); | ||
| function isPromise(obj) { | ||
@@ -152,3 +152,3 @@ return typeof obj === "object" && typeof obj.then === "function"; | ||
| if (a[0] !== b[0] || parseInt(a[1]) > parseInt(b[1])) { | ||
| warn("" + pluginName + " is based on PostCSS " + pluginVersion + " " + ("but you use it with PostCSS " + runtimeVersion + ". ") + "Maybe this is a source of error below."); | ||
| warnOnce("" + pluginName + " is based on " + ("PostCSS " + pluginVersion + " but you use it ") + ("with PostCSS " + runtimeVersion + ". ") + "Maybe this is a source of error below."); | ||
| } | ||
@@ -155,0 +155,0 @@ } |
+4
-4
@@ -9,6 +9,6 @@ "use strict"; | ||
| var warnOnce = _interopRequire(require("./warn-once")); | ||
| var Warning = _interopRequire(require("./warning")); | ||
| var warn = _interopRequire(require("./warn")); | ||
| var Result = (function () { | ||
@@ -51,3 +51,3 @@ function Result(processor, root, opts) { | ||
| get: function () { | ||
| warn("result.from is deprecated and will be removed in 5.0. " + "Use result.opts.from instead."); | ||
| warnOnce("result.from is deprecated and will be removed in 5.0. " + "Use result.opts.from instead."); | ||
| return this.opts.from; | ||
@@ -58,3 +58,3 @@ } | ||
| get: function () { | ||
| warn("result.to is deprecated and will be removed in 5.0. " + "Use result.opts.to instead."); | ||
| warnOnce("result.to is deprecated and will be removed in 5.0. " + "Use result.opts.to instead."); | ||
| return this.opts.to; | ||
@@ -61,0 +61,0 @@ } |
+2
-2
| { | ||
| "name": "postcss", | ||
| "version": "4.1.0", | ||
| "version": "4.1.1", | ||
| "description": "Tool for transforming CSS with JS plugins", | ||
@@ -43,3 +43,3 @@ "keywords": [ | ||
| "request": "2.54.0", | ||
| "cssnext": "1.1.0", | ||
| "cssnext": "1.2.1", | ||
| "rework": "1.0.1", | ||
@@ -46,0 +46,0 @@ "mensch": "0.3.1", |
+1
-1
@@ -306,3 +306,3 @@ # PostCSS [](https://travis-ci.org/postcss/postcss) [](https://gitter.im/postcss/postcss?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
| * [`list-selectors`] lists and categorizes the selectors used in your CSS, | ||
| for code review and analysis. | ||
| for code review. | ||
@@ -309,0 +309,0 @@ [`postcss-color-rebeccapurple`]: https://github.com/postcss/postcss-color-rebeccapurple |
| "use strict"; | ||
| module.exports = warn; | ||
| function warn(message) { | ||
| if (typeof console !== "undefined" && console.warn) console.warn(message); | ||
| } |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
178234
0.11%2366
0.17%