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

@ribajs/core

Package Overview
Dependencies
Maintainers
2
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ribajs/core - npm Package Compare versions

Comparing version 2.0.0-rc.7 to 2.0.0-rc.8

16

dist/src/component/basic-component.js

@@ -79,4 +79,14 @@ import "@ribajs/types";

requiredAttribute = camelCase(requiredAttribute);
return (this.scope.hasOwnProperty(requiredAttribute) &&
typeof this.scope[requiredAttribute] !== "undefined");
if (this.scope.hasOwnProperty(requiredAttribute)) {
if (Array.isArray(this.scope[requiredAttribute])) {
return this.scope[requiredAttribute].length > 0;
}
else if (typeof this.scope[requiredAttribute] === "object") {
return Object.keys(this.scope[requiredAttribute]).length > 0;
}
else {
return typeof this.scope[requiredAttribute] !== "undefined";
}
}
return false;
});

@@ -215,2 +225,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzaWMtY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvbXBvbmVudC9iYXNpYy1jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS0EsT0FBTyxlQUFlLENBQUM7QUFRdkIsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUU1QyxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDMUMsT0FBTyxFQUFFLGVBQWUsRUFBRSxTQUFTLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUN2RSxPQUFPLEVBQUUsY0FBYyxFQUFFLGVBQWUsRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBRTdFLE1BQU0sT0FBZ0IsY0FBZSxTQUFRLFdBQVc7SUFDL0MsTUFBTSxDQUFDLE9BQU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SUFBSSxDQUFDLEtBQUssQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDO1FBQ2pELElBQUksQ0FBQyx3QkFBd0IsQ0FBQyxhQUFhLEVBQUUsUUFBUSxFQUFFLFFBQVEsRUFBRSxTQUFTLENBQUMsQ0FBQztJQUM5RSxDQUFDO0lBU00sa0JBQWtCLENBQUMsYUFBcUI7UUFDN0MsTUFBTSxtQkFBbUIsR0FBRyxTQUFTLENBQUMsYUFBYSxDQUFDLENBQUM7UUFDckQsTUFBTSxLQUFLLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDO1FBQzlDLE9BQU8sS0FBSyxDQUFDO0lBQ2YsQ0FBQztJQU1TLGNBQWMsQ0FBQyxrQkFBNEI7UUFDbkQsTUFBTSxVQUFVLEdBQUcsSUFBSSxDQUFDLFVBQVUsQ0FBQztRQUNuQyxLQUFLLE1BQU0sQ0FBQyxJQUFJLFVBQVUsRUFBRTtZQUMxQixNQUFNLFNBQVMsR0FBUyxVQUFVLENBQUMsQ0FBQyxDQUFDLENBQUM7WUFDdEMsTUFBTSxJQUFJLEdBQUcsU0FBUyxDQUFDLFFBQVEsQ0FBQztZQUNoQyxJQUFJLGtCQUFrQixDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUMsRUFBRTtnQkFDM0MsTUFBTSxRQUFRLEdBQUcsU0FBUyxDQUFDLFNBQVMsQ0FBQztnQkFDckMsSUFBSSxDQUFDLHdCQUF3QixDQUFDLElBQUksRUFBRSxTQUFTLEVBQUUsUUFBUSxFQUFFLElBQUksQ0FBQyxDQUFDO2FBQ2hFO1NBQ0Y7SUFDSCxDQUFDO0NBQ0YifQ==

38

package.json
{
"name": "@ribajs/core",
"description": "Core module of Riba.js",
"version": "2.0.0-rc.7",
"version": "2.0.0-rc.8",
"type": "module",

@@ -52,3 +52,3 @@ "engines": {

"@babel/cli": "^7.23.0",
"@babel/core": "^7.23.0",
"@babel/core": "^7.23.2",
"@babel/plugin-proposal-class-properties": "^7.18.6",

@@ -58,16 +58,16 @@ "@babel/plugin-proposal-object-rest-spread": "^7.20.7",

"@babel/plugin-syntax-export-default-from": "^7.22.5",
"@babel/plugin-transform-runtime": "^7.22.15",
"@babel/plugin-transform-runtime": "^7.23.2",
"@babel/plugin-transform-typescript": "^7.22.15",
"@babel/preset-env": "^7.22.20",
"@babel/preset-env": "^7.23.2",
"@babel/preset-react": "^7.22.15",
"@babel/preset-typescript": "^7.23.0",
"@babel/runtime": "^7.23.1",
"@babel/runtime-corejs3": "^7.23.1",
"@babel/preset-typescript": "^7.23.2",
"@babel/runtime": "^7.23.2",
"@babel/runtime-corejs3": "^7.23.2",
"@jest/globals": "^29.7.0",
"@ribajs/eslint-config": "^2.0.0-rc.7",
"@ribajs/tsconfig": "^2.0.0-rc.7",
"@ribajs/types": "^2.0.0-rc.7",
"@ribajs/eslint-config": "^2.0.0-rc.8",
"@ribajs/tsconfig": "^2.0.0-rc.8",
"@ribajs/types": "^2.0.0-rc.8",
"@types/core-js": "^2.5.6",
"@types/jest": "^29.5.5",
"@types/node": "^20.8.2",
"@types/node": "^20.8.5",
"babel-jest": "^29.7.0",

@@ -77,8 +77,8 @@ "babel-loader": "^9.1.3",

"core-js": "^3.33.0",
"eslint": "^8.50.0",
"eslint": "^8.51.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-prettier": "^5.0.1",
"jest": "^29.7.0",
"jest-config": "^29.7.0",
"jest-extended": "^4.0.1",
"jest-extended": "^4.0.2",
"prettier": "^3.0.3",

@@ -100,8 +100,8 @@ "source-map-support": "^0.5.21",

"dependencies": {
"@ribajs/events": "^2.0.0-rc.7",
"@ribajs/history": "^2.0.0-rc.7",
"@ribajs/jsx": "^2.0.0-rc.7",
"@ribajs/ssr": "^2.0.0-rc.7",
"@ribajs/utils": "^2.0.0-rc.7"
"@ribajs/events": "^2.0.0-rc.8",
"@ribajs/history": "^2.0.0-rc.8",
"@ribajs/jsx": "^2.0.0-rc.8",
"@ribajs/ssr": "^2.0.0-rc.8",
"@ribajs/utils": "^2.0.0-rc.8"
}
}

@@ -147,6 +147,13 @@ /**

requiredAttribute = camelCase(requiredAttribute);
return (
this.scope.hasOwnProperty(requiredAttribute) &&
typeof this.scope[requiredAttribute] !== "undefined"
);
if (this.scope.hasOwnProperty(requiredAttribute)) {
if (Array.isArray(this.scope[requiredAttribute])) {
return this.scope[requiredAttribute].length > 0;
} else if (typeof this.scope[requiredAttribute] === "object") {
return Object.keys(this.scope[requiredAttribute]).length > 0;
} else {
return typeof this.scope[requiredAttribute] !== "undefined";
}
}
return false;
});

@@ -153,0 +160,0 @@ }

/**
* Returns true if value index is the last index of the array. Returns false if it is not the last index.
* ```
* <div rv-each-image="product.images" rv-hide="product.images | last %image%"></div>
* <div rv-each-image="product.images" rv-hide="product.images | isLast %image%"></div>
* ```

@@ -6,0 +6,0 @@ * @see https://help.shopify.com/themes/liquid/objects/for-loops#forloop-last

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