plugin-node-wrappable
Advanced tools
Comparing version 1.0.0 to 1.1.0
11
index.js
@@ -20,3 +20,3 @@ 'use strict'; | ||
function onPatternIterate(patternlab, pattern) { | ||
function wrapPattern(pattern) { | ||
const patternData = JSON.parse(pattern.patternData); | ||
@@ -28,2 +28,11 @@ if (patternData.extraOutput && patternData.extraOutput.wrap_in) { | ||
function onPatternIterate(patternlab, pattern) { | ||
// Patternlab >=5 will supply arguments as an array | ||
if (typeof pattern === 'undefined') { | ||
pattern = patternlab[1]; | ||
} | ||
wrapPattern(pattern); | ||
} | ||
/** | ||
@@ -30,0 +39,0 @@ * Define what events you wish to listen to here |
{ | ||
"name": "plugin-node-wrappable", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Patternlab Node plugin for wrappable patterns (e.g. on inverse backgrounds)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
![license](https://img.shields.io/github/license/networkteam/plugin-node-wrappable.svg) | ||
![license](https://img.shields.io/github/license/networkteam/patternlab-plugin-node-wrappable.svg) | ||
[![npm](https://img.shields.io/npm/v/plugin-node-wrappable.svg)](https://www.npmjs.com/package/plugin-node-wrappable) | ||
@@ -46,2 +46,4 @@ | ||
--- | ||
[Insert description here] | ||
``` | ||
@@ -48,0 +50,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6597
5
79
55