4 Commits

Author SHA1 Message Date
7926ced69d 2.0.2 2023-06-12 00:42:30 +02:00
fc0369cded fix(core): update 2023-06-12 00:42:30 +02:00
b0bc321cc2 2.0.1 2023-06-11 22:25:13 +02:00
8c3214b872 fix(core): update 2023-06-11 22:25:12 +02:00
4 changed files with 12 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartmanifest",
"version": "2.0.0",
"version": "2.0.2",
"private": false,
"description": "a module for creating web app manifests",
"main": "dist_ts/index.js",

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@pushrocks/smartmanifest',
version: '2.0.0',
version: '2.0.2',
description: 'a module for creating web app manifests'
}

View File

@ -12,11 +12,15 @@ export interface ISmartManifestConstructorOptions {
src: string;
type: string;
sizes: string;
purpose?: 'any' | 'maskable' | 'monochrome';
}>;
related_applications?: Array<{
platform: 'play' | string;
id: string;
}>;
scope: string;
lang: string;
display_override: 'window-controls-overlay'[];
}
const defaultConstructorOptions: ISmartManifestConstructorOptions = {
@ -32,6 +36,7 @@ const defaultConstructorOptions: ISmartManifestConstructorOptions = {
src: '/assetbroker/manifest/icon-large.png',
type: 'image/png',
sizes: '1024x1024',
purpose: 'any',
},
{
src: '/assetbroker/manifest/icon-144x144.png',
@ -45,6 +50,9 @@ const defaultConstructorOptions: ISmartManifestConstructorOptions = {
},
],
related_applications: [],
scope: '/',
lang: 'en',
display_override: ['window-controls-overlay'],
};
export class SmartManifest {

View File

@ -5,6 +5,7 @@
"target": "ES2022",
"module": "ES2022",
"moduleResolution": "nodenext",
"esModuleInterop": true
"esModuleInterop": true,
"verbatimModuleSyntax": true,
}
}