dmp-template-data
Advanced tools
Comparing version 0.1.0 to 0.2.1
{ | ||
"name": "dmp-template-data", | ||
"version": "0.1.0", | ||
"version": "0.2.1", | ||
"description": "component to analyze template DOM", | ||
"main": "src/index.js", | ||
"main": "dist/dmp-template-data.js", | ||
"scripts": { | ||
"test": "./node_modules/karma/bin/karma start" | ||
"start": "NODE_ENV=development $(npm bin)/webpack --watch", | ||
"build": "NODE_ENV=production $(npm bin)/webpack", | ||
"test": "NODE_ENV=test $(npm bin)/karma start --single-run", | ||
"test:watch": "NODE_ENV=test $(npm bin)/karma start" | ||
}, | ||
@@ -25,2 +28,6 @@ "repository": { | ||
"babel-register": "^6.8.0", | ||
"eslint": "2.12.0", | ||
"eslint-loader": "^1.5.0", | ||
"eslint-config-airbnb-base": "3.0.1", | ||
"eslint-plugin-import": "1.8.1", | ||
"jasmine": "~2.0.1", | ||
@@ -33,5 +40,4 @@ "karma": "^0.13.22", | ||
"karma-webpack": "^1.7.0", | ||
"sinon": "^1.10.3", | ||
"webpack": "^1.13.0" | ||
} | ||
} |
@@ -75,2 +75,16 @@ # dmp-template-data | ||
### templateData.getVariations(dom) | ||
* `dom` < Document Object > | ||
It returns an array of the variations. | ||
For example: | ||
```javascript | ||
templateData.getVariations(document) | ||
// return => [{ name: 'Variation', file: 'beautiful.css', color: 'red'}] | ||
``` | ||
## Contribution | ||
@@ -77,0 +91,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
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
125
6510
17
0
3
0
3