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

nativescript-facebook

Package Overview
Dependencies
Maintainers
8
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-facebook - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

login-behavior.d.ts

6

angular/index.js
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
var nativescript_facebook_module_1 = require("./nativescript-facebook-module");
exports.NativeScriptFacebookModule = nativescript_facebook_module_1.NativeScriptFacebookModule;
__export(require("./nativescript-facebook-module"));

@@ -9,13 +9,8 @@ "use strict";

}());
FacebookLoginButtonDirective.decorators = [
{ type: core_1.Directive, args: [{
selector: "FacebookLoginButton"
},] },
];
FacebookLoginButtonDirective.ctorParameters = function () { return []; };
FacebookLoginButtonDirective = __decorate([
core_1.Directive({
selector: "FacebookLoginButton"
})
], FacebookLoginButtonDirective);
exports.FacebookLoginButtonDirective = FacebookLoginButtonDirective;
function FacebookLoginButtonDirective_tsickle_Closure_declarations() {
FacebookLoginButtonDirective.decorators;
FacebookLoginButtonDirective.ctorParameters;
}
exports.DIRECTIVES = [FacebookLoginButtonDirective];

@@ -11,14 +11,9 @@ "use strict";

}());
NativeScriptFacebookModule.decorators = [
{ type: core_1.NgModule, args: [{
declarations: [nativescript_facebook_directives_1.DIRECTIVES],
exports: [nativescript_facebook_directives_1.DIRECTIVES],
},] },
];
NativeScriptFacebookModule.ctorParameters = function () { return []; };
NativeScriptFacebookModule = __decorate([
core_1.NgModule({
declarations: [nativescript_facebook_directives_1.DIRECTIVES],
exports: [nativescript_facebook_directives_1.DIRECTIVES],
})
], NativeScriptFacebookModule);
exports.NativeScriptFacebookModule = NativeScriptFacebookModule;
function NativeScriptFacebookModule_tsickle_Closure_declarations() {
NativeScriptFacebookModule.decorators;
NativeScriptFacebookModule.ctorParameters;
}
element_registry_1.registerElement("FacebookLoginButton", function () { return require("../").LoginButton; });
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
var login_manager_1 = require("./login-manager");
exports._registerLoginCallback = login_manager_1._registerLoginCallback;
exports._registerLogoutCallback = login_manager_1._registerLogoutCallback;
exports.onLoginCallback = login_manager_1.onLoginCallback;
exports.onLogoutCallback = login_manager_1.onLogoutCallback;
exports.init = login_manager_1.init;
exports.requestPublishPermissions = login_manager_1.requestPublishPermissions;
exports.requestReadPermissions = login_manager_1.requestReadPermissions;
exports.login = login_manager_1.login;
exports.logout = login_manager_1.logout;
var login_button_1 = require("./login-button");
exports.LoginButton = login_button_1.LoginButton;
__export(require("./login-manager"));
__export(require("./login-button"));
__export(require("./login-behavior"));

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

[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./login-manager"},{"from":"./login-button"},{"from":"./login-event-data"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./login-manager"},{"from":"./login-button"},{"from":"./login-event-data"}]}]
[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./login-manager"},{"from":"./login-button"},{"from":"./login-event-data"},{"from":"./login-behavior"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./login-manager"},{"from":"./login-button"},{"from":"./login-event-data"},{"from":"./login-behavior"}]}]

@@ -5,1 +5,2 @@ export * from "./login-manager";

export * from "./login-event-data";
export * from "./login-behavior";
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
var applicationModule = require("tns-core-modules/application");
var login_button_1 = require("./login-button");
exports.LoginButton = login_button_1.LoginButton;
var login_manager_1 = require("./login-manager");
exports._registerLoginCallback = login_manager_1._registerLoginCallback;
exports._registerLogoutCallback = login_manager_1._registerLogoutCallback;
exports.onLoginCallback = login_manager_1.onLoginCallback;
exports.onLogoutCallback = login_manager_1.onLogoutCallback;
exports.init = login_manager_1.init;
exports.requestPublishPermissions = login_manager_1.requestPublishPermissions;
exports.requestReadPermissions = login_manager_1.requestReadPermissions;
exports.login = login_manager_1.login;
exports.logout = login_manager_1.logout;
__export(require("./login-button"));
__export(require("./login-manager"));
__export(require("./login-behavior"));
var BaseDelegate = (function (_super) {

@@ -33,5 +27,2 @@ __extends(BaseDelegate, _super);

BaseDelegate.ObjCProtocols = [UIApplicationDelegate];
function BaseDelegate_tsickle_Closure_declarations() {
BaseDelegate.ObjCProtocols;
}
applicationModule.ios.delegate = BaseDelegate;

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

[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./login-button"},{"from":"./login-manager"},{"from":"./login-event-data"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./login-button"},{"from":"./login-manager"},{"from":"./login-event-data"}]}]
[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./login-button"},{"from":"./login-manager"},{"from":"./login-event-data"},{"from":"./login-behavior"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./login-button"},{"from":"./login-manager"},{"from":"./login-event-data"},{"from":"./login-behavior"}]}]

@@ -13,6 +13,6 @@ "use strict";

loginManager._registerLoginCallback(function (error, loginResponse) {
_this.notify(({ eventName: LoginButtonBase.loginEvent, object: _this, error: error, loginResponse: loginResponse }));
_this.notify({ eventName: LoginButtonBase.loginEvent, object: _this, error: error, loginResponse: loginResponse });
});
loginManager._registerLogoutCallback(function () {
_this.notify(({ eventName: LoginButtonBase.logoutEvent, object: _this }));
_this.notify({ eventName: LoginButtonBase.logoutEvent, object: _this });
});

@@ -25,5 +25,1 @@ };

exports.LoginButtonBase = LoginButtonBase;
function LoginButtonBase_tsickle_Closure_declarations() {
LoginButtonBase.loginEvent;
LoginButtonBase.logoutEvent;
}

@@ -24,6 +24,2 @@ "use strict";

exports.LoginButton = LoginButton;
function LoginButton_tsickle_Closure_declarations() {
LoginButton.prototype.nativeView;
LoginButton.prototype._localDelegate;
}
var LoginButtonDelegate = (function (_super) {

@@ -50,4 +46,1 @@ __extends(LoginButtonDelegate, _super);

LoginButtonDelegate.ObjCProtocols = [FBSDKLoginButtonDelegate];
function LoginButtonDelegate_tsickle_Closure_declarations() {
LoginButtonDelegate.ObjCProtocols;
}

@@ -5,2 +5,3 @@ export declare function _registerLoginCallback(callback: Function): void;

export declare let onLogoutCallback: Function;
import { LoginBehavior } from "./login-behavior";

@@ -10,4 +11,5 @@ /**

* @param {string} fbAppId the application Id
* @param {LoginBehavior} fbLoginBehavior (iOS only) specifies the login behavior, default value: LoginBehavior.FBSDKLoginBehaviorSystemAccount
*/
export declare function init(fbId: string): void;
export declare function init(fbId: string, fbLoginBehavior?: LoginBehavior): void;
/**

@@ -14,0 +16,0 @@ * Request the specified publish permissions.

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var login_response_1 = require("./login-response");
var FB_LOGIN_BEHAVIOUR = 2;
var login_behavior_1 = require("./login-behavior");
var LOGIN_PERMISSIONS = ["public_profile", "email"];
var loginManager;
function init(fbId) {
function init(fbId, fbLoginBehavior) {
if (fbLoginBehavior === void 0) { fbLoginBehavior = login_behavior_1.LoginBehavior.LoginBehaviorBrowser; }
setAppId(fbId);
loginManager = FBSDKLoginManager.alloc().init();
loginManager.loginBehavior = FB_LOGIN_BEHAVIOUR;
loginManager.loginBehavior = fbLoginBehavior;
}

@@ -12,0 +13,0 @@ exports.init = init;

@@ -10,4 +10,1 @@ "use strict";

exports.LoginResponse = LoginResponse;
function LoginResponse_tsickle_Closure_declarations() {
LoginResponse.prototype.token;
}
{
"name": "nativescript-facebook",
"version": "2.0.1",
"version": "2.1.0",
"description": "NativeScript plugin, wrapper of native Facebook SDK for Adroid and iOS.",

@@ -14,11 +14,3 @@ "nativescript": {

"build": "npm i && tsc && npm run ngc",
"ci.tslint": "tslint *.ts && tslint ../demo/app/*.ts && tslint ../demo-angular/app/*.ts",
"ci.android": "npm run build && cd ../demo && tns build android",
"ci.ios": "npm run build && cd ../demo && tns build ios",
"ci.test.ios": "npm run build && cd ../demo && tns platform remove ios && tns test ios",
"ci.test.android": "npm run build && cd ../demo && tns platform remove android && tns test android",
"ci.test.ios.angular": "npm run build && cd ../demo-angular && tns platform remove ios && tns test ios",
"ci.test.android.angular": "npm run build && cd ../demo-angular && tns platform remove android",
"ci.uitest.ios": "cd ../demo && npm run appium --runtype=ios-simulator10",
"ci.uitest.android": "cd ../demo && npm run appium --runtype=android23",
"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'",
"prepublishOnly": "npm run build"

@@ -42,3 +34,4 @@ },

},
"maintainers": [{
"maintainers": [
{
"name": "angeltsvetkov",

@@ -68,7 +61,5 @@ "email": "angel.tsvetkov@progress.com"

"rxjs": "~5.3.0",
"zone.js": "~0.8.4"
},
"peerDependencies": {
"tns-core-modules": "^3.0.0"
"zone.js": "~0.8.4",
"tslint": "~5.4.3"
}
}
}

@@ -19,18 +19,19 @@ NativeScript : Facebook SDK ![apple](https://cdn3.iconfinder.com/data/icons/picons-social/57/16-apple-32.png) ![android](https://cdn4.iconfinder.com/data/icons/logos-3/228/android-32.png)

- [iOS](#ios)
- [NativeScript Core](#nativescript-core)
- [Initialization](#initialization)
- [Login](#login)
- [Facebook Login Button](#facebook-login-button)
- [Custom Login Button](#custom-login-button)
- [Log out](#log-out)
- [Facebook Logout Button](#facebook-logout-button)
- [Custom Logout Button](#custom-logout-button)
- [NativeScript Angular](#nativescript-angular)
- [Initialization](#initialization-1)
- [Login](#login-1)
- [Facebook Login Button](#facebook-login-button-1)
- [Custom Login Button](#custom-login-button-1)
- [Logout](#logout)
- [Facebook Logout Button](#facebook-logout-button-1)
- [Custom Logout Button](#custom-logout-button-1)
- [Usage](#usage)
- [NativeScript Core](#nativescript-core)
- [Initialization](#initialization)
- [Login](#login)
- [Facebook Login Button](#facebook-login-button)
- [Custom Login Button](#custom-login-button)
- [Log out](#log-out)
- [Facebook Logout Button](#facebook-logout-button)
- [Custom Logout Button](#custom-logout-button)
- [NativeScript Angular](#nativescript-angular)
- [Initialization](#initialization-1)
- [Login](#login-1)
- [Facebook Login Button](#facebook-login-button-1)
- [Custom Login Button](#custom-login-button-1)
- [Logout](#logout)
- [Facebook Logout Button](#facebook-logout-button-1)
- [Custom Logout Button](#custom-logout-button-1)
- [Login Response](#login-response)

@@ -83,2 +84,3 @@ - [Graph API Example](#graph-api-example)

# Usage
## NativeScript Core

@@ -85,0 +87,0 @@ ### Initialization

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