Socket
Socket
Sign inDemoInstall

@linaria/shaker

Package Overview
Dependencies
192
Maintainers
4
Versions
49
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.0 to 5.0.1

13

esm/plugins/__tests__/shaker-plugin.test.js

@@ -425,3 +425,16 @@ import { join } from 'path';

});
it('should not remove referenced export', () => {
const {
code,
metadata
} = keep(['__linariaPreval'])`
export default class Media {
}
const _c = Media;
export const __linariaPreval = {};
`;
expect(code).toMatchSnapshot();
expect(metadata.imports.size).toBe(0);
});
});
//# sourceMappingURL=shaker-plugin.test.js.map

3

esm/plugins/shaker-plugin.js

@@ -21,2 +21,5 @@ import { createCustomDebug } from '@linaria/logger';

}
if (exportPath.isFunctionDeclaration() || exportPath.isClassDeclaration()) {
return exportPath.scope.getBinding(exportPath.node.id.name);
}
return undefined;

@@ -23,0 +26,0 @@ }

@@ -428,3 +428,16 @@ "use strict";

});
it('should not remove referenced export', () => {
const {
code,
metadata
} = keep(['__linariaPreval'])`
export default class Media {
}
const _c = Media;
export const __linariaPreval = {};
`;
expect(code).toMatchSnapshot();
expect(metadata.imports.size).toBe(0);
});
});
//# sourceMappingURL=shaker-plugin.test.js.map

@@ -28,2 +28,5 @@ "use strict";

}
if (exportPath.isFunctionDeclaration() || exportPath.isClassDeclaration()) {
return exportPath.scope.getBinding(exportPath.node.id.name);
}
return undefined;

@@ -30,0 +33,0 @@ }

4

package.json
{
"name": "@linaria/shaker",
"version": "5.0.0",
"version": "5.0.1",
"description": "Blazing fast zero-runtime CSS in JS library",

@@ -36,3 +36,3 @@ "keywords": [

"@linaria/logger": "^5.0.0",
"@linaria/utils": "^5.0.0"
"@linaria/utils": "^5.0.1"
},

@@ -39,0 +39,0 @@ "devDependencies": {

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc