@tsparticles/shape-heart
Advanced tools
Comparing version 3.6.0 to 3.7.0
@@ -0,4 +1,6 @@ | ||
import { assertValidVersion } from "@tsparticles/engine"; | ||
import { HeartDrawer } from "./HeartDrawer.js"; | ||
export async function loadHeartShape(engine, refresh = true) { | ||
assertValidVersion(engine, "3.7.0"); | ||
await engine.addShape(new HeartDrawer(), refresh); | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.loadHeartShape = loadHeartShape; | ||
const engine_1 = require("@tsparticles/engine"); | ||
const HeartDrawer_js_1 = require("./HeartDrawer.js"); | ||
async function loadHeartShape(engine, refresh = true) { | ||
(0, engine_1.assertValidVersion)(engine, "3.7.0"); | ||
await engine.addShape(new HeartDrawer_js_1.HeartDrawer(), refresh); | ||
} |
@@ -0,4 +1,6 @@ | ||
import { assertValidVersion } from "@tsparticles/engine"; | ||
import { HeartDrawer } from "./HeartDrawer.js"; | ||
export async function loadHeartShape(engine, refresh = true) { | ||
assertValidVersion(engine, "3.7.0"); | ||
await engine.addShape(new HeartDrawer(), refresh); | ||
} |
{ | ||
"name": "@tsparticles/shape-heart", | ||
"version": "3.6.0", | ||
"version": "3.7.0", | ||
"description": "tsParticles heart shape", | ||
@@ -103,3 +103,3 @@ "homepage": "https://particles.js.org", | ||
"dependencies": { | ||
"@tsparticles/engine": "^3.6.0" | ||
"@tsparticles/engine": "3.7.0" | ||
}, | ||
@@ -106,0 +106,0 @@ "publishConfig": { |
@@ -7,3 +7,3 @@ /*! | ||
* How to use? : Check the GitHub README | ||
* v3.6.0 | ||
* v3.7.0 | ||
*/ | ||
@@ -20,10 +20,10 @@ /* | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(); | ||
module.exports = factory(require("@tsparticles/engine")); | ||
else if(typeof define === 'function' && define.amd) | ||
define([], factory); | ||
define(["@tsparticles/engine"], factory); | ||
else { | ||
var a = factory(); | ||
var a = typeof exports === 'object' ? factory(require("@tsparticles/engine")) : factory(root["window"]); | ||
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i]; | ||
} | ||
})(this, () => { | ||
})(this, (__WEBPACK_EXTERNAL_MODULE__tsparticles_engine__) => { | ||
return /******/ (() => { // webpackBootstrap | ||
@@ -59,4 +59,14 @@ /******/ "use strict"; | ||
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadHeartShape: () => (/* binding */ loadHeartShape)\n/* harmony export */ });\n/* harmony import */ var _HeartDrawer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./HeartDrawer.js */ \"./dist/browser/HeartDrawer.js\");\n\nasync function loadHeartShape(engine, refresh = true) {\n await engine.addShape(new _HeartDrawer_js__WEBPACK_IMPORTED_MODULE_0__.HeartDrawer(), refresh);\n}\n\n//# sourceURL=webpack://@tsparticles/shape-heart/./dist/browser/index.js?"); | ||
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadHeartShape: () => (/* binding */ loadHeartShape)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _HeartDrawer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./HeartDrawer.js */ \"./dist/browser/HeartDrawer.js\");\n\n\nasync function loadHeartShape(engine, refresh = true) {\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.assertValidVersion)(engine, \"3.7.0\");\n await engine.addShape(new _HeartDrawer_js__WEBPACK_IMPORTED_MODULE_1__.HeartDrawer(), refresh);\n}\n\n//# sourceURL=webpack://@tsparticles/shape-heart/./dist/browser/index.js?"); | ||
/***/ }), | ||
/***/ "@tsparticles/engine": | ||
/*!*********************************************************************************************************************************!*\ | ||
!*** external {"commonjs":"@tsparticles/engine","commonjs2":"@tsparticles/engine","amd":"@tsparticles/engine","root":"window"} ***! | ||
\*********************************************************************************************************************************/ | ||
/***/ ((module) => { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_engine__; | ||
/***/ }) | ||
@@ -91,2 +101,14 @@ | ||
/************************************************************************/ | ||
/******/ /* webpack/runtime/compat get default export */ | ||
/******/ (() => { | ||
/******/ // getDefaultExport function for compatibility with non-harmony modules | ||
/******/ __webpack_require__.n = (module) => { | ||
/******/ var getter = module && module.__esModule ? | ||
/******/ () => (module['default']) : | ||
/******/ () => (module); | ||
/******/ __webpack_require__.d(getter, { a: getter }); | ||
/******/ return getter; | ||
/******/ }; | ||
/******/ })(); | ||
/******/ | ||
/******/ /* webpack/runtime/define property getters */ | ||
@@ -93,0 +115,0 @@ /******/ (() => { |
/*! For license information please see tsparticles.shape.heart.min.js.LICENSE.txt */ | ||
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var t=o();for(var r in t)("object"==typeof exports?exports:e)[r]=t[r]}}(this,(()=>(()=>{var e={d:(o,t)=>{for(var r in t)e.o(t,r)&&!e.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:t[r]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};e.r(o),e.d(o,{loadHeartShape:()=>r});class t{constructor(){this.validTypes=["heart"]}draw(e){!function(e){const{context:o,radius:t}=e,r=2*t,a=.5*t,i=t+a,n=-t,d=-t;o.moveTo(n,d+a),o.quadraticCurveTo(n,d,n+a,d),o.quadraticCurveTo(n+t,d,n+t,d+a),o.quadraticCurveTo(n+t,d,n+i,d),o.quadraticCurveTo(n+r,d,n+r,d+a),o.quadraticCurveTo(n+r,d+t,n+i,d+i),o.lineTo(n+t,d+r),o.lineTo(n+a,d+i),o.quadraticCurveTo(n,d+t,n,d+a)}(e)}}async function r(e,o=!0){await e.addShape(new t,o)}return o})())); | ||
!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("@tsparticles/engine"));else if("function"==typeof define&&define.amd)define(["@tsparticles/engine"],r);else{var t="object"==typeof exports?r(require("@tsparticles/engine")):r(e.window);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(this,(e=>(()=>{var r={303:r=>{r.exports=e}},t={};function o(e){var a=t[e];if(void 0!==a)return a.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};o.r(a),o.d(a,{loadHeartShape:()=>s});var i=o(303);class n{constructor(){this.validTypes=["heart"]}draw(e){!function(e){const{context:r,radius:t}=e,o=2*t,a=.5*t,i=t+a,n=-t,s=-t;r.moveTo(n,s+a),r.quadraticCurveTo(n,s,n+a,s),r.quadraticCurveTo(n+t,s,n+t,s+a),r.quadraticCurveTo(n+t,s,n+i,s),r.quadraticCurveTo(n+o,s,n+o,s+a),r.quadraticCurveTo(n+o,s+t,n+i,s+i),r.lineTo(n+t,s+o),r.lineTo(n+a,s+i),r.quadraticCurveTo(n,s+t,n,s+a)}(e)}}async function s(e,r=!0){(0,i.assertValidVersion)(e,"3.7.0"),await e.addShape(new n,r)}return a})())); |
@@ -1,1 +0,1 @@ | ||
/*! tsParticles Heart Shape v3.6.0 by Matteo Bruni */ | ||
/*! tsParticles Heart Shape v3.7.0 by Matteo Bruni */ |
@@ -1,2 +0,2 @@ | ||
import type { Engine } from "@tsparticles/engine"; | ||
import { type Engine } from "@tsparticles/engine"; | ||
export declare function loadHeartShape(engine: Engine, refresh?: boolean): Promise<void>; |
@@ -7,3 +7,3 @@ (function (factory) { | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "./HeartDrawer.js"], factory); | ||
define(["require", "exports", "@tsparticles/engine", "./HeartDrawer.js"], factory); | ||
} | ||
@@ -14,6 +14,8 @@ })(function (require, exports) { | ||
exports.loadHeartShape = loadHeartShape; | ||
const engine_1 = require("@tsparticles/engine"); | ||
const HeartDrawer_js_1 = require("./HeartDrawer.js"); | ||
async function loadHeartShape(engine, refresh = true) { | ||
(0, engine_1.assertValidVersion)(engine, "3.7.0"); | ||
await engine.addShape(new HeartDrawer_js_1.HeartDrawer(), refresh); | ||
} | ||
}); |
Sorry, the diff of this file is not supported yet
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
297741
314
1
1
3
+ Added@tsparticles/engine@3.7.0(transitive)
- Removed@tsparticles/engine@3.7.1(transitive)
Updated@tsparticles/engine@3.7.0