add-to-calendar-button
Advanced tools
Comparing version 1.6.2 to 1.6.3
@@ -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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
98278
0
11
1458
5
1
- Removedgrunt@^1.4.1
- Removedgrunt-contrib-clean@^2.0.0
- Removedgrunt-contrib-copy@^1.0.0
- Removedgrunt-contrib-cssmin@^4.0.0
- Removedgrunt-contrib-uglify@^5.0.1
- Removedabbrev@1.1.1(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.14.3.0(transitive)
- Removedargparse@1.0.10(transitive)
- Removedarray-each@1.0.1(transitive)
- Removedarray-slice@1.1.0(transitive)
- Removedasync@3.2.6(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbraces@3.0.3(transitive)
- Removedchalk@1.1.34.1.2(transitive)
- Removedclean-css@5.3.3(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedcolors@1.1.2(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removeddateformat@4.6.3(transitive)
- Removeddetect-file@1.0.0(transitive)
- Removedduplexer@0.1.2(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedesprima@4.0.1(transitive)
- Removedeventemitter2@0.4.14(transitive)
- Removedexit@0.1.2(transitive)
- Removedexpand-tilde@2.0.2(transitive)
- Removedextend@3.0.2(transitive)
- Removedfigures@3.2.0(transitive)
- Removedfile-sync-cmp@0.1.1(transitive)
- Removedfill-range@7.1.1(transitive)
- Removedfindup-sync@4.0.05.0.0(transitive)
- Removedfined@1.2.0(transitive)
- Removedflagged-respawn@1.0.1(transitive)
- Removedfor-in@1.0.2(transitive)
- Removedfor-own@1.0.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedgetobject@1.0.2(transitive)
- Removedglob@7.1.7(transitive)
- Removedglobal-modules@1.0.0(transitive)
- Removedglobal-prefix@1.0.2(transitive)
- Removedgrunt@1.6.1(transitive)
- Removedgrunt-cli@1.4.3(transitive)
- Removedgrunt-contrib-clean@2.0.1(transitive)
- Removedgrunt-contrib-copy@1.0.0(transitive)
- Removedgrunt-contrib-cssmin@4.0.0(transitive)
- Removedgrunt-contrib-uglify@5.2.2(transitive)
- Removedgrunt-known-options@2.0.0(transitive)
- Removedgrunt-legacy-log@3.0.0(transitive)
- Removedgrunt-legacy-log-utils@2.1.0(transitive)
- Removedgrunt-legacy-util@2.0.1(transitive)
- Removedgzip-size@5.1.1(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhomedir-polyfill@1.0.3(transitive)
- Removedhooker@0.2.3(transitive)
- Removediconv-lite@0.6.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedini@1.3.8(transitive)
- Removedinterpret@1.1.0(transitive)
- Removedis-absolute@1.0.0(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedis-extglob@2.1.1(transitive)
- Removedis-glob@4.0.3(transitive)
- Removedis-number@7.0.0(transitive)
- Removedis-plain-object@2.0.4(transitive)
- Removedis-relative@1.0.0(transitive)
- Removedis-unc-path@1.0.0(transitive)
- Removedis-windows@1.0.2(transitive)
- Removedisexe@2.0.0(transitive)
- Removedisobject@3.0.1(transitive)
- Removedjs-yaml@3.14.1(transitive)
- Removedkind-of@6.0.3(transitive)
- Removedliftup@3.0.1(transitive)
- Removedlodash@4.17.21(transitive)
- Removedmake-iterator@1.0.1(transitive)
- Removedmap-cache@0.2.2(transitive)
- Removedmaxmin@3.0.0(transitive)
- Removedmicromatch@4.0.8(transitive)
- Removedminimatch@3.0.8(transitive)
- Removednopt@3.0.64.0.3(transitive)
- Removedobject.defaults@1.1.0(transitive)
- Removedobject.map@1.0.1(transitive)
- Removedobject.pick@1.3.0(transitive)
- Removedonce@1.4.0(transitive)
- Removedos-homedir@1.0.2(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedosenv@0.1.5(transitive)
- Removedparse-filepath@1.0.2(transitive)
- Removedparse-passwd@1.0.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpath-root@0.1.1(transitive)
- Removedpath-root-regex@0.1.2(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedpify@4.0.1(transitive)
- Removedpretty-bytes@5.6.0(transitive)
- Removedrechoir@0.7.1(transitive)
- Removedresolve@1.22.8(transitive)
- Removedresolve-dir@1.0.1(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedsprintf-js@1.0.31.1.3(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedsupports-color@2.0.07.2.0(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedto-regex-range@5.0.1(transitive)
- Removeduglify-js@3.19.3(transitive)
- Removedunc-path-regex@0.1.2(transitive)
- Removedunderscore.string@3.3.6(transitive)
- Removeduri-path@1.0.0(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedv8flags@3.2.0(transitive)
- Removedwhich@1.3.12.0.2(transitive)
- Removedwrappy@1.0.2(transitive)