How to use the bitbucket/feature/files/file-handlers.register function in bitbucket

To help you get started, we’ve selected a few bitbucket examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github christiangalsterer / bitbucket-asciidoc-plugin / src / main / resources / static / asciidoc-handler / asciidoc-handler.js View on Github external
deferred.resolve(view);
            }).fail(function() {
                console.log('error while asynchronously loading asciidoc-view resources');
                return deferred.reject();
            });

            return deferred;
        }

        return false;
    }
});


require('bitbucket/feature/files/file-handlers').register({
    weight: 900,
    handle: function(options) {
        return require('asciidoc/asciidoc-handler').apply(this, arguments);
    }
});

bitbucket

Bitbucket API client for Browser and Node.js

MIT
Latest version published 2 months ago

Package Health Score

71 / 100
Full package analysis