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

add-to-calendar-button

Package Overview
Dependencies
Maintainers
1
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

add-to-calendar-button - npm Package Compare versions

Comparing version 1.6.2 to 1.6.3

.gitattributes

26

Gruntfile.js

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

const npmDelimiter = /\/\/ START INIT[\s\S]*?\/\/ END INIT/gm
function process(content, exportPhrase) {
return content.replace(npmDelimiter, `${exportPhrase} { atcb_init };`);
}
module.exports = function(grunt) {

@@ -8,11 +13,12 @@

},
copy: {
npm_dist: { // creates the source file for the npm version
src: 'assets/js/atcb.js',
dest: 'npm_dist/atcb_npm.js',
options: {
process: function (content) {
return content.replace(/\/\/ START INIT[\s\S]*?\/\/ END INIT/g,"export { atcb_init };");
}
}
copy: { // creates the source files for the npm versionm supporting CommonJS and ES Module (https://www.sensedeep.com/blog/posts/2021/how-to-create-single-source-npm-module.html)
mjs_dist: {
src: 'assets/js/atcb.js',
dest: 'npm_dist/mjs/index.js',
options: { process: content => process(content, "export") }
},
cjs_dist: {
src: 'assets/js/atcb.js',
dest: 'npm_dist/cjs/index.js',
options: { process: content => process(content, "module.exports =") }
}

@@ -32,3 +38,3 @@ },

},
cssmin: {
cssmin: { // minifies the main css file
options: {

@@ -35,0 +41,0 @@ sourceMap: true

{
"name": "add-to-calendar-button",
"version": "1.6.2",
"version": "1.6.3",
"description": "A convenient JavaScript snippet, which lets you create beautiful buttons, where people can add events to their calendars.",
"main": "npm_dist/atcb_npm.js",
"main": "npm_dist/cjs/index.js",
"module": "npm_dist/mjs/index.js",
"exports": {
".": {
"import": "./npm_dist/mjs/index.js",
"require": "./npm_dist/cjs/index.js"
}
},
"types": "index.d.ts",

@@ -46,3 +53,3 @@ "style": "assets/css/atcb.css",

},
"dependencies": {
"devDependencies": {
"grunt": "^1.4.1",

@@ -49,0 +56,0 @@ "grunt-contrib-clean": "^2.0.0",

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