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

@umijs/deps

Package Overview
Dependencies
Maintainers
11
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@umijs/deps - npm Package Compare versions

Comparing version 3.5.27 to 3.5.28

2

compiled/address/address.js

@@ -1,1 +0,1 @@

module.exports=(()=>{"use strict";var r={777:(r,e,a)=>{var n=a(87);var i=a(747);var t=a(129);var f="/etc/resolv.conf";function getInterfaceName(){var r="eth";var e=n.platform();if(e==="darwin"){r="en"}else if(e==="win32"){r=null}return r}function getIfconfigCMD(){if(n.platform()==="win32"){return"ipconfig/all"}return"/sbin/ifconfig"}function address(r,e){if(typeof r==="function"){e=r;r=null}var a={ip:address.ip(r),ipv6:address.ipv6(r),mac:null};address.mac(r,function(r,n){if(n){a.mac=n}e(r,a)})}address.interface=function(r,e){var a=n.networkInterfaces();var i=!e;e=e||getInterfaceName();r=r||"IPv4";for(var t=-1;t<8;t++){var f=e+(t>=0?t:"");var s=a[f];if(s){for(var c=0;c<s.length;c++){var d=s[c];if(d.family===r){return d}}}}if(i){for(var u in a){var s=a[u];for(var t=0;t<s.length;t++){var d=s[t];if(d.family===r&&d.address!=="127.0.0.1"){return d}}}}return};address.ip=function(r){var e=address.interface("IPv4",r);return e&&e.address};address.ipv6=function(r){var e=address.interface("IPv6",r);return e&&e.address};var s=/^(\w+)\:\s+flags=/;var c=/^(\w+)\s{2,}link encap:\w+/i;var d=address.MAC_RE=/(?:ether|HWaddr)\s+((?:[a-z0-9]{2}\:){5}[a-z0-9]{2})/i;var u=address.MAC_IP_RE=/inet\s(?:addr\:)?(\d+\.\d+\.\d+\.\d+)/;function getMAC(r,e,a){var n=r.split("\n");for(var i=0;i<n.length;i++){var t=n[i].trimRight();var f=s.exec(t)||c.exec(t);if(!f){continue}var v=f[1];if(v.indexOf(e)!==0){continue}var o=null;var l=null;var p=d.exec(t);if(p){l=p[1]}i++;while(true){t=n[i];if(!t||s.exec(t)||c.exec(t)){i--;break}if(!l){p=d.exec(t);if(p){l=p[1]}}if(!o){p=u.exec(t);if(p){o=p[1]}}i++}if(o===a){return l}}}address.mac=function(r,e){if(typeof r==="function"){e=r;r=null}r=r||getInterfaceName();var a=address.interface("IPv4",r);if(!a){return e()}if(!process.env.CI&&(a.mac==="ff:00:00:00:00:00"||a.mac==="00:00:00:00:00:00")){a.mac=""}if(a.mac){return e(null,a.mac)}t.exec(getIfconfigCMD(),{timeout:5e3},function(n,i,t){if(n||!i){return e(n)}var f=getMAC(i||"",r,a.address);e(null,f)})};var v=/^nameserver\s+(\d+\.\d+\.\d+\.\d+)$/i;address.dns=function(r,e){if(typeof r==="function"){e=r;r=null}r=r||f;i.readFile(r,"utf8",function(r,a){if(r){return e(r)}var n=[];a=a||"";var i=a.split("\n");for(var t=0;t<i.length;t++){var f=i[t].trim();var s=v.exec(f);if(s){n.push(s[1])}}e(null,n)})};r.exports=address},129:r=>{r.exports=require("child_process")},747:r=>{r.exports=require("fs")},87:r=>{r.exports=require("os")}};var e={};function __nccwpck_require__(a){if(e[a]){return e[a].exports}var n=e[a]={exports:{}};var i=true;try{r[a](n,n.exports,__nccwpck_require__);i=false}finally{if(i)delete e[a]}return n.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(777)})();
module.exports=(()=>{"use strict";var r={777:(r,e,a)=>{var n=a(87);var i=a(747);var t=a(129);var f="/etc/resolv.conf";function getInterfaceName(){var r="eth";var e=n.platform();if(e==="darwin"){r="en"}else if(e==="win32"){r=null}return r}function getIfconfigCMD(){if(n.platform()==="win32"){return"ipconfig/all"}return"/sbin/ifconfig"}function matchName(e,r){if(r==="IPv4"){return e==="IPv4"||e===4}if(r==="IPv6"){return e==="IPv6"||e===6}return e===r}function address(r,e){if(typeof r==="function"){e=r;r=null}var a={ip:address.ip(r),ipv6:address.ipv6(r),mac:null};address.mac(r,function(r,n){if(n){a.mac=n}e(r,a)})}address.interface=function(r,e){var a=n.networkInterfaces();var i=!e;e=e||getInterfaceName();r=r||"IPv4";for(var t=-1;t<8;t++){var f=e+(t>=0?t:"");var s=a[f];if(s){for(var c=0;c<s.length;c++){var d=s[c];if(matchName(d.family,r)){return d}}}}if(i){for(var u in a){var s=a[u];for(var t=0;t<s.length;t++){var d=s[t];if(matchName(d.family,r)&&d.address!=="127.0.0.1"){return d}}}}return};address.ip=function(r){var e=address.interface("IPv4",r);return e&&e.address};address.ipv6=function(r){var e=address.interface("IPv6",r);return e&&e.address};var s=/^(\w+)\:\s+flags=/;var c=/^(\w+)\s{2,}link encap:\w+/i;var d=address.MAC_RE=/(?:ether|HWaddr)\s+((?:[a-z0-9]{2}\:){5}[a-z0-9]{2})/i;var u=address.MAC_IP_RE=/inet\s(?:addr\:)?(\d+\.\d+\.\d+\.\d+)/;function getMAC(r,e,a){var n=r.split("\n");for(var i=0;i<n.length;i++){var t=n[i].trimRight();var f=s.exec(t)||c.exec(t);if(!f){continue}var v=f[1];if(v.indexOf(e)!==0){continue}var o=null;var l=null;var p=d.exec(t);if(p){l=p[1]}i++;while(true){t=n[i];if(!t||s.exec(t)||c.exec(t)){i--;break}if(!l){p=d.exec(t);if(p){l=p[1]}}if(!o){p=u.exec(t);if(p){o=p[1]}}i++}if(o===a){return l}}}address.mac=function(r,e){if(typeof r==="function"){e=r;r=null}r=r||getInterfaceName();var a=address.interface("IPv4",r);if(!a){return e()}if(!process.env.CI&&(a.mac==="ff:00:00:00:00:00"||a.mac==="00:00:00:00:00:00")){a.mac=""}if(a.mac){return e(null,a.mac)}t.exec(getIfconfigCMD(),{timeout:5e3},function(n,i,t){if(n||!i){return e(n)}var f=getMAC(i||"",r,a.address);e(null,f)})};var v=/^nameserver\s+(\d+\.\d+\.\d+\.\d+)$/i;address.dns=function(r,e){if(typeof r==="function"){e=r;r=null}r=r||f;i.readFile(r,"utf8",function(r,a){if(r){return e(r)}var n=[];a=a||"";var i=a.split("\n");for(var t=0;t<i.length;t++){var f=i[t].trim();var s=v.exec(f);if(s){n.push(s[1])}}e(null,n)})};r.exports=address},129:r=>{r.exports=require("child_process")},747:r=>{r.exports=require("fs")},87:r=>{r.exports=require("os")}};var e={};function __nccwpck_require__(a){if(e[a]){return e[a].exports}var n=e[a]={exports:{}};var i=true;try{r[a](n,n.exports,__nccwpck_require__);i=false}finally{if(i)delete e[a]}return n.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(777)})();
{
"name": "@umijs/deps",
"version": "3.5.27",
"version": "3.5.28",
"description": "@umijs/deps",

@@ -110,6 +110,6 @@ "main": "lib/index.js",

"@types/yargs-parser": "20.2.0",
"@umijs/babel-plugin-auto-css-modules": "3.5.27",
"@umijs/babel-plugin-import-to-await-require": "3.5.27",
"@umijs/babel-plugin-auto-css-modules": "3.5.28",
"@umijs/babel-plugin-import-to-await-require": "3.5.28",
"@vercel/ncc": "0.28.5",
"address": "1.1.2",
"address": "1.2.0",
"ansi-html": "0.0.7",

@@ -130,3 +130,3 @@ "babel-loader": "^8.2.2",

"compression": "1.7.4",
"copy-webpack-plugin": "6.1.0",
"copy-webpack-plugin": "6.4.1",
"crequire": "1.8.1",

@@ -133,0 +133,0 @@ "cross-spawn": "7.0.3",

Sorry, the diff of this file is too big to display

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