primo-explore-dom
Advanced tools
Comparing version 0.0.9 to 0.0.10
{ | ||
"name": "primo-explore-dom", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "A simple Domain Object Model for Primo 5", | ||
@@ -5,0 +5,0 @@ "main": "js/custom.js", |
### This is a __pre-release__: you can help us make it better. | ||
### Current version 0.0.10 | ||
- can retrieve controller without scope() | ||
### Current version 0.0.9 | ||
@@ -11,3 +14,3 @@ - extracted ui to its own project [primo-explore-dom-ui](https://github.com/mehmetc/primo-explore-dom-ui) | ||
- Better check if reloadWithDebugInfo() was ran | ||
- explorer UI popups automatically when Primo UI is loaded with angular.reloadWithDebugInfo() | ||
- explorer UI pops up automatically when Primo UI is loaded with angular.reloadWithDebugInfo() | ||
- some general refactoring | ||
@@ -76,3 +79,3 @@ - fixed an issue that would prevent explore.ui.toggle() from running twice | ||
//Get a pointer to AngularJs and angularLoad | ||
var appInjector = angular.injector(['ng','angularLoad']) | ||
var appInjector = angular.injector(['ng','angularLoad']); | ||
//Get a reference to angularLoad | ||
@@ -85,7 +88,2 @@ var angularLoad = appInjector.get('angularLoad'); | ||
//activate explorer ui | ||
Primo.explore.ui.toggle(); | ||
//Print the VID | ||
Primo.view.then(v => console.log(v.code)); | ||
``` | ||
@@ -156,2 +154,7 @@ | ||
``` | ||
### Print number of loans for user | ||
```js | ||
Primo.user.then(user => console.log(user.loans.length)) | ||
``` | ||
## view<a name="view"></a> | ||
@@ -282,2 +285,6 @@ ```Primo.view``` returns a promise | ||
``` | ||
### Reference to angular-load. Returns a promise | ||
```js | ||
Primo.explore.helper.loadScript() | ||
``` | ||
### Reference to PrimoExplore rootScope | ||
@@ -298,3 +305,13 @@ ```js | ||
Primo.explore.helper.userDetails() | ||
Primo.explore.helper.userDetailsHTTP() | ||
``` | ||
### Returns a promise to userFines | ||
```js | ||
Primo.explore.helper.userFinesHTTP() | ||
``` | ||
### Returns a promise to userLoans | ||
```js | ||
Primo.explore.helper.userLoansHTTP() | ||
``` | ||
### Make a component blink | ||
@@ -301,0 +318,0 @@ ```js |
Sorry, the diff of this file is too big to display
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
749827
9146
339
5