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

@thetimes/methode-parser

Package Overview
Dependencies
Maintainers
3
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thetimes/methode-parser - npm Package Compare versions

Comparing version 7.0.6 to 7.0.7

10

lib/author-to-byline.js

@@ -15,2 +15,7 @@ "use strict";

});
const substringStartPosition = (text, substring) => {
const regex = text.toLowerCase().match(new RegExp(`\\b${substring.toLowerCase()}\\b`));
const start = regex ? regex.index : -1;
return start;
};
exports.authorToBylineFactory = (authors) => (byline) => {

@@ -23,4 +28,5 @@ const cleanByline = byline.replace(/\s+/g, " ");

.map(({ slug, name }) => {
const startPosition = substringStartPosition(cleanByline, name);
return {
start: cleanByline.toLowerCase().indexOf(name.toLowerCase()),
start: startPosition,
length: name.length,

@@ -64,2 +70,2 @@ slug

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aG9yLXRvLWJ5bGluZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9hdXRob3ItdG8tYnlsaW5lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBRUEsTUFBTSxpQkFBaUIsR0FBRyxDQUFDLElBQVksRUFBVSxFQUFFLENBQUMsQ0FBQztJQUNuRCxJQUFJLEVBQUUsUUFBUTtJQUNkLFFBQVEsRUFBRTtRQUNSO1lBQ0UsSUFBSSxFQUFFLE1BQU07WUFDWixVQUFVLEVBQUU7Z0JBQ1YsS0FBSyxFQUFFLElBQUk7YUFDWjtZQUNELFFBQVEsRUFBRSxFQUFFO1NBQ2I7S0FDRjtDQUNGLENBQUMsQ0FBQztBQU9VLFFBQUEscUJBQXFCLEdBQUcsQ0FBQyxPQUFpQyxFQUFFLEVBQUUsQ0FBQyxDQUMxRSxNQUFjLEVBQ04sRUFBRTtJQUNWLE1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QUcsU0FBUyxDQUFDLE1BQU0sRUFBRTtZQUNsRSxHQUFHLENBQUMsSUFBSSxDQUNOLGlCQUFpQixDQUNmLFdBQVcsQ0FBQyxNQUFNLENBQUMsU0FBUyxDQUFDLEtBQUssR0FBRyxTQUFTLENBQUMsTUFBTSxDQUFDLENBQ3ZELENBQ0YsQ0FBQztTQUNIO0lBQ0gsQ0FBQyxDQUFDLENBQUM7SUFFSCxPQUFPLEdBQUcsQ0FBQztBQUNiLENBQUMsQ0FBQyJ9

4

package.json
{
"name": "@thetimes/methode-parser",
"version": "7.0.6",
"version": "7.0.7",
"main": "lib/index.js",

@@ -69,2 +69,2 @@ "typings": "lib/types/index.d.ts",

}
}
}
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