New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nativescript-community/perms

Package Overview
Dependencies
Maintainers
6
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nativescript-community/perms - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [2.1.1](https://github.com/farfromrefug/nativescript-perms/compare/v2.1.0...v2.1.1) (2020-09-17)
**Note:** Version bump only for package @nativescript-community/perms
# [2.1.0](https://github.com/farfromrefug/nativescript-perms/compare/v2.0.11...v2.1.0) (2020-09-06)

@@ -8,0 +16,0 @@

4

package.json
{
"name": "@nativescript-community/perms",
"version": "2.1.0",
"version": "2.1.1",
"description": "Nativescript Permissions plugin.",

@@ -30,3 +30,3 @@ "main": "./permissions",

"readmeFilename": "README.md",
"gitHead": "f9ce83627287f6f7ccd303aa429e4ed679cbe4e1"
"gitHead": "ac5723a0ab20783a16c3f1ae84cabdbc2a2e6c3a"
}

@@ -44,36 +44,44 @@ import { CLog, CLogTypes } from './permissions.common';

let locationManagerDelegate;
class CLLocationManagerDelegateImpl extends NSObject {
addSubDelegate(delegate) {
if (!this.subDelegates) {
this.subDelegates = [];
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CLLocationManagerDelegateImpl = void 0;
var CLLocationManagerDelegateImpl = /** @class */ (function (_super) {
__extends(CLLocationManagerDelegateImpl, _super);
function CLLocationManagerDelegateImpl() {
return _super !== null && _super.apply(this, arguments) || this;
}
CLLocationManagerDelegateImpl.prototype.addSubDelegate = function (delegate) {
if (!this.subDelegates) {
this.subDelegates = [];
}
var index = this.subDelegates.indexOf(delegate);
if (index === -1) {
this.subDelegates.push(delegate);
}
};
CLLocationManagerDelegateImpl.prototype.removeSubDelegate = function (delegate) {
var index = this.subDelegates.indexOf(delegate);
if (index !== -1) {
this.subDelegates.splice(index, 1);
}
};
CLLocationManagerDelegateImpl.new = function () {
return _super.new.call(this);
};
CLLocationManagerDelegateImpl.prototype.initDelegate = function () {
this.subDelegates = [];
return this;
};
CLLocationManagerDelegateImpl.prototype.locationManagerDidChangeAuthorizationStatus = function (manager, status) {
this.subDelegates &&
this.subDelegates.forEach(function (d) {
if (d.locationManagerDidChangeAuthorizationStatus) {
d.locationManagerDidChangeAuthorizationStatus(manager, status);
}
const index = this.subDelegates.indexOf(delegate);
if (index === -1) {
this.subDelegates.push(delegate);
}
}
removeSubDelegate(delegate) {
const index = this.subDelegates.indexOf(delegate);
if (index !== -1) {
this.subDelegates.splice(index, 1);
}
}
static new() {
return super.new();
}
initDelegate() {
this.subDelegates = [];
return this;
}
locationManagerDidChangeAuthorizationStatus(manager, status) {
this.subDelegates &&
this.subDelegates.forEach(d => {
if (d.locationManagerDidChangeAuthorizationStatus) {
d.locationManagerDidChangeAuthorizationStatus(manager, status);
}
});
}
}
CLLocationManagerDelegateImpl.ObjCProtocols = [CLLocationManagerDelegate];
NSPLocation.CLLocationManagerDelegateImpl = CLLocationManagerDelegateImpl;
});
};
CLLocationManagerDelegateImpl.ObjCProtocols = [CLLocationManagerDelegate];
return CLLocationManagerDelegateImpl;
}(NSObject));
exports.CLLocationManagerDelegateImpl = CLLocationManagerDelegateImpl;
function request(type) {

@@ -158,32 +166,40 @@ const status = getStatusForType(type);

NSPBluetooth.getStatus = getStatus;
class CBPeripheralManagerDelegateImpl extends NSObject {
addSubDelegate(delegate) {
const index = this.subDelegates.indexOf(delegate);
if (index === -1) {
this.subDelegates.push(delegate);
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CBPeripheralManagerDelegateImpl = void 0;
var CBPeripheralManagerDelegateImpl = /** @class */ (function (_super) {
__extends(CBPeripheralManagerDelegateImpl, _super);
function CBPeripheralManagerDelegateImpl() {
return _super !== null && _super.apply(this, arguments) || this;
}
CBPeripheralManagerDelegateImpl.prototype.addSubDelegate = function (delegate) {
var index = this.subDelegates.indexOf(delegate);
if (index === -1) {
this.subDelegates.push(delegate);
}
};
CBPeripheralManagerDelegateImpl.prototype.removeSubDelegate = function (delegate) {
var index = this.subDelegates.indexOf(delegate);
if (index !== -1) {
this.subDelegates.splice(index, 1);
}
};
CBPeripheralManagerDelegateImpl.new = function () {
return _super.new.call(this);
};
CBPeripheralManagerDelegateImpl.prototype.initDelegate = function () {
this.subDelegates = [];
return this;
};
CBPeripheralManagerDelegateImpl.prototype.peripheralManagerDidUpdateState = function (peripheralManager) {
this.subDelegates.forEach(function (d) {
if (d.peripheralManagerDidUpdateState) {
d.peripheralManagerDidUpdateState(peripheralManager);
}
removeSubDelegate(delegate) {
const index = this.subDelegates.indexOf(delegate);
if (index !== -1) {
this.subDelegates.splice(index, 1);
}
}
static new() {
return super.new();
}
initDelegate() {
this.subDelegates = [];
return this;
}
peripheralManagerDidUpdateState(peripheralManager) {
this.subDelegates.forEach(d => {
if (d.peripheralManagerDidUpdateState) {
d.peripheralManagerDidUpdateState(peripheralManager);
}
});
}
}
CBPeripheralManagerDelegateImpl.ObjCProtocols = [CBPeripheralManagerDelegate];
NSPBluetooth.CBPeripheralManagerDelegateImpl = CBPeripheralManagerDelegateImpl;
});
};
CBPeripheralManagerDelegateImpl.ObjCProtocols = [CBPeripheralManagerDelegate];
return CBPeripheralManagerDelegateImpl;
}(NSObject));
exports.CBPeripheralManagerDelegateImpl = CBPeripheralManagerDelegateImpl;
let peripheralManager;

@@ -190,0 +206,0 @@ function request() {

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