Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Commit

Permalink
Prep for v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyWebb committed Mar 11, 2015
1 parent 9924511 commit 746ade7
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 88 deletions.
4 changes: 3 additions & 1 deletion .npmignore
Expand Up @@ -13,4 +13,6 @@ bower.json
webpack.config.*

*.sublime-project
*.sublime-workspace
*.sublime-workspace

.gitignore
23 changes: 10 additions & 13 deletions bower.json
@@ -1,37 +1,34 @@
{
"name": "ko-component-router",
"version": "0.0.1",
"version": "1.0.0",
"homepage": "https://github.com/caseyWebb/ko-component-router",
"authors": [
"Casey Webb <notcaseywebb@gmail.com>"
],
"description": "Component-based routing for KnockoutJS",
"description": "Component-based Routing for KnockoutJS",
"main": "dist/ko-component-router.js",
"moduleType": [
"amd",
"globals",
"node"
],
"keywords": [
"knockoutjs",
"ko",
"knockout",
"knockoutjs",
"router",
"routing",
"spa",
"router"
"spa"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"src",
"package.json",
"webpack.config.*",
"test"
"*.sublime-project",
"test",
"*.sublime-workspace",
".npmignore",
".gitignore",
".DS_Store"
"*.sublime-project",
"src"
],
"dependencies": {
"knockout": "~3.3.0"
Expand Down
115 changes: 44 additions & 71 deletions dist/ko-component-router.js
Expand Up @@ -11,41 +11,41 @@
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/

/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/

/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/

/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/

/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/

/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/

/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/


/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/

/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/

/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/

/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
Expand Down Expand Up @@ -1257,7 +1257,7 @@ return /******/ (function(modules) { // webpackBootstrap
/* 7 */
/***/ function(module, exports, __webpack_require__) {

module.exports = "<div data-bind='component: {\r\n\r\n name: component,\r\n params: routeParams\r\n\r\n}'></div>";
module.exports = "<div data-bind='component: {\n\n name: component,\n params: routeParams\n\n}'></div>";

/***/ },
/* 8 */
Expand Down Expand Up @@ -2094,14 +2094,14 @@ return /******/ (function(modules) { // webpackBootstrap
function hasOwnProperty(obj, prop) {
return Object.prototype.hasOwnProperty.call(obj, prop);
}

/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(17)))

/***/ },
/* 11 */
/***/ function(module, exports, __webpack_require__) {



/***/ },
/* 12 */
Expand Down Expand Up @@ -2358,7 +2358,7 @@ return /******/ (function(modules) { // webpackBootstrap
};

module.exports = isFunction;

/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))

/***/ },
Expand Down Expand Up @@ -2486,69 +2486,40 @@ return /******/ (function(modules) { // webpackBootstrap
// shim for using process in browser

var process = module.exports = {};
var queue = [];
var draining = false;

process.nextTick = (function () {
var canSetImmediate = typeof window !== 'undefined'
&& window.setImmediate;
var canMutationObserver = typeof window !== 'undefined'
&& window.MutationObserver;
var canPost = typeof window !== 'undefined'
&& window.postMessage && window.addEventListener
;

if (canSetImmediate) {
return function (f) { return window.setImmediate(f) };
function drainQueue() {
if (draining) {
return;
}

var queue = [];

if (canMutationObserver) {
var hiddenDiv = document.createElement("div");
var observer = new MutationObserver(function () {
var queueList = queue.slice();
queue.length = 0;
queueList.forEach(function (fn) {
fn();
});
});

observer.observe(hiddenDiv, { attributes: true });

return function nextTick(fn) {
if (!queue.length) {
hiddenDiv.setAttribute('yes', 'no');
}
queue.push(fn);
};
draining = true;
var currentQueue;
var len = queue.length;
while(len) {
currentQueue = queue;
queue = [];
var i = -1;
while (++i < len) {
currentQueue[i]();
}
len = queue.length;
}

if (canPost) {
window.addEventListener('message', function (ev) {
var source = ev.source;
if ((source === window || source === null) && ev.data === 'process-tick') {
ev.stopPropagation();
if (queue.length > 0) {
var fn = queue.shift();
fn();
}
}
}, true);

return function nextTick(fn) {
queue.push(fn);
window.postMessage('process-tick', '*');
};
draining = false;
}
process.nextTick = function (fun) {
queue.push(fun);
if (!draining) {
setTimeout(drainQueue, 0);
}

return function nextTick(fn) {
setTimeout(fn, 0);
};
})();
};

process.title = 'browser';
process.browser = true;
process.env = {};
process.argv = [];
process.version = ''; // empty string to avoid regexp issues
process.versions = {};

function noop() {}

Expand All @@ -2569,6 +2540,7 @@ return /******/ (function(modules) { // webpackBootstrap
process.chdir = function (dir) {
throw new Error('process.chdir is not supported');
};
process.umask = function() { return 0; };


/***/ },
Expand Down Expand Up @@ -3656,7 +3628,7 @@ return /******/ (function(modules) { // webpackBootstrap
}

module.exports = bufferClone;

/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))

/***/ },
Expand Down Expand Up @@ -3947,7 +3919,7 @@ return /******/ (function(modules) { // webpackBootstrap
}(0, 0));

module.exports = support;

/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))

/***/ },
Expand Down Expand Up @@ -4363,3 +4335,4 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }
/******/ ])
});
;
4 changes: 2 additions & 2 deletions dist/ko-component-router.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "ko-component-router",
"version": "0.0.1",
"version": "1.0.0",
"description": "Component-based routing for KnockoutJS",
"main": "dist/ko-component-router.js",
"scripts": {
Expand All @@ -13,6 +13,7 @@
"prepublish": "npm run build"
},
"keywords": [
"ko",
"knockout",
"knockoutjs",
"router",
Expand Down

0 comments on commit 746ade7

Please sign in to comment.