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

psl-core

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

psl-core - npm Package Compare versions

Comparing version 1.0.13 to 1.0.14

tests/HelperTest.js

22

dist/Helper.js

@@ -17,2 +17,4 @@ 'use strict';

require('./Array');
var Helper = function () {

@@ -145,2 +147,5 @@ function Helper() {

value: function foundText(string, search, strict) {
if (this.checkReservedWords(string, search)) return true;
if (strict) {

@@ -159,2 +164,19 @@ if (_lodash2.default.toUpper(string) === _lodash2.default.toUpper(search)) return true;

}
}, {
key: 'checkReservedWords',
value: function checkReservedWords(string, search) {
var found = false;
switch (search) {
case 'not_null':
found = string !== null && string !== '';
break;
case 'is_null':
found = string === null || string === '';
break;
}
return found;
}
}]);

@@ -161,0 +183,0 @@

10

package.json
{
"name": "psl-core",
"version": "1.0.13",
"version": "1.0.14",
"description": "Core Library",

@@ -13,3 +13,4 @@ "main": "dist/index.js",

"prepublish": "npm run compile",
"build": "webpack"
"build": "webpack",
"test": "ava ./tests"
},

@@ -31,2 +32,3 @@ "author": {

"devDependencies": {
"ava": "^0.20.0",
"babel-cli": "^6.24.0",

@@ -41,3 +43,7 @@ "babel-core": "^6.24.0",

"lodash": "^4.17.4"
},
"ava": {
"require": ["babel-register"],
"babel": "inherit"
}
}
.idea/workspace.xml

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