@assecosolutions/fox-common-utils
Advanced tools
Comparing version 1.0.1-alpha.0 to 1.0.1
@@ -7,1 +7,2 @@ export * from './lib/strict-mode'; | ||
export * from './lib/util'; | ||
export * from './lib/iframe.util'; |
@@ -1,2 +0,1 @@ | ||
import { HasGuid, MightHaveGuid } from './model'; | ||
/** | ||
@@ -17,9 +16,1 @@ * | ||
export declare const ensureNotNil: <T>(thing: T | null | undefined) => T; | ||
/** | ||
* Ensure that value's guid is not `null` | `undefined`. | ||
* | ||
* @param thing | `null` | `undefined` | ||
* @returns thing | ||
* @throws error if thing is `null` | `undefined` or thing.guid is `null` | `undefined` | ||
*/ | ||
export declare const ensureGuidNotNull: <T extends MightHaveGuid>(thing: T | null | undefined) => T & HasGuid; |
@@ -1,6 +0,3 @@ | ||
export interface MightHaveGuid { | ||
guid?: string | null; | ||
export interface HasId { | ||
_id: string; | ||
} | ||
export interface HasGuid { | ||
guid: string; | ||
} |
{ | ||
"name": "@assecosolutions/fox-common-utils", | ||
"version": "1.0.1-alpha.0", | ||
"version": "1.0.1", | ||
"public": true, | ||
@@ -21,8 +21,2 @@ "lib": { | ||
"types": "./index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./index.d.ts", | ||
"import": "./index.js" | ||
} | ||
}, | ||
"dependencies": {}, | ||
@@ -29,0 +23,0 @@ "peerDependencies": { |
Sorry, the diff of this file is too big to display
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
90831
18
2216
1
3