New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ui-router-metatags

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ui-router-metatags - npm Package Versions

1.0.4

Diff

tinusn
published 1.0.3 •

Changelog

Source

1.0.3

  • ...today is a looooong day.... published the actualy changes made in 1.0.1--
tinusn
published 1.0.2 •

Changelog

Source

1.0.2

  • removed debug log
tinusn
published 1.0.1 •

Changelog

Source

1.0.1

  • Fixed a bug when using numbers in the prerender.statusCode
tinusn
published 1.0.0 •

Changelog

Source

1.0.0

  • Fixes #2
  • Added a sample Breaking changes:
  • (Typescript only) Renamed: uiroutermetatags.IService to uiroutermetatags.IConfig
tinusn
published 0.0.6 •

Changelog

Source

0.0.6

Fixes #1 Added to bower

tinusn
published 0.0.5 •

Changelog

Source

0.0.5

Updated dependencies and added the package to npm

tinusn
published 0.0.4 •

Changelog

Source

0.0.4

Added prerender status code and header.

When an stateChangeError or a stateNotFound event is thrown, the status is set automatically (to 500 and 404 respectively), but it also offers manual control if needed.

function configureRoutes($stateProvider) {
    $stateProvider
        .state('blogposts', {
            url: '/blog/:category',
            resolve: {
                /* @ngInject */
                posts: function(myService, $stateParams) {
                    return myService.getPosts($stateParams.category);
                }
            }
            metaTags: {
                prerender: {
                    /* @ngInject */
                    statusCode: function(posts) {
                        return posts.length > 0 ? 200 : 302;
                    },
                    /* @ngInject */
                    header: function(posts) {
                        return posts.length > 0 ? null : 'Location: http://example.com/posts';
                    }
                }
            }
        });
}
angular
    .module('myApp')
    .config(configureRoutes);

In the example above, if there are posts, then a status code of 200 is returned, whereas if no posts are there, then a 302 is set and a redirect location is offered.

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