Giter Site home page Giter Site logo

angular-promise-extras's People

Contributors

insidewhy avatar mohlsen avatar mtrias avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

angular-promise-extras's Issues

Prototype pollution vulnerbility

I get the following after running npm audit:

Moderate        Prototype Pollution

Package         angular

Patched in      >=1.7.9

Dependency of   angular-promise-extras

Path            angular-promise-extras > angular

More info       https://npmjs.com/advisories/1343

I have already installed angular 1.7.9 but I assume I still get this error because angular-promise-extras depends on angular < 1.7.0. I could submit a PR if that is OK with the maintainers.

LICENSE file

package.json states ISC License, but none in the repo. We would like to include the license to give credit to you in our project. The standard ISC license is a template, so can we add one to the repo?

`$q.allSettled` TypeScript types

declare module 'angular' {
    interface IQService {
        allSettled<Promises extends Array<IPromise<unknown> | unknown>>(
            promises: Promises,
        ): IPromise<
            Array<PromiseFulfilledResult<unknown> | PromiseRejectedResult>
        >;

        allSettled<
            Promises extends Record<string, IPromise<unknown> | unknown>
        >(
            promises: Promises,
        ): IPromise<
            Record<
                keyof Promises,
                PromiseFulfilledResult<unknown> | PromiseRejectedResult
            >
        >;
    }
}

PromiseFulfilledResult and PromiseRejectedResult are added in ES2020 for native Promise.allSettled

Update release to take latest changes

In #15 we updated the project to be compatible with angular 1.6.1.

Those changes are in master but were not published in a release so they cannot be used for people fetching this dependency using a version number.

$q.resolve - exists already in angular

Hi,

could $q.resolve be removed, as it already exists in angular?

https://docs.angularjs.org/api/ng/service/$q
resolve(value, [successCallback], [errorCallback], [progressCallback]);

From my point of view the package should only add "extras" and not alter the behavior of the existing $q.
The default $q.resolve handles the case implemented in this library but has additional features. Threrefore this "extra" is kind of a downgrade.

Best regards

Angular 1.5.3

Hi there,

Not really an issue, but could you please explain why the library requires angular < 1.5.0 ?

Thanks!

Source not minifyable

Due to work regulations I can't provide a pull request now. The function($delegate) starting on line 21 is missing the array notation which breaks this library using ngAnnotate.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.