@kano/kbc-utils
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -1,3 +0,6 @@ | ||
export declare type AllAppNames = 'kano-world' | 'make-art' | 'kano-code' | 'make-apps' | 'kano-draw' | 'pixel-motion' | 'kano-world-studio' | 'make-art-studio' | 'kano-code-studio' | 'pixel-motion-studio'; | ||
export declare type SafeAppNames = 'kano-world' | 'kano-code' | 'make-art' | 'pixel-motion'; | ||
export declare 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'; | ||
export declare type SafeAppNames = 'kano-world' | 'kano-code' | 'make-art' | 'pixel-motion' | 'kano-create'; | ||
export declare const APP_LABELS: { | ||
[name: string]: string; | ||
}; | ||
export declare const sanitizeAppName: (appName: AllAppNames) => SafeAppNames; | ||
@@ -8,2 +11,3 @@ export declare const isKanoWorld: (KB_APP_NAME: string) => boolean; | ||
export declare const isPixelMotion: (KB_APP_NAME: string) => boolean; | ||
export declare const isKanoCreate: (KB_APP_NAME: string) => boolean; | ||
//# sourceMappingURL=apps.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.APP_LABELS = { | ||
'make-art': 'Make Art', | ||
'kano-code': 'Kano Code', | ||
'kano-create': 'Kano Create', | ||
'pixel-motion': 'Pixel Motion' | ||
}; | ||
exports.sanitizeAppName = (appName) => { | ||
@@ -18,2 +24,5 @@ switch (appName) { | ||
return 'pixel-motion'; | ||
case 'kano-create': | ||
case 'kano-create-studio': | ||
return 'kano-create'; | ||
} | ||
@@ -33,2 +42,5 @@ }; | ||
}; | ||
exports.isKanoCreate = (KB_APP_NAME) => { | ||
return exports.sanitizeAppName(KB_APP_NAME) === 'kano-create'; | ||
}; | ||
//# sourceMappingURL=apps.js.map |
{ | ||
"name": "@kano/kbc-utils", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "Utilities functionality for boilerplate mini apps", | ||
@@ -37,3 +37,3 @@ "author": "Kano Computing", | ||
}, | ||
"gitHead": "fd51a62cc82f5892f9648987e32b16646db0a0aa" | ||
"gitHead": "bbe0e521538e1ba9fc9a1d6194b1ac765cbf7fd4" | ||
} |
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
47546
625