@flatten-js/core
Advanced tools
Comparing version 1.3.7 to 1.3.8
{ | ||
"name": "@flatten-js/core", | ||
"version": "1.3.7", | ||
"version": "1.3.8", | ||
"description": "Javascript library for 2d geometry", | ||
@@ -23,3 +23,3 @@ "main": "dist/main.cjs.js", | ||
"coverage": "nyc report --reporter=text-lcov | coveralls", | ||
"build": "rollup -c" | ||
"build": "rollup -c --bundleConfigAsCjs" | ||
}, | ||
@@ -61,2 +61,3 @@ "repository": { | ||
"@babel/register": "^7.18.9", | ||
"@rollup/plugin-node-resolve": "^15.1.0", | ||
"babel-plugin-istanbul": "^5.1.1", | ||
@@ -70,5 +71,3 @@ "chai": "^4.2.0", | ||
"nyc": "^15.1.0", | ||
"rollup": "^1.7.3", | ||
"rollup-plugin-node-resolve": "^4.0.0", | ||
"rollup-plugin-terser": "^5.1.3" | ||
"rollup": "^3.25.1" | ||
}, | ||
@@ -75,0 +74,0 @@ "dependencies": { |
@@ -1,3 +0,2 @@ | ||
import resolve from 'rollup-plugin-node-resolve'; | ||
// import { terser } from "rollup-plugin-terser"; | ||
import { nodeResolve } from '@rollup/plugin-node-resolve'; | ||
@@ -24,9 +23,3 @@ export default { | ||
], | ||
plugins: [ | ||
resolve({ | ||
customResolveOptions: { | ||
moduleDirectory: 'node_modules' | ||
} | ||
}) | ||
] | ||
plugins: [nodeResolve()] | ||
}; |
@@ -279,3 +279,3 @@ /** | ||
svg(attrs = {}) { | ||
const r = attrs.r || 3 // default radius - 3 | ||
const r = attrs.r ?? 3 // default radius - 3 | ||
return `\n<circle cx="${this.x}" cy="${this.y}" r="${r}" | ||
@@ -282,0 +282,0 @@ ${convertToString({fill: "red", ...attrs})} />`; |
@@ -10,3 +10,3 @@ const defaultAttributes = { | ||
} | ||
this.stroke = args.stroke || defaultAttributes.stroke | ||
this.stroke = args.stroke ?? defaultAttributes.stroke | ||
} | ||
@@ -13,0 +13,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
5626612
15
36204