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FBQVEsQ0FBQyxHQUFHLENBQUMsRUFBRTtnQkFDdEQsS0FBSyxFQUFFLElBQUk7YUFDWixDQUFDLENBQUM7U0FDSjtRQUVELE9BQU8sZUFBZSxDQUFDO0lBQ3pCLENBQUM7SUFFRDs7OztPQUlHO0lBQ0ksZUFBZSxDQUFDLFVBQXNCO1FBQzNDLEtBQUssTUFBTSxHQUFHLElBQUksVUFBVSxDQUFDLE9BQU8sRUFBRSxFQUFFO1lBQ3RDLElBQUksQ0FBQyxRQUFRLENBQUMsR0FBRyxFQUFFLFVBQVUsQ0FBQyxRQUFRLENBQUMsR0FBRyxDQUFDLEVBQUU7Z0JBQzNDLEtBQUssRUFBRSxJQUFJO2FBQ1osQ0FBQyxDQUFDO1NBQ0o7SUFDSCxDQUFDO0NBQ0Y7QUE1RUQsMEJBNEVDIn0= |
import * as smartdelay from '@pushrocks/smartdelay'; | ||
import * as smartmatch from '@pushrocks/smartmatch'; | ||
import * as smartpromise from '@pushrocks/smartpromise'; | ||
@@ -6,5 +7,4 @@ import * as smartrx from '@pushrocks/smartrx'; | ||
import * as smartunique from '@pushrocks/smartunique'; | ||
export { smartdelay, smartpromise, smartrx, smarttime, smartunique }; | ||
import minimatch from 'minimatch'; | ||
export { smartdelay, smartmatch, smartpromise, smartrx, smarttime, smartunique }; | ||
declare const symbolTree: any; | ||
export { minimatch, symbolTree }; | ||
export { symbolTree }; |
@@ -21,7 +21,4 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.symbolTree = exports.minimatch = exports.smartunique = exports.smarttime = exports.smartrx = exports.smartpromise = exports.smartdelay = void 0; | ||
exports.symbolTree = exports.smartunique = exports.smarttime = exports.smartrx = exports.smartpromise = exports.smartmatch = exports.smartdelay = void 0; | ||
// ============== | ||
@@ -32,2 +29,4 @@ // @pushrocks | ||
exports.smartdelay = smartdelay; | ||
const smartmatch = __importStar(require("@pushrocks/smartmatch")); | ||
exports.smartmatch = smartmatch; | ||
const smartpromise = __importStar(require("@pushrocks/smartpromise")); | ||
@@ -44,6 +43,4 @@ exports.smartpromise = smartpromise; | ||
// ============== | ||
const minimatch_1 = __importDefault(require("minimatch")); | ||
exports.minimatch = minimatch_1.default; | ||
const symbolTree = require('symbol-tree'); | ||
exports.symbolTree = symbolTree; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlrLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9saWsucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsaUJBQWlCO0FBQ2pCLGFBQWE7QUFDYixpQkFBaUI7QUFDakIsa0VBQW9EO0FBTTNDLGdDQUFVO0FBTG5CLHNFQUF3RDtBQUtuQyxvQ0FBWTtBQUpqQyw0REFBOEM7QUFJWCwwQkFBTztBQUgxQyxnRUFBa0Q7QUFHTiw4QkFBUztBQUZyRCxvRUFBc0Q7QUFFQyxrQ0FBVztBQUVsRSxpQkFBaUI7QUFDakIsY0FBYztBQUNkLGlCQUFpQjtBQUNqQiwwREFBa0M7QUFHekIsb0JBSEYsbUJBQVMsQ0FHRTtBQUZsQixNQUFNLFVBQVUsR0FBRyxPQUFPLENBQUMsYUFBYSxDQUFDLENBQUM7QUFFdEIsZ0NBQVUifQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlrLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9saWsucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsaUJBQWlCO0FBQ2pCLGFBQWE7QUFDYixpQkFBaUI7QUFDakIsa0VBQW9EO0FBTzNDLGdDQUFVO0FBTm5CLGtFQUFvRDtBQU0vQixnQ0FBVTtBQUwvQixzRUFBd0Q7QUFLdkIsb0NBQVk7QUFKN0MsNERBQThDO0FBSUMsMEJBQU87QUFIdEQsZ0VBQWtEO0FBR00sOEJBQVM7QUFGakUsb0VBQXNEO0FBRWEsa0NBQVc7QUFFOUUsaUJBQWlCO0FBQ2pCLGNBQWM7QUFDZCxpQkFBaUI7QUFDakIsTUFBTSxVQUFVLEdBQUcsT0FBTyxDQUFDLGFBQWEsQ0FBQyxDQUFDO0FBRWpDLGdDQUFVIn0= |
@@ -23,3 +23,4 @@ "use strict"; | ||
exports.Stringmap = void 0; | ||
const plugins = __importStar(require("./lik.plugins")); | ||
const smartmatch_1 = require("@pushrocks/smartmatch"); | ||
const smartpromise = __importStar(require("@pushrocks/smartpromise")); | ||
class Stringmap { | ||
@@ -73,5 +74,6 @@ constructor() { | ||
checkMinimatch(miniMatchStringArg) { | ||
const smartMatchInstance = new smartmatch_1.SmartMatch(miniMatchStringArg); | ||
let foundMatch = false; | ||
for (const stringItem of this._stringArray) { | ||
if (plugins.minimatch(stringItem, miniMatchStringArg)) { | ||
if (smartMatchInstance.match(stringItem)) { | ||
foundMatch = true; | ||
@@ -103,3 +105,3 @@ } | ||
registerUntilTrue(functionArg, callbackArg) { | ||
const trueDeferred = plugins.smartpromise.defer(); | ||
const trueDeferred = smartpromise.defer(); | ||
this._triggerUntilTrueFunctionArray.push(() => { | ||
@@ -129,2 +131,2 @@ const result = functionArg(this.getStringArray()); | ||
exports.Stringmap = Stringmap; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlrLnN0cmluZ21hcC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL2xpay5zdHJpbmdtYXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs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Q0FBQztRQUNILElBQUksQ0FBQyxhQUFhLEVBQUUsQ0FBQztRQUNyQixPQUFPLFlBQVksQ0FBQyxPQUFPLENBQUM7SUFDOUIsQ0FBQztJQUVEOztPQUVHO0lBQ0ssYUFBYTtRQUNuQixNQUFNLGFBQWEsR0FBRyxJQUFJLENBQUMsOEJBQThCLENBQUMsTUFBTSxDQUFDLFdBQVcsQ0FBQyxFQUFFO1lBQzdFLE9BQU8sQ0FBQyxXQUFXLEVBQUUsQ0FBQztRQUN4QixDQUFDLENBQUMsQ0FBQztRQUNILElBQUksQ0FBQyw4QkFBOEIsR0FBRyxhQUFhLENBQUM7SUFDdEQsQ0FBQztDQUNGO0FBOUdELDhCQThHQyJ9 |
{ | ||
"name": "@pushrocks/lik", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"private": false, | ||
@@ -24,3 +24,3 @@ "description": "light little helpers for node", | ||
"@gitzone/tsbuild": "^2.1.24", | ||
"@gitzone/tsbundle": "^1.0.68", | ||
"@gitzone/tsbundle": "^1.0.69", | ||
"@gitzone/tsrun": "^1.2.8", | ||
@@ -35,8 +35,8 @@ "@gitzone/tstest": "^1.0.28", | ||
"@pushrocks/smartdelay": "^2.0.6", | ||
"@pushrocks/smartmatch": "^1.0.7", | ||
"@pushrocks/smartpromise": "^3.0.6", | ||
"@pushrocks/smartrx": "^2.0.5", | ||
"@pushrocks/smarttime": "^3.0.12", | ||
"@pushrocks/smarttime": "^3.0.15", | ||
"@pushrocks/smartunique": "^3.0.3", | ||
"@types/minimatch": "^3.0.3", | ||
"minimatch": "^3.0.4", | ||
"symbol-tree": "^3.2.4" | ||
@@ -43,0 +43,0 @@ }, |
@@ -1,3 +0,1 @@ | ||
import * as plugins from './lik.plugins'; | ||
/** | ||
@@ -4,0 +2,0 @@ * fast map allows for very quick lookups of objects with a unique key |
@@ -5,2 +5,3 @@ // ============== | ||
import * as smartdelay from '@pushrocks/smartdelay'; | ||
import * as smartmatch from '@pushrocks/smartmatch'; | ||
import * as smartpromise from '@pushrocks/smartpromise'; | ||
@@ -11,3 +12,3 @@ import * as smartrx from '@pushrocks/smartrx'; | ||
export { smartdelay, smartpromise, smartrx, smarttime, smartunique }; | ||
export { smartdelay, smartmatch, smartpromise, smartrx, smarttime, smartunique }; | ||
@@ -17,5 +18,4 @@ // ============== | ||
// ============== | ||
import minimatch from 'minimatch'; | ||
const symbolTree = require('symbol-tree'); | ||
export { minimatch, symbolTree }; | ||
export { symbolTree }; |
@@ -1,2 +0,3 @@ | ||
import * as plugins from './lik.plugins'; | ||
import { SmartMatch } from '@pushrocks/smartmatch'; | ||
import * as smartpromise from '@pushrocks/smartpromise'; | ||
@@ -61,5 +62,6 @@ /** | ||
public checkMinimatch(miniMatchStringArg: string): boolean { | ||
const smartMatchInstance = new SmartMatch(miniMatchStringArg); | ||
let foundMatch: boolean = false; | ||
for (const stringItem of this._stringArray) { | ||
if (plugins.minimatch(stringItem, miniMatchStringArg)) { | ||
if (smartMatchInstance.match(stringItem)) { | ||
foundMatch = true; | ||
@@ -95,3 +97,3 @@ } | ||
public registerUntilTrue(functionArg: TTriggerFunction, callbackArg?: () => any) { | ||
const trueDeferred = plugins.smartpromise.defer(); | ||
const trueDeferred = smartpromise.defer(); | ||
this._triggerUntilTrueFunctionArray.push(() => { | ||
@@ -98,0 +100,0 @@ const result = functionArg(this.getStringArray()); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2594645
38
24511
24
1
+ Added@pushrocks/smartmatch@^1.0.7
- Removedminimatch@^3.0.4
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedminimatch@3.1.2(transitive)
Updated@pushrocks/smarttime@^3.0.15