Skip to content

Commit

Permalink
feat: huge refactor to use kaop (js) api, clean code, joinpoints supp…
Browse files Browse the repository at this point in the history
…ort advice(s)

BREAKING CHANGE: metadata object has changed since the last version

#19, #49, #50
  • Loading branch information
k1r0s committed Dec 7, 2017
1 parent 6cc8eab commit 50e8dd4
Show file tree
Hide file tree
Showing 36 changed files with 295 additions and 1,076 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,8 @@
"typedoc": "^0.9.0",
"typescript": "^2.3.3",
"validate-commit-msg": "^2.10.1"
},
"dependencies": {
"kaop": "^3.0.1"
}
}
12 changes: 6 additions & 6 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import resolve from 'rollup-plugin-node-resolve'
import commonjs from 'rollup-plugin-commonjs'
const pkg = require('./package.json')
import resolve from "rollup-plugin-node-resolve"
import commonjs from "rollup-plugin-commonjs"
const pkg = require("./package.json")

export default {
input: `compiled/src/kaop-ts.js`,
input: "compiled/index.js",
output: [
{ file: pkg.main, name: 'kaopTs', format: 'umd' },
{ file: pkg.module, format: 'es' }
{ file: pkg.main, name: "kaopTs", format: "umd" },
{ file: pkg.module, format: "es" }
],
sourcemap: true,
plugins: [
Expand Down
8 changes: 8 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export const META_KEY = "#META"

export const KEY_ORIGINAL_METHOD = "original-method"
export const KEY_BEFORE_METHOD = "before-method"
export const KEY_AFTER_METHOD = "after-method"
export const KEY_BEFORE_INSTANCE = "before-instance"
export const KEY_AFTER_INSTANCE = "after-instance"
export const KEY_METHOD_EXCEPTION = "method-exception"
13 changes: 0 additions & 13 deletions src/core/AdvicePool.ts

This file was deleted.

169 changes: 0 additions & 169 deletions src/core/CallStackIterator.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/core/MetadataKeys.ts

This file was deleted.

54 changes: 0 additions & 54 deletions src/core/bootstrapFn.ts

This file was deleted.

13 changes: 0 additions & 13 deletions src/core/store.ts

This file was deleted.

Loading

0 comments on commit 50e8dd4

Please sign in to comment.