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

xutil

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xutil - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

9

lib/xutil.js

@@ -51,3 +51,3 @@ 'use strict';

_.isExistedFile = function(p){
_.isExistedFile = function(p) {
p = p.replace(/(\?|#).*$/, '');

@@ -57,6 +57,11 @@ return fs.existsSync(p) && fs.statSync(p).isFile();

_.isExistedDir = function(p){
_.isExistedDir = function(p) {
return fs.existsSync(p) && fs.statSync(p).isDirectory();
};
_.noCacheRequire = function(resolvedPath) {
delete require.cache[resolvedPath];
return require(resolvedPath);
};
_.ipv4 = ipv4;

@@ -63,0 +68,0 @@ _.semver = semver;

{
"name": "xutil",
"version": "1.0.10",
"version": "1.0.11",
"description": "xutil",

@@ -27,3 +27,2 @@ "keywords": [

"devDependencies": {
"co-mocha": "^1.1.3",
"istanbul": "*",

@@ -36,10 +35,10 @@ "jshint": "*",

"scripts": {
"test": "make test",
"jshint": "make jshint"
"test": "istanbul cover `npm bin`/_mocha",
"lint": "jshint .",
"ci": "npm run test"
},
"pre-commit": [
"jshint"
"lint"
],
"homepage": "https://github.com/xudafeng/xutil",
"license": "MIT"
}

@@ -15,3 +15,3 @@ # xutil

[coveralls-url]: https://coveralls.io/r/xudafeng/xutil?branch=master
[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square
[node-image]: https://img.shields.io/badge/node.js-%3E=_8-green.svg?style=flat-square
[node-url]: http://nodejs.org/download/

@@ -18,0 +18,0 @@ [download-image]: https://img.shields.io/npm/dm/xutil.svg?style=flat-square

'use strict';
var _ = require('..');
const _ = require('..');
const assert = require('assert');
describe('test', function() {
it('base', function() {
_.ipv4.should.be.ok();
_.uuid().should.be.ok();
assert.ok(_.ipv4);
assert.ok(_.uuid());
});
});

Sorry, the diff of this file is not supported yet

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