Socket
Socket
Sign inDemoInstall

@kano/kbc-utils

Package Overview
Dependencies
Maintainers
13
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kano/kbc-utils - npm Package Compare versions

Comparing version 1.5.1 to 1.5.2

8

lib/utils/apps.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc