Sha256: 8a10eb3543e3b5f56f989436b37a414f2e758755d27fab2f6bafa7113ad78ff4

Contents?: true

Size: 555 Bytes

Versions: 17

Compression:

Stored size: 555 Bytes

Contents

"use strict";

/**
 * Plugin dependencies
 */
var Agent = require('../').Agent
  , semver = require('semver');

/**
 * Checks if the user agent's version can be satisfied agents the give
 * ranged argument. This uses the semver libraries range construction.
 *
 * @param {String} ranged The range the version has to satisfie
 * @returns {Boolean}
 * @api public
 */
Agent.prototype.satisfies = function satisfies (range) {
  return semver.satisfies((Number(this.major) || 0) + '.' + (Number(this.minor) || 0) + '.' + (Number(this.patch) || 0), range);
};

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
hooch-0.4.2 jasmine/node_modules/karma/node_modules/useragent/features/index.js
hooch-0.4.1 jasmine/node_modules/karma/node_modules/useragent/features/index.js
hooch-0.4.0 jasmine/node_modules/karma/node_modules/useragent/features/index.js
hooch-0.3.0 jasmine/node_modules/karma/node_modules/useragent/features/index.js
hooch-0.2.1 jasmine/node_modules/karma/node_modules/useragent/features/index.js
hooch-0.2.0 jasmine/node_modules/karma/node_modules/useragent/features/index.js
hooch-0.1.0 jasmine/node_modules/karma/node_modules/useragent/features/index.js
hooch-0.0.8 jasmine/node_modules/karma/node_modules/useragent/features/index.js
hooch-0.0.7 jasmine/node_modules/karma/node_modules/useragent/features/index.js
hooch-0.0.6 jasmine/node_modules/karma/node_modules/useragent/features/index.js
entangled-0.0.16 spec/dummy/public/node_modules/karma/node_modules/useragent/features/index.js
entangled-0.0.15 spec/dummy/public/node_modules/karma/node_modules/useragent/features/index.js
entangled-0.0.14 spec/dummy/public/node_modules/karma/node_modules/useragent/features/index.js
entangled-0.0.13 spec/dummy/public/node_modules/karma/node_modules/useragent/features/index.js
entangled-0.0.12 spec/dummy/public/node_modules/karma/node_modules/useragent/features/index.js
entangled-0.0.11 spec/dummy/public/node_modules/karma/node_modules/useragent/features/index.js
entangled-0.0.10 spec/dummy/public/node_modules/karma/node_modules/useragent/features/index.js