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.2.2 to 2.2.3

2

angular/index.metadata.json

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

[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./nativescript-facebook-module"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./nativescript-facebook-module"}]}]
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./nativescript-facebook-module"}]}]

@@ -7,15 +7,10 @@ "use strict";

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

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

[{"__symbolic":"module","version":3,"metadata":{"FacebookLoginButtonDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"FacebookLoginButton"}]}]},"DIRECTIVES":[{"__symbolic":"reference","name":"FacebookLoginButtonDirective"}]}},{"__symbolic":"module","version":1,"metadata":{"FacebookLoginButtonDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"FacebookLoginButton"}]}]},"DIRECTIVES":[{"__symbolic":"reference","name":"FacebookLoginButtonDirective"}]}}]
[{"__symbolic":"module","version":4,"metadata":{"FacebookLoginButtonDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":2,"character":1},"arguments":[{"selector":"FacebookLoginButton"}]}]},"DIRECTIVES":[{"__symbolic":"reference","name":"FacebookLoginButtonDirective"}]}}]

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

}
NativeScriptFacebookModule.decorators = [
{ type: core_1.NgModule, args: [{
declarations: [nativescript_facebook_directives_1.DIRECTIVES],
exports: [nativescript_facebook_directives_1.DIRECTIVES],
},] },
];
return NativeScriptFacebookModule;
}());
NativeScriptFacebookModule.decorators = [
{ type: core_1.NgModule, args: [{
declarations: [nativescript_facebook_directives_1.DIRECTIVES],
exports: [nativescript_facebook_directives_1.DIRECTIVES],
},] },
];
NativeScriptFacebookModule.ctorParameters = function () { return []; };
exports.NativeScriptFacebookModule = NativeScriptFacebookModule;
function NativeScriptFacebookModule_tsickle_Closure_declarations() {
NativeScriptFacebookModule.decorators;
NativeScriptFacebookModule.ctorParameters;
}
element_registry_1.registerElement("FacebookLoginButton", function () { return require("../").LoginButton; });

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

[{"__symbolic":"module","version":3,"metadata":{"NativeScriptFacebookModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./nativescript-facebook-directives","name":"DIRECTIVES"}],"exports":[{"__symbolic":"reference","module":"./nativescript-facebook-directives","name":"DIRECTIVES"}]}]}]}}},{"__symbolic":"module","version":1,"metadata":{"NativeScriptFacebookModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./nativescript-facebook-directives","name":"DIRECTIVES"}],"exports":[{"__symbolic":"reference","module":"./nativescript-facebook-directives","name":"DIRECTIVES"}]}]}]}}}]
[{"__symbolic":"module","version":4,"metadata":{"NativeScriptFacebookModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./nativescript-facebook-directives","name":"DIRECTIVES","line":6,"character":19}],"exports":[{"__symbolic":"reference","module":"./nativescript-facebook-directives","name":"DIRECTIVES","line":7,"character":14}]}]}]}}}]

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

[{"__symbolic":"module","version":3,"metadata":{"FacebookAccessToken":{"__symbolic":"class"}}},{"__symbolic":"module","version":1,"metadata":{"FacebookAccessToken":{"__symbolic":"class"}}}]
[{"__symbolic":"module","version":4,"metadata":{"FacebookAccessToken":{"__symbolic":"class"}}}]

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

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

@@ -33,5 +33,5 @@ "use strict";

};
BaseDelegate.ObjCProtocols = [UIApplicationDelegate];
return BaseDelegate;
}(UIResponder));
BaseDelegate.ObjCProtocols = [UIApplicationDelegate];
function BaseDelegate_tsickle_Closure_declarations() {

@@ -38,0 +38,0 @@ BaseDelegate.ObjCProtocols;

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

[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./ui/login-button"},{"from":"./login-manager"},{"from":"./login-event-data"},{"from":"./login-behavior"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./ui/login-button"},{"from":"./login-manager"},{"from":"./login-event-data"},{"from":"./login-behavior"}]}]
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./ui/login-button"},{"from":"./login-manager"},{"from":"./login-event-data"},{"from":"./login-behavior"}]}]
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LoginBehavior = {};
exports.LoginBehavior.LoginBehaviorNative = 0;
exports.LoginBehavior.LoginBehaviorBrowser = 1;
exports.LoginBehavior.LoginBehaviorSystemAccount = 2;
exports.LoginBehavior.LoginBehaviorWeb = 3;
exports.LoginBehavior[exports.LoginBehavior.LoginBehaviorNative] = "LoginBehaviorNative";
exports.LoginBehavior[exports.LoginBehavior.LoginBehaviorBrowser] = "LoginBehaviorBrowser";
exports.LoginBehavior[exports.LoginBehavior.LoginBehaviorSystemAccount] = "LoginBehaviorSystemAccount";
exports.LoginBehavior[exports.LoginBehavior.LoginBehaviorWeb] = "LoginBehaviorWeb";
var LoginBehavior = {
LoginBehaviorNative: 0,
LoginBehaviorBrowser: 1,
LoginBehaviorSystemAccount: 2,
LoginBehaviorWeb: 3,
};
exports.LoginBehavior = LoginBehavior;
LoginBehavior[LoginBehavior.LoginBehaviorNative] = "LoginBehaviorNative";
LoginBehavior[LoginBehavior.LoginBehaviorBrowser] = "LoginBehaviorBrowser";
LoginBehavior[LoginBehavior.LoginBehaviorSystemAccount] = "LoginBehaviorSystemAccount";
LoginBehavior[LoginBehavior.LoginBehaviorWeb] = "LoginBehaviorWeb";

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

[{"__symbolic":"module","version":3,"metadata":{"LoginBehavior":{"LoginBehaviorNative":0,"LoginBehaviorBrowser":1,"LoginBehaviorSystemAccount":2,"LoginBehaviorWeb":3}}},{"__symbolic":"module","version":1,"metadata":{"LoginBehavior":{"LoginBehaviorNative":0,"LoginBehaviorBrowser":1,"LoginBehaviorSystemAccount":2,"LoginBehaviorWeb":3}}}]
[{"__symbolic":"module","version":4,"metadata":{"LoginBehavior":{"LoginBehaviorNative":0,"LoginBehaviorBrowser":1,"LoginBehaviorSystemAccount":2,"LoginBehaviorWeb":3}}}]
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function LoginEventData() { }
exports.LoginEventData = LoginEventData;
function LoginEventData_tsickle_Closure_declarations() {
LoginEventData.prototype.error;
LoginEventData.prototype.loginResponse;
}

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

[{"__symbolic":"module","version":3,"metadata":{"LoginEventData":{"__symbolic":"interface"}}},{"__symbolic":"module","version":1,"metadata":{"LoginEventData":{"__symbolic":"interface"}}}]
[{"__symbolic":"module","version":4,"metadata":{"LoginEventData":{"__symbolic":"interface"}}}]

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

var facebook_access_token_1 = require("./facebook-access-token");
var login_behavior_1 = require("./login-behavior");
var LOGIN_PERMISSIONS = ["public_profile", "email"];

@@ -15,3 +16,4 @@ var androidApplication;

exports._registerLogoutCallback = _registerLogoutCallback;
function init(fbId) {
function init(fbId, fbLoginBehavior) {
if (fbLoginBehavior === void 0) { fbLoginBehavior = login_behavior_1.LoginBehavior.LoginBehaviorBrowser; }
com.facebook.FacebookSdk.setAutoLogAppEventsEnabled(true);

@@ -24,3 +26,3 @@ setAppId(fbId);

catch (e) {
console.log("nativescript-facebook: The plugin could not find the android library, try to clean the android platform");
console.log(e);
}

@@ -27,0 +29,0 @@ loginManager = com.facebook.login.LoginManager.getInstance();

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

[{"__symbolic":"module","version":3,"metadata":{"onLogoutCallback":{"__symbolic":"error","message":"Variable not initialized","line":7,"character":11},"_registerLogoutCallback":{"__symbolic":"function"},"init":{"__symbolic":"function"},"_registerLoginCallback":{"__symbolic":"function"},"requestPublishPermissions":{"__symbolic":"function"},"requestReadPermissions":{"__symbolic":"function"},"login":{"__symbolic":"function"},"getCurrentAccessToken":{"__symbolic":"function"},"logout":{"__symbolic":"function"}}},{"__symbolic":"module","version":1,"metadata":{"onLogoutCallback":{"__symbolic":"error","message":"Variable not initialized","line":7,"character":11},"_registerLogoutCallback":{"__symbolic":"function"},"init":{"__symbolic":"function"},"_registerLoginCallback":{"__symbolic":"function"},"requestPublishPermissions":{"__symbolic":"function"},"requestReadPermissions":{"__symbolic":"function"},"login":{"__symbolic":"function"},"getCurrentAccessToken":{"__symbolic":"function"},"logout":{"__symbolic":"function"}}}]
[{"__symbolic":"module","version":4,"metadata":{"onLogoutCallback":{"__symbolic":"error","message":"Variable not initialized","line":8,"character":11},"_registerLogoutCallback":{"__symbolic":"function"},"init":{"__symbolic":"function"},"_registerLoginCallback":{"__symbolic":"function"},"requestPublishPermissions":{"__symbolic":"function"},"requestReadPermissions":{"__symbolic":"function"},"login":{"__symbolic":"function"},"getCurrentAccessToken":{"__symbolic":"function"},"logout":{"__symbolic":"function"}}}]

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

[{"__symbolic":"module","version":3,"metadata":{"onLoginCallback":{"__symbolic":"error","message":"Variable not initialized","line":17,"character":11},"onLogoutCallback":{"__symbolic":"error","message":"Variable not initialized","line":18,"character":11},"init":{"__symbolic":"function"},"_registerLogoutCallback":{"__symbolic":"function"},"_registerLoginCallback":{"__symbolic":"function"},"requestPublishPermissions":{"__symbolic":"function"},"requestReadPermissions":{"__symbolic":"function"},"login":{"__symbolic":"function"},"getCurrentAccessToken":{"__symbolic":"function"},"logout":{"__symbolic":"function"}}},{"__symbolic":"module","version":1,"metadata":{"onLoginCallback":{"__symbolic":"error","message":"Variable not initialized","line":17,"character":11},"onLogoutCallback":{"__symbolic":"error","message":"Variable not initialized","line":18,"character":11},"init":{"__symbolic":"function"},"_registerLogoutCallback":{"__symbolic":"function"},"_registerLoginCallback":{"__symbolic":"function"},"requestPublishPermissions":{"__symbolic":"function"},"requestReadPermissions":{"__symbolic":"function"},"login":{"__symbolic":"function"},"getCurrentAccessToken":{"__symbolic":"function"},"logout":{"__symbolic":"function"}}}]
[{"__symbolic":"module","version":4,"metadata":{"onLoginCallback":{"__symbolic":"error","message":"Variable not initialized","line":17,"character":11},"onLogoutCallback":{"__symbolic":"error","message":"Variable not initialized","line":18,"character":11},"init":{"__symbolic":"function"},"_registerLogoutCallback":{"__symbolic":"function"},"_registerLoginCallback":{"__symbolic":"function"},"requestPublishPermissions":{"__symbolic":"function"},"requestReadPermissions":{"__symbolic":"function"},"login":{"__symbolic":"function"},"getCurrentAccessToken":{"__symbolic":"function"},"logout":{"__symbolic":"function"}}}]

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

[{"__symbolic":"module","version":3,"metadata":{"LoginResponse":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"}]}]}}}},{"__symbolic":"module","version":1,"metadata":{"LoginResponse":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"}]}]}}}}]
[{"__symbolic":"module","version":4,"metadata":{"LoginResponse":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"}]}]}}}}]
{
"name": "nativescript-facebook",
"version": "2.2.2",
"version": "2.2.3",
"description": "NativeScript plugin, wrapper of native Facebook SDK for Adroid and iOS.",

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

"ngc": "node --max-old-space-size=8192 ./node_modules/.bin/ngc",
"build": "npm i && tsc && npm run ngc",
"build": "npm i && tsc && tns plugin build && npm run ngc",
"build.iosOnly": "npm i && tsc && npm run ngc",
"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'",

@@ -55,14 +56,15 @@ "prepublishOnly": "npm run build",

"license": "Apache 2.0",
"typings": "index.d.ts",
"homepage": "https://github.com/NativeScript/nativescript-facebook",
"readmeFilename": "README.md",
"devDependencies": {
"tns-core-modules": "^3.0.0",
"tns-platform-declarations": "^3.0.0",
"typescript": "~2.2.2",
"nativescript-angular": "^3.0.0 || ^2.0.0-rc.1",
"@angular/core": "~4.0.1",
"@angular/common": "~4.0.1",
"@angular/compiler": "~4.0.1",
"@angular/compiler-cli": "~4.0.1",
"rxjs": "~5.3.0",
"tns-core-modules": "^4.0.0",
"tns-platform-declarations": "^4.0.0",
"typescript": "~2.7.2",
"nativescript-angular": "~6.0.6",
"@angular/core": "~6.0.6",
"@angular/common": "~6.0.6",
"@angular/compiler": "~6.0.6",
"@angular/compiler-cli": "~6.0.6",
"rxjs": "5.4.2",
"zone.js": "~0.8.4",

@@ -69,0 +71,0 @@ "tslint": "~5.4.3"

@@ -263,2 +263,3 @@ 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)

import { NativeScriptModule } from "nativescript-angular/nativescript.module";
import { NativeScriptFacebookModule } from "nativescript-facebook/angular";

@@ -271,2 +272,13 @@ let nsFacebook = require('nativescript-facebook');

...
@NgModule({
...
imports: [
AppRoutingModule,
NativeScriptModule,
NativeScriptFacebookModule,
...
],
...
})
...
```

@@ -273,0 +285,0 @@

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

[{"__symbolic":"module","version":3,"metadata":{"LoginButton":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./login-button.common","name":"LoginButtonBase"},"members":{"createNativeView":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"LoginButton":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./login-button.common","name":"LoginButtonBase"},"members":{"createNativeView":[{"__symbolic":"method"}]}}}}]
[{"__symbolic":"module","version":4,"metadata":{"LoginButton":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./login-button.common","name":"LoginButtonBase","line":6,"character":33},"members":{"createNativeView":[{"__symbolic":"method"}]}}}}]

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

};
LoginButtonBase.loginEvent = "login";
LoginButtonBase.logoutEvent = "logout";
return LoginButtonBase;
}(view_1.View));
LoginButtonBase.loginEvent = "login";
LoginButtonBase.logoutEvent = "logout";
exports.LoginButtonBase = LoginButtonBase;

@@ -25,0 +25,0 @@ function LoginButtonBase_tsickle_Closure_declarations() {

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

[{"__symbolic":"module","version":3,"metadata":{"LoginButtonBase":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"tns-core-modules/ui/core/view","name":"View"},"members":{"initNativeView":[{"__symbolic":"method"}]},"statics":{"loginEvent":"login","logoutEvent":"logout"}}}},{"__symbolic":"module","version":1,"metadata":{"LoginButtonBase":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"tns-core-modules/ui/core/view","name":"View"},"members":{"initNativeView":[{"__symbolic":"method"}]},"statics":{"loginEvent":"login","logoutEvent":"logout"}}}}]
[{"__symbolic":"module","version":4,"metadata":{"LoginButtonBase":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"tns-core-modules/ui/core/view","name":"View","line":6,"character":46},"members":{"initNativeView":[{"__symbolic":"method"}]},"statics":{"loginEvent":"login","logoutEvent":"logout"}}}}]

@@ -46,7 +46,7 @@ "use strict";

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

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

[{"__symbolic":"module","version":3,"metadata":{"LoginButton":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./login-button.common","name":"LoginButtonBase"},"members":{"__ctor__":[{"__symbolic":"constructor"}],"onLoaded":[{"__symbolic":"method"}],"onUnloaded":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"LoginButton":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./login-button.common","name":"LoginButtonBase"},"members":{"__ctor__":[{"__symbolic":"constructor"}],"onLoaded":[{"__symbolic":"method"}],"onUnloaded":[{"__symbolic":"method"}]}}}}]
[{"__symbolic":"module","version":4,"metadata":{"LoginButton":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./login-button.common","name":"LoginButtonBase","line":7,"character":33},"members":{"__ctor__":[{"__symbolic":"constructor"}],"onLoaded":[{"__symbolic":"method"}],"onUnloaded":[{"__symbolic":"method"}]}}}}]

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