Socket
Socket
Sign inDemoInstall

availity-angular

Package Overview
Dependencies
25
Maintainers
13
Versions
54
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.2.0 to 4.2.1

12

CHANGELOG.md

@@ -0,5 +1,11 @@

<a name="4.2.1"></a>
# [4.2.1](https://github.com/Availity/availity-angular/compare/v4.2.0...v4.2.1) (2023-01-20)
### Features
* create blacklist to limit logs
<a name="4.2.0"></a>
# [4.2.0](https://github.com/Availity/availity-angular/compare/v4.1.2...v4.2.0) (2021-04-14)
### Features

@@ -10,3 +16,7 @@

<a name="4.1.3"></a>
## [4.1.3](https://github.com/Availity/availity-angular/compare/v4.1.2...v4.1.3) (2021-04-14)
<a name="4.1.2"></a>

@@ -13,0 +23,0 @@ ## [4.1.2](https://github.com/Availity/availity-angular/compare/v4.1.1...v4.1.2) (2021-04-13)

4

dist/js/vendor.js
/*!
*
* availity-angular v4.2.0 (04/14/2021)
* availity-angular v4.2.1 (01/20/2023)
* (c) Availity, LLC

@@ -8,3 +8,3 @@ */

*
* availity-angular v4.2.0 (04/14/2021)
* availity-angular v4.2.1 (01/20/2023)
* (c) Availity, LLC

@@ -11,0 +11,0 @@ */

@@ -38,3 +38,4 @@ 'use strict';

},
REPEAT_LIMIT_TIME: 5000
REPEAT_LIMIT_TIME: 5000,
BLACKLISTED_MESSAGES: ['ResizeObserver loop limit exceeded']
});

@@ -166,4 +167,18 @@

// Check for blacklisted messages to not log
if (stacktrace && stacktrace.message && this._isBlacklisted(stacktrace.message)) {
return;
}
return this.onError(stacktrace);
}
}, {
key: '_isBlacklisted',
value: function _isBlacklisted(message) {
var isBlacklisted = false;
if (AV_EXCEPTIONS.BLACKLISTED_MESSAGES.includes(message)) {
isBlacklisted = true;
}
return isBlacklisted;
}

@@ -170,0 +185,0 @@ // Check to see if this error was reported within the last 5 seconds

{
"name": "availity-angular",
"description": "Availity Angular SDK",
"version": "4.2.0",
"version": "4.2.1",
"main": "lib/index.js",

@@ -6,0 +6,0 @@ "keywords": [

@@ -35,2 +35,69 @@ # availity-angular

## <a name="angularjs18"></a> Migrating to angularjs 1.7.x to 1.8.2
Version 4.2.0 of availity-angular is migration from 1.7.x angular to 1.8.2. In addition, jquery is updated to 3.6.0, to
satisfy security requirements. The primary change of what is fixed with security update can be explained with jquery
upgrade guide located here https://jquery.com/upgrade-guide/3.5/.
Note: 1.7.x to 1.8.2 is really just an update underlying jquery component embeded in angularjs, and since
availity-angular overrides this by including the full jquery. The real upgrade is just the jquery upgrade.
Here is list of known issues with upgrade.
* Self-closing tags, like "\<div/> \<span/> \<p/>". As referenced in upgrade-guide, jquery no changes these tags. The
result of which is if you have some template like following in your page it will not display and actually cause page
to stop rendering due to unmatching tags.
```html
<div class="broken">
<p>This would display before tag.</p>
<div data-my-directive/>
<p>But directive and items after might not display.</p>
</div>
<div class="fixed">
<p>Fix is to change to remove self closing empty html tag</p>
<div data-my-directive></div>
<p>Now this should display.</p>
</div>
<div class="nochange">
<p>Tags that html supports as self closing tags do not need to change since they are not effected.</p>
<span>Example: All the following are valid</span>
<input data-my-directive />
<input data-my-directive >
<img data-my-directive />
<img data-my-directive >
</div>
```
Unfortunately not good solution to this fix besides just fixing tags. Luckily this regex from here seems to be pretty code at replacing.
https://www.reddit.com/r/regex/comments/6mpc7b/replace_invalid_selfclosing_nonvoid_html_tags/
In editor that supports reg expression replace use following:
```text
find: <(?!area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)([a-z|A-Z|_|\-|:|0-9]+)([^>]*)\/>
replace: <$1$2></$1>
```
* bootstrap-datapicker issue. One issue noticed on upgrading is that some projects where getting issue where
AvDatepicker was no longer working. This seemed to be dependency resolution where bootstrap-datepicker was pulling in
one version of jquery and application was using 3.6 version. The fix was to force resolution to same version using
resolution block.
```
"resolutions": {
"jquery": "3.6.0"
}
```
* uglify-js 3.11.x issue. Although not related angularjs upgrade an issue was noticed with dependencies. After some
effort it was found with uglify-js 3.11.x or greater, the signature of some constructors where changed. In particular
the av-block directive's BlockController was effected causing console error "regExp --> regExpProvider not found".
Error would only show up on production builds of project. The fix for this is locking in ugligfy-js to 3.10.4.
```
"resolutions": {
"jquery": "3.6.0",
"uglify-js": "3.10.4",
"uglifyjs-webpack-plugin": "2.2.0"
},
```
## Quickstart

@@ -46,3 +113,5 @@

The Availity Angular lib was heavily inspired by multiple open source frameworks. If for some reason a library could not be used directly (IE9 limitation), we've reused that projects code directly in this project. Please check out the libs below for some beautifully written code.
The Availity Angular lib was heavily inspired by multiple open source frameworks. If for some reason a library could not
be used directly (IE9 limitation), we've reused that projects code directly in this project. Please check out the libs
below for some beautifully written code.

@@ -57,3 +126,2 @@ + [Angular Strap](https://github.com/mgcrea/angular-strap)

1. Ensure release is occurring on `master` branch: `git checkout master`

@@ -64,5 +132,4 @@ 1. Run `npm install` to ensure dependencies are up to date.

## License
Copyright (c) 2017-present Availity, LLC. Code released under the [the MIT license](LICENSE)

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 too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc