@kano/kbc-utils
Advanced tools
Comparing version 2.1.2 to 2.2.0
{ | ||
"name": "@kano/kbc-utils", | ||
"version": "2.1.2", | ||
"version": "2.2.0", | ||
"description": "Utilities functionality for boilerplate mini apps", | ||
@@ -27,3 +27,3 @@ "author": "Kano Computing", | ||
}, | ||
"gitHead": "7d1d3db208bf37ba53aeff3196794e26ea6007b8" | ||
"gitHead": "60b91bae22a587dc08c56ab3c0b40edf885db3cf" | ||
} |
@@ -7,2 +7,4 @@ /* Custom properties on window */ | ||
FileList: any; | ||
KanoComputing: any; | ||
Windows: any; | ||
} | ||
@@ -9,0 +11,0 @@ } |
@@ -1,3 +0,3 @@ | ||
export type AllAppNames = 'kano-world' | 'make-art' | 'kano-code' | 'make-apps' | 'kano-draw' | 'pixel-motion' | 'kano-create' | 'kano-world-studio' | 'make-art-studio' | 'kano-code-studio' | 'pixel-motion-studio' | 'kano-create-studio' | 'guardian'; | ||
export type SafeAppNames = 'kano-world' | 'kano-code' | 'make-art' | 'pixel-motion' | 'kano-create' | 'guardian'; | ||
export type AllAppNames = 'kano-world' | 'make-art' | 'kano-code' | 'make-apps' | 'kano-draw' | 'pixel-motion' | 'kano-create' | 'kano-world-studio' | 'make-art-studio' | 'kano-code-studio' | 'how-computers-work' | 'pixel-motion-studio' | 'kano-create-studio' | 'guardian'; | ||
export type SafeAppNames = 'kano-world' | 'kano-code' | 'make-art' | 'how-computers-work' | 'pixel-motion' | 'kano-create' | 'guardian'; | ||
@@ -7,2 +7,3 @@ export const APP_LABELS: { [name: string]: string } = { | ||
'kano-code': 'Kano Code', | ||
'how-computers-work': 'How Computers Work', | ||
'kano-create': 'Kano Create', | ||
@@ -27,2 +28,4 @@ 'pixel-motion': 'Pixel Motion', | ||
return 'kano-code'; | ||
case 'how-computers-work': | ||
return 'how-computers-work'; | ||
case 'pixel-motion': | ||
@@ -56,2 +59,6 @@ case 'pixel-motion-studio': | ||
export const isHowComputersWork = (KB_APP_NAME: AllAppNames | string) => { | ||
return sanitizeAppName(KB_APP_NAME as AllAppNames) === 'how-computers-work'; | ||
}; | ||
export const isPixelMotion = (KB_APP_NAME: AllAppNames | string) => { | ||
@@ -58,0 +65,0 @@ return sanitizeAppName(KB_APP_NAME as AllAppNames) === 'pixel-motion'; |
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
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
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
26338
632
1