Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@akylas/nativescript

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@akylas/nativescript - npm Package Compare versions

Comparing version 8.0.1 to 8.0.3

1

accessibility/index.ios.js

@@ -186,3 +186,2 @@ import * as Application from '../application';

}
// eslint-disable-next-line @typescript-eslint/no-empty-function
export const sendAccessibilityEvent = () => { };

@@ -189,0 +188,0 @@ export const updateContentDescription = () => null;

// TODO: explain why we need to this or remov it
// Use requires to ensure order of imports is maintained
// eslint-disable-next-line @typescript-eslint/no-var-requires
const appCommon = require('./application-common');

@@ -5,0 +4,0 @@ // First reexport so that app module is initialized.

// TODO: explain why we need to this or remov it
// Use requires to ensure order of imports is maintained
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { displayedEvent, exitEvent, getCssFileName, launchEvent, livesync, lowMemoryEvent, notify, on, orientationChanged, orientationChangedEvent, resumeEvent, setApplication, suspendEvent, systemAppearanceChanged, systemAppearanceChangedEvent } = require('./application-common');

@@ -5,0 +4,0 @@ // First reexport so that app module is initialized.

3

color/color-common.d.ts

@@ -23,3 +23,2 @@ import * as definition from '.';

private _componentToHex;
private _normalizeHex;
toString(): string;

@@ -134,3 +133,3 @@ static fromIosColor(value: UIColor): Color;

complement(): Color;
static mix(color1: Color, color2: Color, amount: any): Color;
static mix(color1: Color, color2: Color, amount?: number): Color;
}

@@ -23,8 +23,5 @@ import * as types from '../utils/types';

}
else if (arg[0].charAt(0) === SHARP && (arg.length === 4 || arg.length === 7 || arg.length === 9)) {
// we dont use the regexp as it is quite slow. Instead we expect it to be a valid hex format
// strange that it would not be. And if it is not a thrown error seems best
// The parameter is a "#RRGGBBAA" formatted string
const hex = this._normalizeHex(arg);
this._argb = this._argbFromString(hex);
else if (arg[0] === SHARP) {
// The parameter is a "#AARRGGBB" formatted string
this._argb = this._argbFromString(arg);
}

@@ -150,10 +147,2 @@ else {

}
_normalizeHex(hexStr) {
// we expect this to already has a # as first char as it is supposed to be tested before
if (hexStr.length === 4) {
// Duplicate each char after the #, so "#123" becomes "#112233"
hexStr = hexStr.charAt(0) + hexStr.charAt(1) + hexStr.charAt(1) + hexStr.charAt(2) + hexStr.charAt(2) + hexStr.charAt(3) + hexStr.charAt(3);
}
return hexStr;
}
toString() {

@@ -228,3 +217,3 @@ return this.hex;

toHsl() {
const hsl = rgbToHsl(this.r, this.g, this.b);
const hsl = rgbToHsl(this.r / 255, this.g / 255, this.b / 255);
return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this.a };

@@ -237,3 +226,3 @@ }

toHslString() {
const hsl = rgbToHsl(this.r, this.g, this.b);
const hsl = rgbToHsl(this.r / 255, this.g / 255, this.b / 255);
const h = Math.round(hsl.h * 360), s = Math.round(hsl.s * 100), l = Math.round(hsl.l * 100);

@@ -248,3 +237,3 @@ const a = this.a;

toHsv() {
const hsv = rgbToHsv(this.r, this.g, this.b);
const hsv = rgbToHsv(this.r / 255, this.g / 255, this.b / 255);
return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this.a };

@@ -257,3 +246,3 @@ }

toHsvString() {
const hsv = rgbToHsv(this.r, this.g, this.b);
const hsv = rgbToHsv(this.r / 255, this.g / 255, this.b / 255);
const h = Math.round(hsv.h * 360), s = Math.round(hsv.s * 100), v = Math.round(hsv.v * 100);

@@ -277,4 +266,4 @@ const a = this.a;

desaturate(amount) {
amount = amount === 0 ? 0 : amount || 10;
const hsl = this.toHsl();
amount = (amount === 0) ? 0 : (amount || 10);
const hsl = rgbToHsl(this.r / 255, this.g / 255, this.b / 255);
hsl.s -= amount / 100;

@@ -290,4 +279,4 @@ hsl.s = Math.min(1, Math.max(0, hsl.s));

saturate(amount) {
amount = amount === 0 ? 0 : amount || 10;
const hsl = this.toHsl();
amount = (amount === 0) ? 0 : (amount || 10);
const hsl = rgbToHsl(this.r / 255, this.g / 255, this.b / 255);
hsl.s += amount / 100;

@@ -310,4 +299,4 @@ hsl.s = Math.min(1, Math.max(0, hsl.s));

lighten(amount) {
amount = amount === 0 ? 0 : amount || 10;
const hsl = this.toHsl();
amount = (amount === 0) ? 0 : (amount || 10);
const hsl = rgbToHsl(this.r / 255, this.g / 255, this.b / 255);
hsl.l += amount / 100;

@@ -335,4 +324,4 @@ hsl.l = Math.min(1, Math.max(0, hsl.l));

darken(amount) {
amount = amount === 0 ? 0 : amount || 10;
const hsl = this.toHsl();
amount = (amount === 0) ? 0 : (amount || 10);
const hsl = rgbToHsl(this.r / 255, this.g / 255, this.b / 255);
hsl.l -= amount / 100;

@@ -362,4 +351,3 @@ hsl.l = Math.min(1, Math.max(0, hsl.l));

}
static mix(color1, color2, amount) {
amount = (amount === 0) ? 0 : (amount || 50);
static mix(color1, color2, amount = 50) {
const p = amount / 100;

@@ -374,2 +362,3 @@ const rgba = {

}
;
}

@@ -376,0 +365,0 @@ function isRgbOrRgba(value) {

@@ -84,3 +84,3 @@ /**

public isDark(): boolean;
/**

@@ -102,3 +102,3 @@ * return true if brightenss >= 128

public getLuminance(): number;
/**

@@ -115,3 +115,3 @@ * Return this color (as a new Color instance) with the provided alpha

public toHsl(): { h: number; s: number; l: number; a: number };
/**

@@ -122,3 +122,3 @@ * return the [CSS hsv](https://www.w3schools.com/Css/css_colors_hsl.asp) representation of the color

public toHslString(): string;
/**

@@ -129,3 +129,3 @@ * return the hsv representation of the color

public toHsv(): { h: number; s: number; v: number; a: number };
/**

@@ -149,3 +149,3 @@ * return the [CSS hsv](https://www.w3schools.com/Css/css_colors_rgb.asp) representation of the color

public desaturate(amount: number): Color;
/**

@@ -157,3 +157,3 @@ * Saturate the color a given amount, from 0 to 100.

public saturate(amount: number): Color;
/**

@@ -172,3 +172,3 @@ * Completely desaturates a color into greyscale. Same as calling desaturate(100).

*/
public lighten(amount: number): Color;
public lighten (amount: number): Color;

@@ -187,4 +187,4 @@ /**

*/
public darken(amount: number): Color;
public darken (amount: number): Color;
/**

@@ -202,3 +202,3 @@ * Spin the hue a given amount, from -360 to 360. Calling with 0, 360, or -360 will do nothing (since it sets the hue back to what it was before).

public complement(): Color;
/**

@@ -205,0 +205,0 @@ * returns the color complement

@@ -28,3 +28,2 @@ import { android as androidApp, getNativeApplication } from '../application';

function getNetworkCapabilities() {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore

@@ -37,3 +36,2 @@ const connectivityManager = getConnectivityManager();

}
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore

@@ -87,3 +85,2 @@ const NetworkCapabilities = android.net.NetworkCapabilities;

function startMonitoringLegacy(connectionTypeChangedCallback) {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const onReceiveCallback = function onReceiveCallback(context, intent) {

@@ -94,3 +91,2 @@ const newConnectionType = getConnectionType();

const zoneCallback = zonedCallback(onReceiveCallback);
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore

@@ -118,3 +114,2 @@ androidApp.registerBroadcastReceiver(android.net.ConnectivityManager.CONNECTIVITY_ACTION, zoneCallback);

}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
NetworkCallbackImpl.prototype.onAvailable = function (network) {

@@ -125,3 +120,2 @@ if (notifyCallback) {

};
// eslint-disable-next-line @typescript-eslint/no-unused-vars
NetworkCallbackImpl.prototype.onCapabilitiesChanged = function (network, networkCapabilities) {

@@ -132,3 +126,2 @@ if (notifyCallback) {

};
// eslint-disable-next-line @typescript-eslint/no-unused-vars
NetworkCallbackImpl.prototype.onLost = function (network) {

@@ -158,3 +151,2 @@ if (notifyCallback) {

if (android.os.Build.VERSION.SDK_INT >= 28) {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore

@@ -161,0 +153,0 @@ const manager = getConnectivityManager();

@@ -5,3 +5,2 @@ //Requires

// Use lazy requires for core modules
// eslint-disable-next-line @typescript-eslint/no-var-requires
const getAppRootView = () => require('../application').getRootView();

@@ -11,3 +10,2 @@ let unsetValue;

if (!unsetValue) {
// eslint-disable-next-line @typescript-eslint/no-var-requires
unsetValue = require('../ui/core/properties').unsetValue;

@@ -14,0 +12,0 @@ }

@@ -9,7 +9,4 @@ const registeredDomNodes = {};

}
// eslint-disable-next-line @typescript-eslint/no-var-requires
const percentLengthToStringLazy = lazy(() => require('../ui/styling/style-properties').PercentLength.convertToString);
// eslint-disable-next-line @typescript-eslint/no-var-requires
const getSetPropertiesLazy = lazy(() => require('../ui/core/properties').getSetProperties);
// eslint-disable-next-line @typescript-eslint/no-var-requires
const getComputedCssValuesLazy = lazy(() => require('../ui/core/properties').getComputedCssValues);

@@ -16,0 +13,0 @@ export function registerInspectorEvents(inspector) {

@@ -1,2 +0,1 @@

// eslint-disable-next-line @typescript-eslint/no-var-requires
const inspectorCommands = require('./InspectorBackendCommands');

@@ -3,0 +2,0 @@ import * as debuggerDomains from '.';

@@ -1,2 +0,1 @@

// eslint-disable-next-line @typescript-eslint/no-var-requires
const inspectorCommands = require('./InspectorBackendCommands');

@@ -3,0 +2,0 @@ import * as debuggerDomains from '.';

var NetworkDomainDebugger_1;
// eslint-disable-next-line @typescript-eslint/no-var-requires
const inspectorCommands = require('./InspectorBackendCommands');

@@ -4,0 +3,0 @@ import * as debuggerDomains from '.';

@@ -55,3 +55,3 @@ import { FileSystemAccess } from './file-system-access';

if (!hasError) {
resolve();
resolve(true);
}

@@ -84,3 +84,3 @@ });

if (!hasError) {
resolve();
resolve(true);
}

@@ -278,3 +278,3 @@ });

.then(() => {
resolve();
resolve(true);
this._locked = false;

@@ -341,3 +341,3 @@ }, (error) => {

if (!hasError) {
resolve();
resolve(true);
}

@@ -344,0 +344,0 @@ });

@@ -351,1 +351,31 @@ interface ModuleResolver {

}
/**
* Create a Java long from a number
*/
declare function long(value: number): any;
/**
* Create a Java byte from a number
*/
declare function byte(value: number): any;
/**
* Create a Java short from a number
*/
declare function short(value: number): any;
/**
* Create a Java double from a number
*/
declare function double(value: number): any;
/**
* Create a Java float from a number
*/
declare function float(value: number): any;
/**
* Create a Java char from a string
*/
declare function char(value: string): any;

@@ -1,2 +0,1 @@

// eslint-disable-next-line @typescript-eslint/no-var-requires
const tslib = require('tslib');

@@ -3,0 +2,0 @@ import { Observable } from '../data/observable';

@@ -6,3 +6,3 @@ {

"description": "NativeScript Core Modules",
"version": "8.0.1",
"version": "8.0.3",
"homepage": "https://nativescript.org",

@@ -9,0 +9,0 @@ "repository": {

@@ -28,4 +28,4 @@ {

"androidx.transition*:*",
"android.inputmethodservice*:*"
"android.inputmethodservice*:*"
]
}

@@ -126,3 +126,2 @@ export function uptime() {

try {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const appConfig = require('~/package.json');

@@ -129,0 +128,0 @@ if (appConfig && appConfig.profiling) {

@@ -87,3 +87,2 @@ // Types.

catch (ex) {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const debug = require('../../../utils/debug');

@@ -90,0 +89,0 @@ throw new debug.ScopeError(ex, "Module '" + (resolvedModuleName || elementName) + "' not found for element '" + (namespace ? namespace + ':' : '') + elementName + "'.");

@@ -171,4 +171,4 @@ import { AlignSelf, FlexGrow, FlexShrink, FlexWrapBefore, Order } from '../../layouts/flexbox-layout';

get isLoaded(): boolean;
get class(): string;
set class(v: string);
get ['class'](): string;
set ['class'](v: string);
getViewById<T extends ViewBaseDefinition>(id: string): T;

@@ -175,0 +175,0 @@ getViewByDomId<T extends ViewBaseDefinition>(domId: number): T;

@@ -201,6 +201,6 @@ import { Property, InheritedProperty, clearInheritedProperties, propagateInheritableProperties, propagateInheritableCssProperties, initNativeView } from '../properties';

}
get class() {
get ['class']() {
return this.className;
}
set class(v) {
set ['class'](v) {
this.className = v;

@@ -250,3 +250,3 @@ }

this.suspendRequestLayout = false;
this._emit('loaded');
this._emit(ViewBase.loadedEvent);
}

@@ -253,0 +253,0 @@ onUnloaded() {

@@ -89,3 +89,2 @@ import { Frame } from '../frame';

if (!button) {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const Button = require('../button').Button;

@@ -107,3 +106,2 @@ button = new Button();

if (!label) {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const Label = require('../label').Label;

@@ -123,3 +121,2 @@ label = new Label();

if (!textField) {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const TextField = require('../text-field').TextField;

@@ -126,0 +123,0 @@ textField = new TextField();

import '../../globals';
import { setActivityCallbacks } from '.';
// eslint-disable-next-line @typescript-eslint/no-var-requires
const appModule = require('../../application');

@@ -5,0 +4,0 @@ /**

@@ -248,3 +248,2 @@ var FrameBase_1;

isNestedWithin(parentFrameCandidate) {
// eslint-disable-next-line @typescript-eslint/no-this-alias
let frameAncestor = this;

@@ -251,0 +250,0 @@ while (frameAncestor) {

@@ -12,2 +12,3 @@ // Types.

import { profile } from '../../profiling';
import { android as androidApplication } from '../../application';
export * from './frame-common';

@@ -26,3 +27,2 @@ const ANDROID_PLATFORM = 'android';

if (global && global.__inspector) {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const devtools = require('../../debugger/devtools-elements');

@@ -116,4 +116,5 @@ devtools.attachDOMInspectorEventCallbacks(global.__inspector);

// _onAttachedToWindow called from OS again after it was detach
// TODO: Consider testing and removing it when update to androidx.fragment:1.2.0
if (this._manager && this._manager.isDestroyed()) {
// still happens with androidx.fragment:1.3.2
const activity = androidApplication.foregroundActivity;
if ((this._manager && this._manager.isDestroyed()) || !activity.getLifecycle().getCurrentState().isAtLeast(androidx.lifecycle.Lifecycle.State.STARTED)) {
return;

@@ -141,3 +142,3 @@ }

// https://github.com/NativeScript/NativeScript/commit/9dd3e1a8076e5022e411f2f2eeba34aabc68d112
// though we should not do it on app "start"
// though we should not do it on app "start"
// or it will create a "flash" to activity background color

@@ -144,0 +145,0 @@ if (this._wasReset && !this._attachedToWindow) {

@@ -23,3 +23,2 @@ import { unsetValue, _evaluateCssVariableExpression, _evaluateCssCalcExpression, isCssVariable, isCssVariableExpression, isCssCalcExpression } from '../core/properties';

try {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const appConfig = require('~/package.json');

@@ -26,0 +25,0 @@ if (appConfig) {

@@ -80,2 +80,2 @@ import { View } from '../core/view';

export const iosPreferredDatePickerStyleProperty: Property<TimePicker, number>;
export const iosPreferredDatePickerStyleProperty: Property<TimePicker, number>;
// TODO: Delete `nativescript-core/xml/xml.js` from source control after
// https://github.com/NativeScript/nativescript-dev-webpack/issues/932
// eslint-disable-next-line @typescript-eslint/no-var-requires
const easysax = require('../js-libs/easysax');

@@ -5,0 +4,0 @@ import { EasySAXParser } from '../js-libs/easysax';

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

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

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

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

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