Socket
Socket
Sign inDemoInstall

@hebcal/icalendar

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hebcal/icalendar - npm Package Compare versions

Comparing version 4.15.0 to 4.15.1

179

dist/index.js

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

/*! @hebcal/icalendar v4.15.0 */
/*! @hebcal/icalendar v4.15.1 */
'use strict';

@@ -7,2 +7,3 @@

var core = require('@hebcal/core');
var murmurhash3 = require('murmurhash3');
var leyn = require('@hebcal/leyning');

@@ -12,17 +13,17 @@ var fs = require('fs');

function _interopNamespace(e) {
if (e && e.__esModule) return e;
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
if (k !== 'default') {
var d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(n, k, d.get ? d : {
enumerable: true,
get: function () { return e[k]; }
});
}
});
}
n["default"] = e;
return Object.freeze(n);
if (e && e.__esModule) return e;
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
if (k !== 'default') {
var d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(n, k, d.get ? d : {
enumerable: true,
get: function () { return e[k]; }
});
}
});
}
n["default"] = e;
return Object.freeze(n);
}

@@ -32,143 +33,2 @@

var murmurhashJs = {exports: {}};
var murmurhash3_gc = {exports: {}};
/**
* JS Implementation of MurmurHash3 (r136) (as of May 20, 2011)
*
* @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
* @see http://github.com/garycourt/murmurhash-js
* @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
* @see http://sites.google.com/site/murmurhash/
*
* @param {string} key ASCII only
* @param {number} seed Positive integer only
* @return {number} 32-bit positive integer hash
*/
(function (module) {
function murmurhash3_32_gc(key, seed) {
var remainder, bytes, h1, h1b, c1, c2, k1, i;
remainder = key.length & 3; // key.length % 4
bytes = key.length - remainder;
h1 = seed;
c1 = 0xcc9e2d51;
c2 = 0x1b873593;
i = 0;
while (i < bytes) {
k1 =
((key.charCodeAt(i) & 0xff)) |
((key.charCodeAt(++i) & 0xff) << 8) |
((key.charCodeAt(++i) & 0xff) << 16) |
((key.charCodeAt(++i) & 0xff) << 24);
++i;
k1 = ((((k1 & 0xffff) * c1) + ((((k1 >>> 16) * c1) & 0xffff) << 16))) & 0xffffffff;
k1 = (k1 << 15) | (k1 >>> 17);
k1 = ((((k1 & 0xffff) * c2) + ((((k1 >>> 16) * c2) & 0xffff) << 16))) & 0xffffffff;
h1 ^= k1;
h1 = (h1 << 13) | (h1 >>> 19);
h1b = ((((h1 & 0xffff) * 5) + ((((h1 >>> 16) * 5) & 0xffff) << 16))) & 0xffffffff;
h1 = (((h1b & 0xffff) + 0x6b64) + ((((h1b >>> 16) + 0xe654) & 0xffff) << 16));
}
k1 = 0;
switch (remainder) {
case 3: k1 ^= (key.charCodeAt(i + 2) & 0xff) << 16;
case 2: k1 ^= (key.charCodeAt(i + 1) & 0xff) << 8;
case 1: k1 ^= (key.charCodeAt(i) & 0xff);
k1 = (((k1 & 0xffff) * c1) + ((((k1 >>> 16) * c1) & 0xffff) << 16)) & 0xffffffff;
k1 = (k1 << 15) | (k1 >>> 17);
k1 = (((k1 & 0xffff) * c2) + ((((k1 >>> 16) * c2) & 0xffff) << 16)) & 0xffffffff;
h1 ^= k1;
}
h1 ^= key.length;
h1 ^= h1 >>> 16;
h1 = (((h1 & 0xffff) * 0x85ebca6b) + ((((h1 >>> 16) * 0x85ebca6b) & 0xffff) << 16)) & 0xffffffff;
h1 ^= h1 >>> 13;
h1 = ((((h1 & 0xffff) * 0xc2b2ae35) + ((((h1 >>> 16) * 0xc2b2ae35) & 0xffff) << 16))) & 0xffffffff;
h1 ^= h1 >>> 16;
return h1 >>> 0;
}
{
module.exports = murmurhash3_32_gc;
}
}(murmurhash3_gc));
var murmurhash2_gc = {exports: {}};
/**
* JS Implementation of MurmurHash2
*
* @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
* @see http://github.com/garycourt/murmurhash-js
* @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
* @see http://sites.google.com/site/murmurhash/
*
* @param {string} str ASCII only
* @param {number} seed Positive integer only
* @return {number} 32-bit positive integer hash
*/
(function (module) {
function murmurhash2_32_gc(str, seed) {
var
l = str.length,
h = seed ^ l,
i = 0,
k;
while (l >= 4) {
k =
((str.charCodeAt(i) & 0xff)) |
((str.charCodeAt(++i) & 0xff) << 8) |
((str.charCodeAt(++i) & 0xff) << 16) |
((str.charCodeAt(++i) & 0xff) << 24);
k = (((k & 0xffff) * 0x5bd1e995) + ((((k >>> 16) * 0x5bd1e995) & 0xffff) << 16));
k ^= k >>> 24;
k = (((k & 0xffff) * 0x5bd1e995) + ((((k >>> 16) * 0x5bd1e995) & 0xffff) << 16));
h = (((h & 0xffff) * 0x5bd1e995) + ((((h >>> 16) * 0x5bd1e995) & 0xffff) << 16)) ^ k;
l -= 4;
++i;
}
switch (l) {
case 3: h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
case 2: h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
case 1: h ^= (str.charCodeAt(i) & 0xff);
h = (((h & 0xffff) * 0x5bd1e995) + ((((h >>> 16) * 0x5bd1e995) & 0xffff) << 16));
}
h ^= h >>> 13;
h = (((h & 0xffff) * 0x5bd1e995) + ((((h >>> 16) * 0x5bd1e995) & 0xffff) << 16));
h ^= h >>> 15;
return h >>> 0;
}
{
module.exports = murmurhash2_32_gc;
}
}(murmurhash2_gc));
var murmur3 = murmurhash3_gc.exports;
var murmur2 = murmurhash2_gc.exports;
murmurhashJs.exports = murmur3;
var murmur3_1 = murmurhashJs.exports.murmur3 = murmur3;
murmurhashJs.exports.murmur2 = murmur2;
/*! @hebcal/rest-api v3.12.0 */

@@ -460,3 +320,3 @@

var version="4.15.0";
var version="4.15.1";

@@ -607,3 +467,2 @@ const VTIMEZONE = {};

/**
* @private
* @return {string}

@@ -615,3 +474,3 @@ */

const options = this.options;
const digest = murmur3_1(this.ev.getDesc()).toString(16);
const digest = murmurhash3.murmur32HexSync(this.ev.getDesc());
let uid = `hebcal-${this.startDate}-${digest}`;

@@ -618,0 +477,0 @@

30

package.json
{
"name": "@hebcal/icalendar",
"version": "4.15.0",
"version": "4.15.1",
"author": "Michael J. Radwin (https://github.com/mjradwin)",

@@ -27,4 +27,5 @@ "keywords": [

"dependencies": {
"@hebcal/core": "^3.33.1",
"@hebcal/rest-api": "^3.12.0"
"@hebcal/core": "^3.33.2",
"@hebcal/rest-api": "^3.12.0",
"murmurhash3": "^0.5.0"
},

@@ -47,9 +48,2 @@ "scripts": {

],
"babel": {
"testOptions": {
"presets": [
"@babel/env"
]
}
},
"inherit": true,

@@ -59,6 +53,5 @@ "verbose": true

"devDependencies": {
"@ava/babel": "^2.0.0",
"@babel/core": "^7.16.10",
"@babel/core": "^7.17.3",
"@babel/preset-env": "^7.16.11",
"@babel/register": "^7.16.9",
"@babel/register": "^7.17.0",
"@rollup/plugin-babel": "^5.3.0",

@@ -68,10 +61,9 @@ "@rollup/plugin-commonjs": "^21.0.1",

"@rollup/plugin-node-resolve": "^13.1.3",
"ava": "^3.15.0",
"eslint": "^8.7.0",
"ava": "^4.0.1",
"eslint": "^8.9.0",
"eslint-config-google": "^0.14.0",
"jsdoc": "^3.6.7",
"jsdoc-to-markdown": "^7.1.0",
"murmurhash-js": "^1.0.0",
"rollup": "^2.64.0"
"jsdoc": "^3.6.10",
"jsdoc-to-markdown": "^7.1.1",
"rollup": "^2.67.2"
}
}

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