noodl-types
Advanced tools
Comparing version 1.0.197 to 1.0.198
@@ -1,2 +0,2 @@ | ||
import { NameField, ReferenceString } from '../ecosTypes'; | ||
import type { NameField, ReferenceString } from '../ecosTypes'; | ||
export declare function excludeKeys(keys1: string[], keys2: string | string[]): string[]; | ||
@@ -3,0 +3,0 @@ export declare function exists(v: unknown): boolean; |
@@ -5,4 +5,4 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
const lodash_get_1 = (0, tslib_1.__importDefault)(require("lodash.get")); | ||
const lodash_has_1 = (0, tslib_1.__importDefault)(require("lodash.has")); | ||
const get_1 = (0, tslib_1.__importDefault)(require("lodash/get")); | ||
const has_1 = (0, tslib_1.__importDefault)(require("lodash/has")); | ||
function excludeKeys(keys1, keys2) { | ||
@@ -18,7 +18,7 @@ const targetKeys = Array.isArray(keys2) ? keys2 : [keys2]; | ||
function hasKey(key, value) { | ||
return (0, lodash_has_1.default)(value, key); | ||
return (0, has_1.default)(value, key); | ||
} | ||
exports.hasKey = hasKey; | ||
function hasKeyEqualTo(key, value) { | ||
return (0, lodash_has_1.default)(value, key) && (0, lodash_get_1.default)(value, key) === value; | ||
return (0, has_1.default)(value, key) && (0, get_1.default)(value, key) === value; | ||
} | ||
@@ -31,3 +31,3 @@ exports.hasKeyEqualTo = hasKeyEqualTo; | ||
function hasInAllKeys(keys) { | ||
return (value) => (Array.isArray(keys) ? keys : [keys]).every((k) => (0, lodash_has_1.default)(value, k)); | ||
return (value) => (Array.isArray(keys) ? keys : [keys]).every((k) => (0, has_1.default)(value, k)); | ||
} | ||
@@ -61,3 +61,3 @@ exports.hasInAllKeys = hasInAllKeys; | ||
function hasInAnyKeys(keys, value) { | ||
return (Array.isArray(keys) ? keys : [keys]).some((k) => (0, lodash_has_1.default)(value, k)); | ||
return (Array.isArray(keys) ? keys : [keys]).some((k) => (0, has_1.default)(value, k)); | ||
} | ||
@@ -64,0 +64,0 @@ exports.hasInAnyKeys = hasInAnyKeys; |
@@ -1,5 +0,5 @@ | ||
import { LiteralUnion } from 'type-fest'; | ||
import { OrArray } from './_internal/types'; | ||
import { EmitObjectFold, GotoObject, IfObject } from './uncategorizedTypes'; | ||
import { BuiltInEvalObject, DataIn, ReferenceString } from './ecosTypes'; | ||
import type { LiteralUnion } from 'type-fest'; | ||
import type { OrArray } from './_internal/types'; | ||
import type { EmitObjectFold, GotoObject, IfObject } from './uncategorizedTypes'; | ||
import type { BuiltInEvalObject, DataIn, ReferenceString } from './ecosTypes'; | ||
export interface UncommonActionObjectProps { | ||
@@ -6,0 +6,0 @@ actions?: any[]; |
@@ -1,5 +0,5 @@ | ||
import { ActionObject } from './actionTypes'; | ||
import { ContentType, EventType } from './constantTypes'; | ||
import { StyleObject, StyleTextAlign, StyleTextAlignObject } from './styleTypes'; | ||
import { ActionChain, EmitObject, GotoObject, Path, TextBoardObject } from './uncategorizedTypes'; | ||
import type { ActionObject } from './actionTypes'; | ||
import type { ContentType, EventType } from './constantTypes'; | ||
import type { StyleObject, StyleTextAlign, StyleTextAlignObject } from './styleTypes'; | ||
import type { ActionChain, EmitObject, GotoObject, Path, TextBoardObject } from './uncategorizedTypes'; | ||
export declare type UncommonComponentObjectProps = { | ||
@@ -6,0 +6,0 @@ [key in EventType]: ActionChain; |
@@ -1,2 +0,2 @@ | ||
import { ComponentObject } from './componentTypes'; | ||
import type { ComponentObject } from './componentTypes'; | ||
export interface PageObject { | ||
@@ -3,0 +3,0 @@ components: ComponentObject[]; |
@@ -1,3 +0,3 @@ | ||
import { ActionObject } from './actionTypes'; | ||
import { StyleObject } from './styleTypes'; | ||
import type { ActionObject } from './actionTypes'; | ||
import type { StyleObject } from './styleTypes'; | ||
export declare type ActionChain = (ActionObject | EmitObjectFold | GotoObject | IfObject)[]; | ||
@@ -4,0 +4,0 @@ export interface EmitObject { |
@@ -1,2 +0,2 @@ | ||
import { ReferenceString } from '../ecosTypes'; | ||
import type { ReferenceString } from '../ecosTypes'; | ||
/** | ||
@@ -3,0 +3,0 @@ * true: ".Global.currentUser.vertex.name.firstName@" |
@@ -1,2 +0,2 @@ | ||
import { ReferenceString } from '../ecosTypes'; | ||
import type { ReferenceString } from '../ecosTypes'; | ||
/** | ||
@@ -3,0 +3,0 @@ * true: "=.." |
@@ -1,2 +0,2 @@ | ||
import { ReferenceString } from '../ecosTypes'; | ||
import type { ReferenceString } from '../ecosTypes'; | ||
/** | ||
@@ -3,0 +3,0 @@ * True if the value starts with an equal sign "=" |
@@ -1,2 +0,2 @@ | ||
import { ReferenceString } from '../ecosTypes'; | ||
import type { ReferenceString } from '../ecosTypes'; | ||
/** | ||
@@ -3,0 +3,0 @@ * true: "=." |
@@ -1,2 +0,2 @@ | ||
import { ReferenceString } from '../ecosTypes'; | ||
import type { ReferenceString } from '../ecosTypes'; | ||
/** | ||
@@ -3,0 +3,0 @@ * true: ".." |
@@ -1,2 +0,2 @@ | ||
import { ReferenceString } from '../ecosTypes'; | ||
import type { ReferenceString } from '../ecosTypes'; | ||
/** | ||
@@ -3,0 +3,0 @@ * true: "." |
@@ -1,2 +0,2 @@ | ||
import { ReferenceString } from '../ecosTypes'; | ||
import type { ReferenceString } from '../ecosTypes'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Returns true if the value is prefixed with ~/ (placeholder for base url) |
{ | ||
"author": "Christopher Tran <christopher@aitmed.com>", | ||
"dependencies": { | ||
"lodash.get": "^4.4.2", | ||
"lodash.has": "^4.5.2" | ||
}, | ||
"description": "NOODL TypeScript Definitions", | ||
"devDependencies": { | ||
"@types/lodash.get": "^4.4.6", | ||
"@types/lodash.has": "^4.5.6" | ||
}, | ||
"engines": { | ||
@@ -19,3 +11,3 @@ "node": ">=14", | ||
], | ||
"gitHead": "c6d5712c14cedf5faf330797187ffff96b9ce6ee", | ||
"gitHead": "30ae54d8b1679d94715412d6cff945f173dd539f", | ||
"homepage": "", | ||
@@ -41,3 +33,3 @@ "license": "ISC", | ||
"typings": "./dist/index.d.ts", | ||
"version": "1.0.197" | ||
"version": "1.0.198" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
0
0
107342
- Removedlodash.get@^4.4.2
- Removedlodash.has@^4.5.2
- Removedlodash.get@4.4.2(transitive)
- Removedlodash.has@4.5.2(transitive)