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

ngliferayservices-generator

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngliferayservices-generator - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "ngliferayservices-generator",
"version": "0.0.2",
"version": "0.0.3",
"description": "Module to generate $http based services from liferay jsonws",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -910,12 +910,17 @@ (function(window, angular, $, Liferay, undefined) {

R.get = function(key) {
R.get = function(key, extraParams) {
var deferred = $q.defer(),
val = cache[key];
val = !extraParams && cache[key];
if (val) {
deferred.resolve(val);
} else {
R._get(url + key, {
var serializeExtraParams = extraParams ? angular.isArray(extraParams) ? extraParams.join("/") : extraParams : "";
R._get(url + key + "/" + serializeExtraParams, {
p_auth: ngLiferayAuth.authToken
}).then(function(val) {
cache[key] = val;
if (!extraParams) {
cache[key] = val;
}
deferred.resolve(val);

@@ -931,2 +936,3 @@ });

module

@@ -933,0 +939,0 @@ .factory('ngLiferayAuth', function() {

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