unplugin-version-injector 2.1.0 → 2.1.1-beta.1

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/dist/rollup.js CHANGED
@@ -47,11 +47,9 @@ function createVersionInjector(options = {}) {
47
47
  var border = 'border-radius: 4px; padding: 4px; font-size: 12px;';
48
48
  var styles = {
49
49
  version: \`background: \${bg}; color: #00c853; \${border}\`,
50
- name: \`background: \${bg}; color: #1e88e5; \${border}\`,
51
50
  time: \`background: \${bg}; color: #ffab00; \${border}\`,
52
51
  };
53
- console.log("%c Version: ${version} ", styles.version);
54
- console.log("%c Project: ${name} ", styles.name);
52
+ console.log("%c ${name}@${version} ", styles.version);
55
53
  console.log("%c Build Time: ${buildTime} ", styles.time);
56
54
  })();
57
55
  </script>`;
package/dist/rollup.mjs CHANGED
@@ -40,11 +40,9 @@ function createVersionInjector(options = {}) {
40
40
  var border = 'border-radius: 4px; padding: 4px; font-size: 12px;';
41
41
  var styles = {
42
42
  version: \`background: \${bg}; color: #00c853; \${border}\`,
43
- name: \`background: \${bg}; color: #1e88e5; \${border}\`,
44
43
  time: \`background: \${bg}; color: #ffab00; \${border}\`,
45
44
  };
46
- console.log("%c Version: ${version} ", styles.version);
47
- console.log("%c Project: ${name} ", styles.name);
45
+ console.log("%c ${name}@${version} ", styles.version);
48
46
  console.log("%c Build Time: ${buildTime} ", styles.time);
49
47
  })();
50
48
  </script>`;
package/dist/vite.js CHANGED
@@ -47,11 +47,9 @@ function createVersionInjector(options = {}) {
47
47
  var border = 'border-radius: 4px; padding: 4px; font-size: 12px;';
48
48
  var styles = {
49
49
  version: \`background: \${bg}; color: #00c853; \${border}\`,
50
- name: \`background: \${bg}; color: #1e88e5; \${border}\`,
51
50
  time: \`background: \${bg}; color: #ffab00; \${border}\`,
52
51
  };
53
- console.log("%c Version: ${version} ", styles.version);
54
- console.log("%c Project: ${name} ", styles.name);
52
+ console.log("%c ${name}@${version} ", styles.version);
55
53
  console.log("%c Build Time: ${buildTime} ", styles.time);
56
54
  })();
57
55
  </script>`;
package/dist/vite.mjs CHANGED
@@ -40,11 +40,9 @@ function createVersionInjector(options = {}) {
40
40
  var border = 'border-radius: 4px; padding: 4px; font-size: 12px;';
41
41
  var styles = {
42
42
  version: \`background: \${bg}; color: #00c853; \${border}\`,
43
- name: \`background: \${bg}; color: #1e88e5; \${border}\`,
44
43
  time: \`background: \${bg}; color: #ffab00; \${border}\`,
45
44
  };
46
- console.log("%c Version: ${version} ", styles.version);
47
- console.log("%c Project: ${name} ", styles.name);
45
+ console.log("%c ${name}@${version} ", styles.version);
48
46
  console.log("%c Build Time: ${buildTime} ", styles.time);
49
47
  })();
50
48
  </script>`;
package/dist/webpack.js CHANGED
@@ -2724,11 +2724,9 @@ function createVersionInjector(options = {}) {
2724
2724
  var border = 'border-radius: 4px; padding: 4px; font-size: 12px;';
2725
2725
  var styles = {
2726
2726
  version: \`background: \${bg}; color: #00c853; \${border}\`,
2727
- name: \`background: \${bg}; color: #1e88e5; \${border}\`,
2728
2727
  time: \`background: \${bg}; color: #ffab00; \${border}\`,
2729
2728
  };
2730
- console.log("%c Version: ${version} ", styles.version);
2731
- console.log("%c Project: ${name} ", styles.name);
2729
+ console.log("%c ${name}@${version} ", styles.version);
2732
2730
  console.log("%c Build Time: ${buildTime} ", styles.time);
2733
2731
  })();
2734
2732
  </script>`;
package/dist/webpack.mjs CHANGED
@@ -2717,11 +2717,9 @@ function createVersionInjector(options = {}) {
2717
2717
  var border = 'border-radius: 4px; padding: 4px; font-size: 12px;';
2718
2718
  var styles = {
2719
2719
  version: \`background: \${bg}; color: #00c853; \${border}\`,
2720
- name: \`background: \${bg}; color: #1e88e5; \${border}\`,
2721
2720
  time: \`background: \${bg}; color: #ffab00; \${border}\`,
2722
2721
  };
2723
- console.log("%c Version: ${version} ", styles.version);
2724
- console.log("%c Project: ${name} ", styles.name);
2722
+ console.log("%c ${name}@${version} ", styles.version);
2725
2723
  console.log("%c Build Time: ${buildTime} ", styles.time);
2726
2724
  })();
2727
2725
  </script>`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unplugin-version-injector",
3
- "version": "2.1.0",
3
+ "version": "2.1.1-beta.1",
4
4
  "author": "Nian Yi <nianyi778@gmail.com>",
5
5
  "license": "MIT",
6
6
  "description": "A universal plugin to inject version and build time into HTML (supports Webpack, Vite, Rollup)",
@@ -48,10 +48,10 @@
48
48
  "prepublishOnly": "npm run build"
49
49
  },
50
50
  "dependencies": {
51
- "@types/node": "^22.14.1",
52
- "tsup": "^8.4.0"
53
51
  },
54
52
  "devDependencies": {
53
+ "@types/node": "^22.14.1",
54
+ "tsup": "^8.4.0",
55
55
  "rollup": "^3",
56
56
  "typescript": "^4.9.5",
57
57
  "vite": "^4",