nativescript-vibrate
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "nativescript-vibrate", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A vibrate NativeScript plugin for Android and iOS", | ||
@@ -5,0 +5,0 @@ "main": "vibrate", |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var vibrate_common_1 = require("./vibrate.common"); | ||
var app = require("tns-core-modules/application"); | ||
var Vibrate = (function (_super) { | ||
@@ -22,4 +23,5 @@ __extends(Vibrate, _super); | ||
else { | ||
var pattern_1 = Array.create('long', param.length); | ||
pattern_1.forEach(function (element, index) { pattern_1[index] = element; }); | ||
var patternLength = param.length; | ||
var pattern_1 = Array.create('long', patternLength); | ||
param.forEach(function (value, index) { pattern_1[index] = value; }); | ||
this.service.vibrate(pattern_1, repeat); | ||
@@ -26,0 +28,0 @@ } |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
41789
20
535