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

@adobe/helix-shared-indexer

Package Overview
Dependencies
Maintainers
21
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adobe/helix-shared-indexer - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

7

CHANGELOG.md

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

# [@adobe/helix-shared-indexer-v1.0.4](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-indexer-v1.0.3...@adobe/helix-shared-indexer-v1.0.4) (2022-10-13)
### Bug Fixes
* **deps:** update dependency @adobe/fetch to v3.2.0 ([#721](https://github.com/adobe/helix-shared/issues/721)) ([12ea8bc](https://github.com/adobe/helix-shared/commit/12ea8bc07f90deb2888d9ce68663eb9394494408))
# [@adobe/helix-shared-indexer-v1.0.3](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-indexer-v1.0.2...@adobe/helix-shared-indexer-v1.0.3) (2022-09-23)

@@ -2,0 +9,0 @@

6

package.json
{
"name": "@adobe/helix-shared-indexer",
"version": "1.0.3",
"version": "1.0.4",
"description": "Shared modules of the Helix Project - Indexer",

@@ -31,2 +31,3 @@ "main": "src/index.js",

"dependencies": {
"dayjs": "1.11.5",
"hast-util-select": "5.0.2",

@@ -37,3 +38,2 @@ "hast-util-to-html": "8.0.3",

"micromatch": "4.0.5",
"moment": "2.29.4",
"rehype-parse": "8.0.4",

@@ -43,3 +43,3 @@ "unified": "10.1.2"

"devDependencies": {
"@adobe/fetch": "3.1.4",
"@adobe/fetch": "3.2.0",
"@adobe/helix-shared-config": "^9.1.0",

@@ -46,0 +46,0 @@ "c8": "7.12.0"

@@ -12,3 +12,5 @@ /*

*/
import moment from 'moment';
import dayjs from 'dayjs';
import utc from 'dayjs/plugin/utc.js';
import customParseFormat from 'dayjs/plugin/customParseFormat.js';
import jsep from 'jsep';

@@ -35,2 +37,5 @@ import rehypeParse from 'rehype-parse';

parseTimestamp: (elements, format) => {
dayjs.extend(customParseFormat);
dayjs.extend(utc);
if (!elements) {

@@ -45,3 +50,5 @@ return [];

const content = typeof el === 'string' ? el : toText(el);
const millis = moment.utc(content, format).valueOf();
const millis = Number.isNaN(dayjs.utc(content, format).valueOf())
? dayjs.utc(content).valueOf() // fall back to ISO format
: dayjs.utc(content, format).valueOf();
return millis / 1000;

@@ -154,3 +161,3 @@ });

.parse(body);
const record = { };
const record = {};

@@ -157,0 +164,0 @@ /* Walk through all index properties */

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