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

cspell-dict-en_us

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cspell-dict-en_us - npm Package Compare versions

Comparing version 1.2.30 to 1.2.34

19

CHANGELOG.md

@@ -6,2 +6,21 @@ # Change Log

## [1.2.34](https://github.com/streetsidesoftware/cspell-dicts/compare/cspell-dict-en_us@1.2.33...cspell-dict-en_us@1.2.34) (2020-11-08)
### Bug Fixes
* do not include Configstore if not necessary ([#270](https://github.com/streetsidesoftware/cspell-dicts/issues/270)) ([d8b625f](https://github.com/streetsidesoftware/cspell-dicts/commit/d8b625f2f42d5cc6c4a9390216ac1e5037886e44))
## [1.2.33](https://github.com/streetsidesoftware/cspell-dicts/compare/cspell-dict-en_us@1.2.32...cspell-dict-en_us@1.2.33) (2020-10-21)
**Note:** Version bump only for package cspell-dict-en_us
## [1.2.25](https://github.com/streetsidesoftware/cspell-dicts/compare/cspell-dict-en_us@1.2.24...cspell-dict-en_us@1.2.25) (2020-02-19)

@@ -8,0 +27,0 @@

6

index.js
'use strict';
var util = require('./util');
const configLocation = require.resolve('./cspell-ext.json');
function getConfigLocation() {
return util.configLocation;
return configLocation;
}
module.exports = {
getConfigLocation,
getConfigLocation,
};

@@ -5,5 +5,4 @@ #!/usr/bin/env node

var util = require('./util');
const util = require('./util');
util.install();
{
"name": "cspell-dict-en_us",
"version": "1.2.30",
"version": "1.2.34",
"description": "English dictionary for cspell.",

@@ -9,2 +9,6 @@ "bin": {

},
"exports": {
".": "./index.js",
"./cspell-ext.json": "./cspell-ext.json"
},
"scripts": {

@@ -19,2 +23,3 @@ "build": "npm run compile",

"test": "npm run test-dict && npm run test-text",
"prepublishOnly": "npm t",
"prepare": "cp ../../util/* .",

@@ -56,3 +61,3 @@ "cspell-link": "node link.js",

],
"gitHead": "db792bac41932d29b8efff0c9d18da6111df9417"
"gitHead": "e82d9495948fd89166c1d26b4d0d7355c8f5343d"
}

@@ -5,4 +5,4 @@ #!/usr/bin/env node

var util = require('./util');
const util = require('./util');
util.uninstall();
'use strict';
// Cspell:word configstore
var Configstore = require('configstore');
var Path = require('path');
const Configstore = require('configstore');
var packageName = 'cspell';
var importPath = 'import';
var configLocation = Path.join(__dirname, 'cspell-ext.json');
const packageName = 'cspell';
const importPath = 'import';
const configLocation = require.resolve('./cspell-ext.json');
/**
*
* @param {Configstore} conf
* @returns {string[]}
*/
function getImports(conf) {
var imports = conf.get(importPath);
const imports = conf.get(importPath) || [];
imports = imports || [];
if (typeof imports === 'string') {
imports = [imports];
}
if (typeof imports === 'string') {
return [imports];
}
return imports;
return imports;
}
function install() {
var conf = new Configstore(packageName);
/** @type {string[]|string|undefined} */
var imports = getImports(conf);
if (imports.indexOf(configLocation) < 0) {
imports.push(configLocation);
conf.set(importPath, imports);
}
const conf = new Configstore(packageName);
const imports = getImports(conf);
if (imports.indexOf(configLocation) < 0) {
imports.push(configLocation);
conf.set(importPath, imports);
}
}
function uninstall() {
var conf = new Configstore(packageName);
/** @type {string[]|string|undefined} */
var imports = getImports(conf);
var index = imports.indexOf(configLocation);
if (index >= 0) {
imports.splice(index, 1);
conf.set(importPath, imports);
}
const conf = new Configstore(packageName);
const imports = getImports(conf);
const index = imports.indexOf(configLocation);
if (index >= 0) {
imports.splice(index, 1);
conf.set(importPath, imports);
}
}
module.exports = {
install,
uninstall,
configLocation,
install,
uninstall,
configLocation,
};
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