Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@justeat/f-dom

Package Overview
Dependencies
Maintainers
17
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@justeat/f-dom - npm Package Compare versions

Comparing version 0.4.0 to 1.0.0

21

CHANGELOG.md

@@ -6,2 +6,23 @@ # Changelog

v1.0.0
------------------------------
*September 25, 2018*
### Added
- Snyk badge to readme.
### Changed
- Bumped to version 1.0.0 as this repo is public.
- Upgraded to babel 7.
- Updated module dependencies.
- Using eslint and jest directory rather than `gulp-build-fozzie` to improve install time.
- Clean `/dist` directory before compiling.
- Travis uses node v8 & v10 to run builds.
- License year updated.
- Danger file updated.
- Travis build results published to slack channel.
- Jest config updated.
- Readme layout updated.
v0.4.0

@@ -8,0 +29,0 @@ ------------------------------

68

dist/index.js

@@ -1,1 +0,67 @@

'use strict';Object.defineProperty(exports,'__esModule',{value:!0});var _qwery=require('qwery'),_qwery2=_interopRequireDefault(_qwery);function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var first=function(a){var b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:null;return(0,_qwery2.default)(a,b)[0]},all=function(a){var b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:null;return(0,_qwery2.default)(a,b)},exists=function(a){var b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:null;return 0<(0,_qwery2.default)(a,b).length},dom=all;dom.all=all,dom.first=first,dom.exists=exists,exports.default=dom;
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _qwery = _interopRequireDefault(require("qwery"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* Returns first element in the DOM for the specified selector.
*
* @param {string} selector
* @param {string} root (optional) - if defined, search is performed relatively from this element
*
* @return {Element}
*/
var first = function first(selector) {
var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
return (0, _qwery.default)(selector, root)[0];
};
/**
* Returns all elements in the DOM for the specified selector.
*
* @param {string} selector
* @param {string} root (optional) - if defined, search is performed relatively from this element
*
* @return {Array.<Element>}
*/
var all = function all(selector) {
var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
return (0, _qwery.default)(selector, root);
};
/**
* Returns true, if at least one element exists in the DOM, otherwise returns false.
*
* @param {string} selector
* @param {string} root (optional) - if defined, search is performed relatively from this element
*
* @return {boolean}
*/
var exists = function exists(selector) {
var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
return (0, _qwery.default)(selector, root).length > 0;
};
/**
* Returns all elements in the DOM for the specified selector. Short syntax of `all` method.
*
* @param {string} selector
* @param {string} root (optional) - if defined, search is performed relatively from this element
*
* @return {Array.<Element>}
*/
var dom = all;
dom.all = all;
dom.first = first;
dom.exists = exists;
var _default = dom;
exports.default = _default;

43

package.json
{
"name": "@justeat/f-dom",
"description": "Fozzie JS DOM queries library.",
"version": "0.4.0",
"version": "1.0.0",
"main": "dist/index.js",

@@ -22,17 +22,23 @@ "files": [

"engines": {
"node": ">=4.0.0"
"node": ">=6.0.0"
},
"dependencies": {
"qwery": "^4.0.0"
"qwery": "4.0.0"
},
"devDependencies": {
"@justeat/gulp-build-fozzie": "^7.8.0",
"babel-cli": "^6.26.0",
"babel-preset-babili": "^0.1.4",
"babel-preset-env": "^1.6.1",
"concurrently": "^3.5.1",
"coveralls": "^3.0.0",
"danger": "^3.1.3",
"gulp": "^3.9.1"
"@babel/cli": "7.1.0",
"@babel/core": "7.1.0",
"@babel/preset-env": "7.1.0",
"@justeat/eslint-config-fozzie": "2.2.0",
"concurrently": "4.0.1",
"coveralls": "3.0.2",
"danger": "4.0.2",
"eslint": "5.6.0",
"eslint-plugin-import": "2.14.0",
"jest": "23.6.0",
"rimraf": "2.6.2"
},
"resolutions": {
"babel-core": "7.0.0-bridge.0"
},
"keywords": [

@@ -43,8 +49,8 @@ "fozzie"

"prepare": "concurrently -n \"lint,compile,test\" -c \"blue,yellow,green\" \"yarn lint\" \"yarn compile\" \"yarn test\" --kill-others-on-fail",
"clean": "rimraf dist/",
"lint": "eslint {src,test}/**/*.js",
"compile": "babel -d dist src",
"test": "gulp scripts:test",
"test:cover": "gulp scripts:test:coverage",
"test:cover:CI": "cat coverage/lcov.info | coveralls",
"release": "yarn prepare && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
"compile": "yarn clean && babel -d dist src",
"test": "jest",
"test:cover": "jest --coverage",
"test:cover:ci": "yarn test:cover && cat coverage/lcov.info | coveralls"
},

@@ -62,5 +68,6 @@ "stylelint": {

"collectCoverageFrom": [
"src/**/*.{js,jsx}"
]
"src/**/*.js"
],
"testURL": "http://localhost"
}
}

@@ -1,11 +0,17 @@

# f-dom :bear:
<div align="center">
<h1>f-dom</h1>
<img width="125" alt="Fozzie Bear" src="bear.png" />
<p>Fozzie JS DOM queries library, built on top of <a href="https://www.npmjs.com/package/qwery">the qwery selector engine</a>.</p>
</div>
---
[![npm version](https://badge.fury.io/js/%40justeat%2Ff-dom.svg)](https://badge.fury.io/js/%40justeat%2Ff-dom)
[![Build Status](https://travis-ci.org/justeat/f-dom.svg)](https://travis-ci.org/justeat/f-dom)
[![Coverage Status](https://coveralls.io/repos/github/justeat/f-dom/badge.svg)](https://coveralls.io/github/justeat/f-dom)
[![Dependency Status](https://gemnasium.com/badges/github.com/justeat/f-dom.svg)](https://gemnasium.com/github.com/justeat/f-dom)
[![Known Vulnerabilities](https://snyk.io/test/github/justeat/f-dom/badge.svg?targetFile=package.json)](https://snyk.io/test/github/justeat/f-dom?targetFile=package.json)
Fozzie JS DOM queries library, built on top of [qwery](https://www.npmjs.com/package/qwery) selector engine.
## Adding `f-dom` to your project

@@ -12,0 +18,0 @@

Sorry, the diff of this file is not supported yet

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