Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@import-meta-env/unplugin

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@import-meta-env/unplugin - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

dist/unplugin/src/webpack/import-meta-env-plugin.d.ts

13

dist/index.js

@@ -24,2 +24,6 @@ "use strict";

var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,

@@ -89,3 +93,3 @@ mod

// package.json
var version = "0.4.1";
var version = "0.4.2";

@@ -207,4 +211,4 @@ // ../shared/constant.ts

// src/webpack/import-meta-plugin.ts
var ImportMetaPlugin = class {
// src/webpack/import-meta-env-plugin.ts
var ImportMetaEnvPlugin = class {
apply(compiler) {

@@ -1104,2 +1108,3 @@ const { dependencies } = require("webpack");

}
// TODO deprecate this? not really very useful
snip(start, end) {

@@ -1493,3 +1498,3 @@ const clone = this.clone();

webpack: (compiler) => {
compiler.options.plugins.push(new ImportMetaPlugin());
compiler.options.plugins.push(new ImportMetaEnvPlugin());
const developmentModes = [

@@ -1496,0 +1501,0 @@ "development",

import { PluginOptions } from "./types";
declare const createPlugin: import("unplugin").UnpluginInstance<PluginOptions, false>;
declare const createPlugin: import("unplugin").UnpluginInstance<PluginOptions, boolean>;
export = createPlugin;
{
"name": "@import-meta-env/unplugin",
"version": "0.4.1",
"version": "0.4.2",
"description": "Build once, deploy anywhere. Startup/runtime environment variable solution for JavaScript.",

@@ -42,8 +42,8 @@ "license": "MIT",

"devDependencies": {
"@types/node": "18.11.13",
"@types/object-hash": "3.0.1",
"rollup": "3.7.2",
"@types/node": "18.11.18",
"@types/object-hash": "3.0.2",
"rollup": "3.10.1",
"ts-node": "10.9.1",
"typescript": "4.9.4",
"vite": "4.0.0",
"vite": "4.0.4",
"webpack": "5.75.0"

@@ -64,4 +64,4 @@ },

"picocolors": "^1.0.0",
"unplugin": "1.0.0"
"unplugin": "1.0.1"
}
}
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