@jigra/text-zoom
Advanced tools
Comparing version 5.0.6 to 5.0.7
@@ -1,4 +0,4 @@ | ||
import type { TextZoomPlugin } from './definitions'; | ||
import type { TextZoomPlugin } from "./definitions"; | ||
declare const TextZoom: TextZoomPlugin; | ||
export * from './definitions'; | ||
export * from "./definitions"; | ||
export { TextZoom }; |
@@ -1,7 +0,7 @@ | ||
import { registerPlugin } from '@jigra/core'; | ||
const TextZoom = registerPlugin('TextZoom', { | ||
ios: () => import('./ios').then((m) => new m.TextZoomIOS()), | ||
import { registerPlugin } from "@jigra/core"; | ||
const TextZoom = registerPlugin("TextZoom", { | ||
ios: () => import("./ios").then((m) => new m.TextZoomIOS()), | ||
}); | ||
export * from './definitions'; | ||
export * from "./definitions"; | ||
export { TextZoom }; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import type { GetPreferredResult, GetResult, SetOptions, TextZoomPlugin } from './definitions'; | ||
import type { GetPreferredResult, GetResult, SetOptions, TextZoomPlugin } from "./definitions"; | ||
export declare class TextZoomIOS implements TextZoomPlugin { | ||
@@ -3,0 +3,0 @@ static readonly TEXT_SIZE_REGEX: RegExp; |
@@ -1,2 +0,2 @@ | ||
import { Plugins } from '@jigra/core'; | ||
import { Plugins } from "@jigra/core"; | ||
export class TextZoomIOS { | ||
@@ -16,9 +16,9 @@ async get() { | ||
getRaw() { | ||
if (typeof document !== 'undefined') { | ||
return document.body.style.webkitTextSizeAdjust || '100%'; | ||
if (typeof document !== "undefined") { | ||
return document.body.style.webkitTextSizeAdjust || "100%"; | ||
} | ||
return '100%'; | ||
return "100%"; | ||
} | ||
setRaw(value) { | ||
if (typeof document !== 'undefined') { | ||
if (typeof document !== "undefined") { | ||
document.body.style.webkitTextSizeAdjust = value; | ||
@@ -25,0 +25,0 @@ } |
@@ -7,3 +7,3 @@ 'use strict'; | ||
const TextZoom = core.registerPlugin('TextZoom', { | ||
const TextZoom = core.registerPlugin("TextZoom", { | ||
ios: () => Promise.resolve().then(function () { return ios; }).then((m) => new m.TextZoomIOS()), | ||
@@ -26,9 +26,9 @@ }); | ||
getRaw() { | ||
if (typeof document !== 'undefined') { | ||
return document.body.style.webkitTextSizeAdjust || '100%'; | ||
if (typeof document !== "undefined") { | ||
return document.body.style.webkitTextSizeAdjust || "100%"; | ||
} | ||
return '100%'; | ||
return "100%"; | ||
} | ||
setRaw(value) { | ||
if (typeof document !== 'undefined') { | ||
if (typeof document !== "undefined") { | ||
document.body.style.webkitTextSizeAdjust = value; | ||
@@ -35,0 +35,0 @@ } |
var jigraTextZoom = (function (exports, core) { | ||
'use strict'; | ||
const TextZoom = core.registerPlugin('TextZoom', { | ||
const TextZoom = core.registerPlugin("TextZoom", { | ||
ios: () => Promise.resolve().then(function () { return ios; }).then((m) => new m.TextZoomIOS()), | ||
@@ -22,9 +22,9 @@ }); | ||
getRaw() { | ||
if (typeof document !== 'undefined') { | ||
return document.body.style.webkitTextSizeAdjust || '100%'; | ||
if (typeof document !== "undefined") { | ||
return document.body.style.webkitTextSizeAdjust || "100%"; | ||
} | ||
return '100%'; | ||
return "100%"; | ||
} | ||
setRaw(value) { | ||
if (typeof document !== 'undefined') { | ||
if (typeof document !== "undefined") { | ||
document.body.style.webkitTextSizeAdjust = value; | ||
@@ -31,0 +31,0 @@ } |
{ | ||
"name": "@jigra/text-zoom", | ||
"version": "5.0.6", | ||
"version": "5.0.7", | ||
"description": "The Text Zoom API provides the ability to change Web View text size for visual accessibility.", | ||
@@ -35,3 +35,3 @@ "main": "dist/plugin.cjs.js", | ||
"verify:web": "npm run build", | ||
"lint": "npm run eslint && npm run prettier -- --check", | ||
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint", | ||
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format", | ||
@@ -67,3 +67,8 @@ "eslint": "eslint . --ext ts", | ||
}, | ||
"prettier": "@familyjs/prettier-config", | ||
"prettier": { | ||
"plugins": [ | ||
"@familyjs/prettier-config", | ||
"prettier-plugin-java" | ||
] | ||
}, | ||
"swiftlint": "@familyjs/swiftlint-config", | ||
@@ -70,0 +75,0 @@ "eslintConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
34898