New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tsparticles/plugin-rgb-color

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsparticles/plugin-rgb-color - npm Package Compare versions

Comparing version 3.7.1 to 3.8.0

3

browser/index.js

@@ -1,6 +0,5 @@

import { assertValidVersion } from "@tsparticles/engine";
import { RgbColorManager } from "./RgbColorManager.js";
export async function loadRgbColorPlugin(engine, refresh = true) {
assertValidVersion(engine, "3.7.1");
engine.checkVersion("3.8.0");
await engine.addColorManager(new RgbColorManager(), refresh);
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadRgbColorPlugin = loadRgbColorPlugin;
const engine_1 = require("@tsparticles/engine");
const RgbColorManager_js_1 = require("./RgbColorManager.js");
async function loadRgbColorPlugin(engine, refresh = true) {
(0, engine_1.assertValidVersion)(engine, "3.7.1");
engine.checkVersion("3.8.0");
await engine.addColorManager(new RgbColorManager_js_1.RgbColorManager(), refresh);
}

@@ -1,6 +0,5 @@

import { assertValidVersion } from "@tsparticles/engine";
import { RgbColorManager } from "./RgbColorManager.js";
export async function loadRgbColorPlugin(engine, refresh = true) {
assertValidVersion(engine, "3.7.1");
engine.checkVersion("3.8.0");
await engine.addColorManager(new RgbColorManager(), refresh);
}
{
"name": "@tsparticles/plugin-rgb-color",
"version": "3.7.1",
"version": "3.8.0",
"description": "tsParticles RGB color plugin",

@@ -103,3 +103,3 @@ "homepage": "https://particles.js.org",

"dependencies": {
"@tsparticles/engine": "3.7.1"
"@tsparticles/engine": "3.8.0"
},

@@ -106,0 +106,0 @@ "publishConfig": {

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.7.1
* v3.8.0
*/

@@ -48,3 +48,3 @@ /*

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadRgbColorPlugin: () => (/* binding */ loadRgbColorPlugin)\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 _RgbColorManager_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./RgbColorManager.js */ \"./dist/browser/RgbColorManager.js\");\n\n\nasync function loadRgbColorPlugin(engine, refresh = true) {\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.assertValidVersion)(engine, \"3.7.1\");\n await engine.addColorManager(new _RgbColorManager_js__WEBPACK_IMPORTED_MODULE_1__.RgbColorManager(), refresh);\n}\n\n//# sourceURL=webpack://@tsparticles/plugin-rgb-color/./dist/browser/index.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadRgbColorPlugin: () => (/* binding */ loadRgbColorPlugin)\n/* harmony export */ });\n/* harmony import */ var _RgbColorManager_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RgbColorManager.js */ \"./dist/browser/RgbColorManager.js\");\n\nasync function loadRgbColorPlugin(engine, refresh = true) {\n engine.checkVersion(\"3.8.0\");\n await engine.addColorManager(new _RgbColorManager_js__WEBPACK_IMPORTED_MODULE_0__.RgbColorManager(), refresh);\n}\n\n//# sourceURL=webpack://@tsparticles/plugin-rgb-color/./dist/browser/index.js?");

@@ -51,0 +51,0 @@ /***/ }),

/*! For license information please see tsparticles.plugin.rgbColor.min.js.LICENSE.txt */
!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 n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.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 n={};o.r(n),o.d(n,{loadRgbColorPlugin:()=>l});var a,s=o(303);!function(e){e[e.r=1]="r",e[e.g=2]="g",e[e.b=3]="b",e[e.a=5]="a"}(a||(a={}));class i{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(e){const r=e.value.rgb??e.value;if(void 0!==r.r)return r}handleRangeColor(e){const r=e.value.rgb??e.value;if(void 0!==r.r)return{r:(0,s.getRangeValue)(r.r),g:(0,s.getRangeValue)(r.g),b:(0,s.getRangeValue)(r.b)}}parseString(e){if(!e.startsWith(this.stringPrefix))return;const r=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i.exec(e);return r?{a:r.length>4?(0,s.parseAlpha)(r[a.a]):1,b:parseInt(r[a.b],10),g:parseInt(r[a.g],10),r:parseInt(r[a.r],10)}:void 0}}async function l(e,r=!0){(0,s.assertValidVersion)(e,"3.7.1"),await e.addColorManager(new i,r)}return n})()));
!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 n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.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 n={};o.r(n),o.d(n,{loadRgbColorPlugin:()=>l});var a,s=o(303);!function(e){e[e.r=1]="r",e[e.g=2]="g",e[e.b=3]="b",e[e.a=5]="a"}(a||(a={}));class i{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(e){const r=e.value.rgb??e.value;if(void 0!==r.r)return r}handleRangeColor(e){const r=e.value.rgb??e.value;if(void 0!==r.r)return{r:(0,s.getRangeValue)(r.r),g:(0,s.getRangeValue)(r.g),b:(0,s.getRangeValue)(r.b)}}parseString(e){if(!e.startsWith(this.stringPrefix))return;const r=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i.exec(e);return r?{a:r.length>4?(0,s.parseAlpha)(r[a.a]):1,b:parseInt(r[a.b],10),g:parseInt(r[a.g],10),r:parseInt(r[a.r],10)}:void 0}}async function l(e,r=!0){e.checkVersion("3.8.0"),await e.addColorManager(new i,r)}return n})()));

@@ -1,1 +0,1 @@

/*! tsParticles RGB Color Plugin v3.7.1 by Matteo Bruni */
/*! tsParticles RGB Color Plugin v3.8.0 by Matteo Bruni */

@@ -7,3 +7,3 @@ (function (factory) {

else if (typeof define === "function" && define.amd) {
define(["require", "exports", "@tsparticles/engine", "./RgbColorManager.js"], factory);
define(["require", "exports", "./RgbColorManager.js"], factory);
}

@@ -14,8 +14,7 @@ })(function (require, exports) {

exports.loadRgbColorPlugin = loadRgbColorPlugin;
const engine_1 = require("@tsparticles/engine");
const RgbColorManager_js_1 = require("./RgbColorManager.js");
async function loadRgbColorPlugin(engine, refresh = true) {
(0, engine_1.assertValidVersion)(engine, "3.7.1");
engine.checkVersion("3.8.0");
await engine.addColorManager(new RgbColorManager_js_1.RgbColorManager(), refresh);
}
});

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc