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

@rsdoctor/utils

Package Overview
Dependencies
Maintainers
0
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rsdoctor/utils - npm Package Compare versions

Comparing version 0.0.0-next-20240926075553 to 0.0.0-next-20241128120210

5

dist/cjs/common/data/index.js

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

});
case import_types.SDK.ServerAPI.API.GetLayers:
return this.loader.loadData("moduleGraph").then((res) => {
const { layers } = res || {};
return layers;
});
case import_types.SDK.ServerAPI.API.GetLoaderChartData:

@@ -81,0 +86,0 @@ return this.loader.loadData("loader").then((res) => {

9

dist/cjs/common/graph/assets.js

@@ -23,2 +23,3 @@ "use strict";

diffSize: () => diffSize,
extname: () => extname,
filterAssets: () => filterAssets,

@@ -62,3 +63,3 @@ filterAssetsByExtensions: () => filterAssetsByExtensions,

function isAssetMatchExtension(asset, ext) {
return asset.path.slice(-ext.length) === ext;
return asset.path.slice(-ext.length) === ext || extname(asset.path) === ext;
}

@@ -309,2 +310,7 @@ function isAssetMatchExtensions(asset, exts) {

}
function extname(filename) {
const baseName = filename.split("?")[0];
const matches = baseName.match(/\.([0-9a-z]+)(?:[\?#]|$)/i);
return matches ? `.${matches[1]}` : "";
}
// Annotate the CommonJS export names for ESM import in node:

@@ -314,2 +320,3 @@ 0 && (module.exports = {

diffSize,
extname,
filterAssets,

@@ -316,0 +323,0 @@ filterAssetsByExtensions,

@@ -127,2 +127,3 @@ "use strict";

res.push({
layer: item.resource.layer,
loader: el.loader,

@@ -147,4 +148,6 @@ isPitch: el.isPitch,

path: resource.path,
layer: resource.layer,
loaders: arr.map((l) => {
return {
key: l.path,
loader: l.loader,

@@ -151,0 +154,0 @@ path: l.path,

@@ -46,2 +46,7 @@ import { Rule, SDK, Constants } from "@rsdoctor/types";

});
case SDK.ServerAPI.API.GetLayers:
return this.loader.loadData("moduleGraph").then((res) => {
const { layers } = res || {};
return layers;
});
case SDK.ServerAPI.API.GetLoaderChartData:

@@ -48,0 +53,0 @@ return this.loader.loadData("loader").then((res) => {

@@ -26,3 +26,3 @@ import { Client, Constants } from "@rsdoctor/types";

function isAssetMatchExtension(asset, ext) {
return asset.path.slice(-ext.length) === ext;
return asset.path.slice(-ext.length) === ext || extname(asset.path) === ext;
}

@@ -273,5 +273,11 @@ function isAssetMatchExtensions(asset, exts) {

}
function extname(filename) {
const baseName = filename.split("?")[0];
const matches = baseName.match(/\.([0-9a-z]+)(?:[\?#]|$)/i);
return matches ? `.${matches[1]}` : "";
}
export {
diffAssetsByExtensions,
diffSize,
extname,
filterAssets,

@@ -278,0 +284,0 @@ filterAssetsByExtensions,

@@ -92,2 +92,3 @@ import { mergeIntervals } from "./algorithm";

res.push({
layer: item.resource.layer,
loader: el.loader,

@@ -112,4 +113,6 @@ isPitch: el.isPitch,

path: resource.path,
layer: resource.layer,
loaders: arr.map((l) => {
return {
key: l.path,
loader: l.loader,

@@ -116,0 +119,0 @@ path: l.path,

2

dist/type/common/data/index.d.ts
import { SDK, Manifest } from '@rsdoctor/types';
/**
* this class will run at both brower and node environment.
* this class will run at both browser and node environment.
*/

@@ -5,0 +5,0 @@ export declare class APIDataLoader {

@@ -52,3 +52,4 @@ import { Client, SDK } from '@rsdoctor/types';

export declare function getAssetDetails(assetPath: string, assets: SDK.AssetData[], chunks: SDK.ChunkData[], modules: SDK.ModuleData[]): SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.GetAssetDetails>;
export declare function extname(filename: string): string;
export {};
//# sourceMappingURL=assets.d.ts.map
{
"name": "@rsdoctor/utils",
"version": "0.0.0-next-20240926075553",
"version": "0.0.0-next-20241128120210",
"repository": {

@@ -70,3 +70,3 @@ "type": "git",

"dependencies": {
"@babel/code-frame": "7.24.7",
"@babel/code-frame": "7.25.7",
"@types/estree": "1.0.5",

@@ -88,3 +88,3 @@ "acorn": "^8.10.0",

"strip-ansi": "^6.0.1",
"@rsdoctor/types": "0.0.0-next-20240926075553"
"@rsdoctor/types": "0.0.0-next-20241128120210"
},

@@ -97,3 +97,3 @@ "devDependencies": {

"@types/fs-extra": "^11.0.4",
"@types/lodash": "^4.17.9",
"@types/lodash": "^4.17.13",
"@types/node": "^16",

@@ -100,0 +100,0 @@ "tslib": "2.7.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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