datatables.net-keytable-dt
Advanced tools
Comparing version 2.8.1 to 2.8.2
@@ -14,15 +14,4 @@ /*! DataTables styling wrapper for KeyTable | ||
// CommonJS | ||
module.exports = function (root, $) { | ||
if ( ! root ) { | ||
// CommonJS environments without a window global must pass a | ||
// root. This will give an error otherwise | ||
root = window; | ||
} | ||
if ( ! $ ) { | ||
$ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window | ||
require('jquery') : | ||
require('jquery')( root ); | ||
} | ||
var jq = require('jquery'); | ||
var cjsRequires = function (root, $) { | ||
if ( ! $.fn.dataTable ) { | ||
@@ -35,5 +24,24 @@ require('datatables.net-dt')(root, $); | ||
} | ||
}; | ||
return factory( $, root, root.document ); | ||
}; | ||
if (typeof window !== 'undefined') { | ||
module.exports = function (root, $) { | ||
if ( ! root ) { | ||
// CommonJS environments without a window global must pass a | ||
// root. This will give an error otherwise | ||
root = window; | ||
} | ||
if ( ! $ ) { | ||
$ = jq( root ); | ||
} | ||
cjsRequires( root, $ ); | ||
return factory( $, root, root.document ); | ||
}; | ||
} | ||
else { | ||
cjsRequires( window, jq ); | ||
module.exports = factory( jq, window, window.document ); | ||
} | ||
} | ||
@@ -40,0 +48,0 @@ else { |
/*! DataTables styling wrapper for KeyTable | ||
* © SpryMedia Ltd - datatables.net/license | ||
*/ | ||
!function(n){"function"==typeof define&&define.amd?define(["jquery","datatables.net-dt","datatables.net-keytable"],function(e){return n(e,window,document)}):"object"==typeof exports?module.exports=function(e,t){return e=e||window,(t=t||("undefined"!=typeof window?require("jquery"):require("jquery")(e))).fn.dataTable||require("datatables.net-dt")(e,t),t.fn.dataTable.KeyTable||require("datatables.net-keytable")(e,t),n(t,0,e.document)}:n(jQuery,window,document)}(function(e,t,n,a){"use strict";return e.fn.dataTable}); | ||
!function(n){var d,a;"function"==typeof define&&define.amd?define(["jquery","datatables.net-dt","datatables.net-keytable"],function(e){return n(e,window,document)}):"object"==typeof exports?(d=require("jquery"),a=function(e,t){t.fn.dataTable||require("datatables.net-dt")(e,t),t.fn.dataTable.KeyTable||require("datatables.net-keytable")(e,t)},"undefined"!=typeof window?module.exports=function(e,t){return e=e||window,t=t||d(e),a(e,t),n(t,0,e.document)}:(a(window,d),module.exports=n(d,window,window.document))):n(jQuery,window,document)}(function(e,t,n,d){"use strict";return e.fn.dataTable}); |
@@ -8,3 +8,3 @@ { | ||
"types": "./types/types.d.ts", | ||
"version": "2.8.1", | ||
"version": "2.8.2", | ||
"files": [ | ||
@@ -11,0 +11,0 @@ "css/**/*.css", |
@@ -69,2 +69,10 @@ // Type definitions for DataTables KeyTable | ||
} | ||
interface ApiSelectorModifier { | ||
/** | ||
* Pick cells which have focus. Note that this is for `cell()` and | ||
* `cells()` method only | ||
*/ | ||
focused?: boolean | undefined; | ||
} | ||
} | ||
@@ -71,0 +79,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
12274
240