6 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
bc1a89e3c7 2.0.0 2023-06-11 22:17:05 +02:00
92ae017d0f BREAKING CHANGE(core): update 2023-06-11 22:17:04 +02:00
4 changed files with 12 additions and 3 deletions

View File

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

View File

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

View File

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

View File

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