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

jeefo

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jeefo - npm Package Compare versions

Comparing version 0.0.27 to 0.0.28

core/dist/jeefo-1504044877535.js

4

core/.cache/config.json
{
"dist": "/Users/jeefo/projects/jeefo/core/dist/jeefo-1503963650090.js",
"dist": "/Users/jeefo/projects/jeefo/core/dist/jeefo-1504044877535.js",
"pre_includes": [
"/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.\n* File Name : injector.js\n* Created at : 2017-08-09\n* Updated at : 2017-08-29\n* Author : jeefo\n* Purpose :\n* Description :\n_._._._._._._._._._._._._._._._._._._._._.*/\n// ignore:start\n\n/* globals*/\n/* exported jeefo */\n\n// ignore:end\n\nvar jeefo = window.jeefo = (function () {\n\tvar states = [],\n\t\tmodules = Object.create(null),\n\t\tfactories = Object.create(null),\n\t\tdirectives = Object.create(null),\n\t\tcomponents = Object.create(null);\n\n\tvar min_error = function (message) {\n\t\tthrow message;\n\t};\n\n\tvar register = function (path, factory) {\n\t\tif (factories[path]) {\n\t\t\tmin_error(`Duplicated file path detected: \"${ path }\"`);\n\t\t}\n\t\t\n\t\tfactories[path] = factory;\n\t};\n\n\tvar require = function (path) {\n\t\tif (modules[path]) {\n\t\t\treturn modules[path].exports;\n\t\t}\n\n\t\treturn resolve(path).exports;\n\t};\n\t\n\tvar resolve = function (path) {\n\t\tvar module = (modules[path] = { exports : {} });\n\n\t\tif (! factories[path]) {\n\t\t\tdebugger\n\t\t}\n\n\t\tfactories[path](require, module.exports, module);\n\n\t\treturn module;\n\t};\n\n\tregister(\"states\", function (require, exports, module) {\n\t\tmodule.exports = states;\n\t});\n\tregister(\"directives\", function (require, exports, module) {\n\t\tmodule.exports = directives;\n\t});\n\tregister(\"components\", function (require, exports, module) {\n\t\tmodule.exports = components;\n\t});\n\n\treturn {\n\t\trequire : require,\n\t\tregister : register,\n\t\tcomponent : function (selectors, path) {\n\t\t\tvar i = selectors.length;\n\t\t\twhile (i--) {\n\t\t\t\tif (components[selectors[i]]) {\n\t\t\t\t\tmin_error(`Duplicated component selector detected: \"${ selectors[i] }\"`);\n\t\t\t\t}\n\t\t\t\tcomponents[selectors[i]] = path;\n\t\t\t}\n\t\t},\n\t\tdirective : function (selectors, path) {\n\t\t\tvar i = selectors.length;\n\t\t\twhile (i--) {\n\t\t\t\tif (directives[selectors[i]]) {\n\t\t\t\t\tmin_error(`Duplicated directive selector detected: \"${ selectors[i] }\"`);\n\t\t\t\t}\n\t\t\t\tdirectives[selectors[i]] = path;\n\t\t\t}\n\t\t},\n\t\tstate : function (name, path) {\n\t\t\tstates.push({ name : name, path : path });\n\t\t}\n\t};\n}());\n"
"/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.\n* File Name : injector.js\n* Created at : 2017-08-09\n* Updated at : 2017-08-30\n* Author : jeefo\n* Purpose :\n* Description :\n_._._._._._._._._._._._._._._._._._._._._.*/\n// ignore:start\n\n/* globals*/\n/* exported jeefo */\n\n// ignore:end\n\nvar jeefo = window.jeefo = (function () {\n\tvar states = [],\n\t\tmodules = Object.create(null),\n\t\tfactories = Object.create(null),\n\t\tdirectives = Object.create(null),\n\t\tcomponents = Object.create(null);\n\n\tvar min_error = function (message) {\n\t\tthrow message;\n\t};\n\n\tvar register = function (path, factory) {\n\t\tif (factories[path]) {\n\t\t\tmin_error(`Duplicated file path detected: \"${ path }\"`);\n\t\t}\n\t\t\n\t\tfactories[path] = factory;\n\t};\n\n\tvar require = function (path) {\n\t\tif (modules[path]) {\n\t\t\treturn modules[path].exports;\n\t\t}\n\n\t\treturn resolve(path).exports;\n\t};\n\t\n\tvar resolve = function (path) {\n\t\tvar module = (modules[path] = { exports : {} });\n\n\t\tif (! factories[path]) {\n\t\t\tdebugger\n\t\t}\n\n\t\tfactories[path](require, module.exports, module);\n\n\t\treturn module;\n\t};\n\n\tregister(\"states\", function (require, exports, module) {\n\t\tmodule.exports = states;\n\t});\n\tregister(\"directives\", function (require, exports, module) {\n\t\tmodule.exports = directives;\n\t});\n\tregister(\"components\", function (require, exports, module) {\n\t\tmodule.exports = components;\n\t});\n\n\treturn {\n\t\trequire : require,\n\t\tregister : register,\n\t\tcomponent : function (selectors, path) {\n\t\t\tvar i = selectors.length;\n\t\t\twhile (i--) {\n\t\t\t\tif (components[selectors[i]]) {\n\t\t\t\t\tmin_error(`Duplicated component selector detected: \"${ selectors[i] }\"`);\n\t\t\t\t}\n\t\t\t\tcomponents[selectors[i]] = path;\n\t\t\t}\n\t\t},\n\t\tdirective : function (selectors, path) {\n\t\t\tvar i = selectors.length;\n\t\t\twhile (i--) {\n\t\t\t\tif (directives[selectors[i]]) {\n\t\t\t\t\tmin_error(`Duplicated directive selector detected: \"${ selectors[i] }\"`);\n\t\t\t\t}\n\t\t\t\tdirectives[selectors[i]] = path;\n\t\t\t}\n\t\t},\n\t\tstate : function (path) {\n\t\t\tstates.push(path);\n\t\t}\n\t};\n}());\n"
]
}
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
* File Name : injector.js
* Created at : 2017-08-09
* Updated at : 2017-08-29
* Updated at : 2017-08-30
* Author : jeefo

@@ -86,6 +86,6 @@ * Purpose :

},
state : function (name, path) {
states.push({ name : name, path : path });
state : function (path) {
states.push(path);
}
};
}());
{
"name": "jeefo",
"version": "0.0.27",
"version": "0.0.28",
"homepage": "https://github.com/je3f0o/jeefo",

@@ -27,4 +27,4 @@ "copyright": "2017",

"jeefo_animate": "^0.0.1",
"jeefo_bootstrap": "^0.0.1",
"jeefo_component": "^0.0.2",
"jeefo_bootstrap": "^0.0.3",
"jeefo_component": "^0.0.3",
"jeefo_javascript_parser": "^0.0.16",

@@ -34,3 +34,3 @@ "jeefo_jqlite": "^0.0.2",

"jeefo_resource": "^0.0.1",
"jeefo_router": "^0.0.3",
"jeefo_router": "^0.0.4",
"jeefo_template": "^0.0.18",

@@ -37,0 +37,0 @@ "jeefo_tokenizer": "^0.0.29",

@@ -34,3 +34,6 @@ /* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.

if (config.jeefo.main) {
post_includes += '\n\njeefo.require("node_modules/jeefo_bootstrap/index.js")(document);';
post_includes += `
jeefo.require("${ config.main }");
jeefo.require("node_modules/jeefo_bootstrap/index.js")(document);`;
}

@@ -37,0 +40,0 @@

@@ -22,12 +22,2 @@ /* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.

var join = function () {
var file_path = path.join.apply(path, arguments);
if (! file_path.endsWith(".js")) {
file_path += ".js";
}
return file_path;
};
var pre_includes = function (config) {

@@ -59,5 +49,10 @@ if (config.jeefo.pre_includes) {

pre_includes(config);
var path_resolve = require("./parser/path_resolver");
// app name
if (jeefo.main) {
load_cores(config);
config.main = path_resolve('.', `./${ jeefo.main }`).path;
config.files.push(`./${ jeefo.main }`);

@@ -68,5 +63,2 @@ } else {

pre_includes(config);
var path_resolve = require("./parser/path_resolver");
config.files = config.files.map(file_path => path_resolve('.', file_path));

@@ -73,0 +65,0 @@

/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
* File Name : parse_register.js
* Created at : 2017-08-10
* Updated at : 2017-08-24
* Updated at : 2017-08-30
* Author : jeefo

@@ -31,3 +31,3 @@ * Purpose :

file.linker = `\n\njeefo.state("${ file.state_name }", "${ path }");`;
file.linker = `\n\njeefo.state("${ path }");`;
} else if (path.endsWith("_directive.js")) {

@@ -34,0 +34,0 @@ parse_directive(file);

/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
* File Name : parse_state.js
* Created at : 2017-08-15
* Updated at : 2017-08-20
* Updated at : 2017-08-30
* Author : jeefo

@@ -17,2 +17,3 @@ * Purpose :

var pp = require("jeefo_preprocessor").es6.clone(),
parse_resolver = require("./parse_resolver"),
parse_controller = require("./parse_controller"),

@@ -22,3 +23,3 @@ assignment_expression = pp.actions.handlers.AssignmentExpression;

var parse_state_name = function (_pp, token) {
var pp = _pp.$new(token), actions = [], i, properties;
var pp = _pp.$new(), actions = [], i, properties;

@@ -37,13 +38,2 @@ pp.code = `z=${ pp.get_code(_pp.code, token) }`;

case "name" :
var remove_action = {
type : "remove",
start : properties[i].start.index,
end : properties[i].end.index,
};
if (properties.length - 1 > i) {
remove_action.end = properties[i + 1].start.index;
actions[i] = remove_action;
}
_pp.state.state_name = properties[i].value.value;

@@ -54,2 +44,5 @@ break;

break;
case "resolve" :
actions[i] = parse_resolver(pp, properties[i].value);
break;
}

@@ -56,0 +49,0 @@ }

Sorry, the diff of this file is too big to display

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