'use strict';

var framed = require('frau-framed');

module.exports = framed()
	? require('./framed')
	: require('./local');

@@ -50,36 +50,23 @@
 );%0A%0A
-module.exports = framed()%0A%09?
+var getFramed =
  req
@@ -85,11 +85,21 @@
 ed')
+,
 %0A%09
-:
+getLocal =
  req
@@ -111,12 +111,135 @@
 './local');%0A
+%0Amodule.exports = function frauJwt () %7B%0A%09var fn = framed()%0A%09%09? getFramed%0A%09%09: getLocal;%0A%09return fn.apply(fn, arguments);%0A%7D;%0A

check for framing at call time