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

avet-utils

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

avet-utils - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

5

index.js

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

'use strict';
const fs = require('fs');

@@ -15,4 +13,3 @@ const path = require('path');

{ getFrameworkOrAvetPath },
]
.forEach(obj => Object.assign(exports, obj));
].forEach(obj => Object.assign(exports, obj));

@@ -19,0 +16,0 @@ function getFrameworkOrAvetPath(cwd, avetNames) {

2

lib/build.js

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

'use strict';
const { existsSync, readdirSync } = require('fs');

@@ -4,0 +2,0 @@ const { join } = require('path');

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

'use strict';
function printAndExit(message, code = 1) {

@@ -14,3 +12,6 @@ if (code === 0) {

function strUpperCamelize(str) {
const property = str.replace(/[_-][a-z]/ig, s => s.substring(1).toUpperCase());
const property = str
.replace(/^@(\w+)\//, (s, s1) => `${s1}_`)
.replace(/[_-][a-z]/gi, s => s.substring(1).toUpperCase());
let first = property[0];

@@ -17,0 +18,0 @@ first = first.toUpperCase();

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

'use strict';
function getDisplayName(Component) {

@@ -4,0 +2,0 @@ return Component.displayName || Component.name || 'UnKnown';

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

'use strict';
const path = require('path');

@@ -4,0 +2,0 @@ const assert = require('assert');

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

'use strict';
const { resolvePath } = require('./resolve');

@@ -4,0 +2,0 @@

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

'use strict';
const { join, sep, parse } = require('path');

@@ -36,14 +34,6 @@ const fs = require('mz/fs');

if (i[i.length - 1] === sep) {
return [
i + 'index.js',
i + 'index.json',
];
return [ `${i}index.js`, `${i}index.json` ];
}
return [
i + '.js',
join(i, 'index.js'),
i + '.json',
join('i', 'index.json'),
];
return [ `${i}.js`, join(i, 'index.js'), `${i}.json`, join('i', 'index.json') ];
}

@@ -72,3 +62,4 @@

// so we must ensure that the input path is in that format first.
if (process.platform === 'darwin') fsPathNormalized = fsPathNormalized.normalize('NFD');
if (process.platform === 'darwin')
fsPathNormalized = fsPathNormalized.normalize('NFD');

@@ -75,0 +66,0 @@ // !! Windows: Curiously, the drive component mustn't be part of a glob,

{
"name": "avet-utils",
"description": "Avet utils for all avet projects",
"version": "0.6.1",
"author": "okoala <dapixp@gmail.com>",
"files": [
"index.js",
"lib"
],
"version": "0.6.2",
"dependencies": {

@@ -15,18 +10,18 @@ "glob-promise": "^3.2.0",

},
"devDependencies": {
"eslint": "^4.10.0",
"eslint-config-egg": "^5.1.1"
"tnpm": {
"mode": "npm"
},
"engines": {
"node": ">= 8.0.0"
"node": ">= 8"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/avetjs/avet-utils.git"
"url": "https://github.com/avetjs/avet"
},
"bugs": {
"mail": "dapixp@gmail.com",
"url": "https://github.com/avetjs/avet/issues"
}
},
"homepage": "http://avetjs.github.io/avet/",
"author": "okoala <dapixp@gmail.com>",
"license": "MIT"
}
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