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

balena-settings-storage

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

balena-settings-storage - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2-balena-lint-7202160ea526f94aed4a5a1ae2c43e854c5314e7

4

build/local-storage.js

@@ -37,3 +37,3 @@ "use strict";

_store = {};
}
},
};

@@ -85,3 +85,3 @@ };

return localStorage.clear();
}
},
}); };

@@ -88,0 +88,0 @@ }

@@ -17,5 +17,5 @@ import { BalenaSettingsStorage } from './types';

*/
declare const getStorage: ({ dataDirectory }?: {
declare const getStorage: ({ dataDirectory, }?: {
dataDirectory?: string | undefined;
}) => BalenaSettingsStorage;
export = getStorage;

@@ -7,2 +7,7 @@ # Change Log

# v5.0.2
## (2020-05-04)
* Switch to balena-lint [Pagan Gazzard]
# v5.0.1

@@ -9,0 +14,0 @@ ## (2020-05-04)

@@ -38,3 +38,3 @@ /*

_store = {};
}
},
};

@@ -101,3 +101,3 @@ };

return localStorage.clear();
}
},
});

@@ -104,0 +104,0 @@ } else {

@@ -41,3 +41,3 @@ /*

const getStorage = ({
dataDirectory
dataDirectory,
}: { dataDirectory?: string } = {}): BalenaSettingsStorage => {

@@ -44,0 +44,0 @@ const localStorage = getLocalStorage(dataDirectory);

{
"name": "balena-settings-storage",
"version": "5.0.1",
"version": "5.0.2-balena-lint-7202160ea526f94aed4a5a1ae2c43e854c5314e7",
"description": "Balena settings storage utilities",

@@ -24,8 +24,8 @@ "main": "build/storage.js",

"test:browser": "karma start",
"lint": "tslint \"lib/**/*.ts\" \"tests/**/*.ts\"",
"lint": "balena-lint --typescript lib tests",
"test": "npm run build && npm run lint && npm run test:node && npm run test:browser",
"build": "rimraf ./build && npm run prettify && tsc && npm run readme",
"prepublish": "require-npm4-to-publish",
"prepublishOnly": "npm test",
"prettify": "prettier --use-tabs --single-quote --write \"lib/**/*.ts\" \"tests/**/*.ts\"",
"prepack": "npm run build",
"prettify": "balena-lint --typescript --fix lib tests",
"readme": "jsdoc2md --template doc/README.hbs build/storage.js > README.md"

@@ -36,4 +36,7 @@ },

"devDependencies": {
"@balena/lint": "^4.1.1",
"@resin.io/types-mochainon": "^2.0.1",
"@types/mocha": "^2.2.41",
"balena-config-karma": "^2.0.0",
"balena-settings-client": "^4.0.0",
"jsdoc-to-markdown": "^3.0.0",

@@ -43,9 +46,5 @@ "karma": "^1.7.0",

"mochainon": "^2.0.0",
"prettier": "^1.5.3",
"require-npm4-to-publish": "^1.0.0",
"rimraf": "^2.6.1",
"require-npm4-to-publish": "^1.0.0",
"balena-config-karma": "^2.0.0",
"balena-settings-client": "^4.0.0",
"ts-node": "^3.3.0",
"tslint": "^5.5.0",
"typescript": "3.1.3"

@@ -52,0 +51,0 @@ },

@@ -91,3 +91,3 @@ import * as BalenaSettingsClientModule from 'balena-settings-client';

.then(() =>
m.chai.expect(storage.get('foobar')).to.eventually.equal('World')
m.chai.expect(storage.get('foobar')).to.eventually.equal('World'),
);

@@ -166,3 +166,3 @@ });

.then(() =>
m.chai.expect(storage.has('foobar')).to.eventually.equal(false)
m.chai.expect(storage.has('foobar')).to.eventually.equal(false),
);

@@ -181,3 +181,3 @@ });

.then(() =>
m.chai.expect(storage.has('foobar')).to.eventually.equal(false)
m.chai.expect(storage.has('foobar')).to.eventually.equal(false),
);

@@ -184,0 +184,0 @@ });

{
"extends": "tslint:recommended",
"rules": {
"indent": [ true, "tabs" ],
"jsdoc-format": true,
"whitespace": [
false,
"check-type"
],
"object-literal-sort-keys": false,
"only-arrow-functions": [false],
"quotemark": [true, "single", "avoid-escape"],
"no-var-requires": true,
"arrow-parens": false,
"max-classes-per-file": [false],
"no-console": [false],
"no-string-literal": false,
"interface-name": [false],
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore",
"allow-pascal-case"
],
"trailing-comma": [false]
}
"extends": "./node_modules/@balena/lint/config/tslint-prettier.json"
}

Sorry, the diff of this file is not supported yet

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