Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@janarendvw/spotlight

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@janarendvw/spotlight - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

src/index.ts

6

CHANGELOG.md
# @janaredvw/spotlight
## 2.1.0
### Minor Changes
- 0ddab9d: Added basic Spotlight class for later integration
## 2.0.1

@@ -4,0 +10,0 @@

36

dist/index.js
"use strict";
// index.ts
console.log("Hello World");
// src/spotlight.ts
var Spotlight = class {
constructor() {
this.spotlightArray = [];
this.spotlightBox = null;
this.spotlightDescription = null;
this.createSpotlightBox();
this.createSpotlightDescription();
this.gatherSpotlights();
}
createSpotlightBox() {
this.spotlightBox = document.createElement("div");
this.spotlightBox.classList.add("spotlight-box");
document.body.appendChild(this.spotlightBox);
}
createSpotlightDescription() {
var _a;
this.spotlightDescription = document.createElement("div");
this.spotlightDescription.classList.add("spotlight-description");
(_a = this.spotlightBox) == null ? void 0 : _a.appendChild(this.spotlightDescription);
}
gatherSpotlights() {
this.spotlightArray = Array.from(
document.querySelectorAll("[data-spotlight]")
);
}
static start() {
}
};
// src/index.ts
module.exports = {
Spotlight
};

5

package.json
{
"name": "@janarendvw/spotlight",
"license": "MIT",
"version": "2.0.1",
"version": "2.1.0",
"description": "A simple spotlight effect for your web app",

@@ -35,2 +35,3 @@ "keywords": [

"@changesets/cli": "^2.27.1",
"@types/node": "^20.10.4",
"tsup": "^8.0.1",

@@ -40,3 +41,3 @@ "typescript": "^5.3.3"

"scripts": {
"build": "tsup index.ts --format cjs,esm --dts",
"build": "tsup src/index.ts --format cjs,esm --dts",
"lint": "tsc",

@@ -43,0 +44,0 @@ "release": "pnpm run lint && pnpm run build && changeset publish"

@@ -108,3 +108,6 @@ {

"skipLibCheck": true /* Skip type checking all .d.ts files. */
}
},
"include": ["src/**/*"],
}

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