New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

umi-plugin-segment

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

umi-plugin-segment - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

6

examples/base/config/config.js
export default {
plugins: [
[
"../../index.js",
'../../index.js',
{
code: "123",
judge: () => process.env.NODE_ENV !== "production"
key: '123',
judge: () => process.env.NODE_ENV !== 'production'
}

@@ -9,0 +9,0 @@ ]

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

exports.default = function (api, opts) {
if (process.env.NODE_ENV !== "production") {
return false;
}
if (opts.judge && !opts.judge()) {

@@ -13,0 +10,0 @@ return false;

{
"name": "umi-plugin-segment",
"version": "1.0.4",
"version": "1.0.5",
"description": "Segment for umi",

@@ -5,0 +5,0 @@ "main": "index.js",

export default (api, opts) => {
if (process.env.NODE_ENV !== "production") {
return false;
}
if (opts.judge && !opts.judge()) {

@@ -6,0 +3,0 @@ return false;

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