css-color-parser-h 3.0.3 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/example.html +6 -7
  2. package/package.json +1 -2
package/example.html CHANGED
@@ -23,14 +23,13 @@
23
23
  <body>
24
24
  <h2>f12 to view console log</h2>
25
25
  <script>
26
- const cssColorParser = new Parser.CssColorParser()
27
- const cssColorParserPlus = new Parser.CssColorParserPlus()
26
+ const cssColorParser = new Parser.CssColorParserPlus()
28
27
  console.log(cssColorParser.toHEX())
29
- console.log(cssColorParserPlus.toRGBA())
30
- cssColorParserPlus.add('#333').add('red')
31
- console.log(cssColorParserPlus.toRGBA())
32
- cssColorParserPlus.subtract('blue', false)
33
- console.log(cssColorParserPlus.toRGBA())
28
+ console.log(cssColorParser.toRGBA())
29
+ cssColorParser.add('#333').add('red')
30
+ console.log(cssColorParser.toRGBA())
31
+ cssColorParser.subtract('blue', false)
32
+ console.log(cssColorParser.toRGBA())
34
33
  </script>
35
34
  </body>
36
35
  </html>
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "css-color-parser-h",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "description": "A tool for parsing css color",
5
5
  "main": "dist/css-color-parser-h.cjs",
6
- "module": "dist/css-color-parser-h.esm.js",
7
6
  "types": "@types/index.d.ts",
8
7
  "scripts": {
9
8
  "build": "webpack && node release.js",