Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
7926ced69d | |||
fc0369cded | |||
b0bc321cc2 | |||
8c3214b872 |
@ -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",
|
||||
|
@ -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'
|
||||
}
|
||||
|
@ -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 {
|
||||
|
@ -5,6 +5,7 @@
|
||||
"target": "ES2022",
|
||||
"module": "ES2022",
|
||||
"moduleResolution": "nodenext",
|
||||
"esModuleInterop": true
|
||||
"esModuleInterop": true,
|
||||
"verbatimModuleSyntax": true,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user