Toggle navigation
Toggle navigation
This project
Loading...
Sign in
digsig
/
digsig-services
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Stefan Huber
2017-05-23 10:22:05 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b20e8bb50320a57d0a933186d487a26ab7d3db19
b20e8bb5
1 parent
3153fb58
chore: angular update
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
58 deletions
dist/index.d.ts
dist/index.js
dist/index.js.map
package.json
src/index.ts
dist/index.d.ts
View file @
b20e8bb
import
{
Http
}
from
'@angular/http'
;
import
{
ModuleWithProviders
}
from
'@angular/core'
;
import
{
Rest
}
from
'./services/rest'
;
import
{
Repository
}
from
'./services/repository'
;
export
{
Rest
}
from
'./services/rest'
;
...
...
@@ -7,6 +6,3 @@ export { Repository } from './services/repository';
export
{
Device
}
from
'./services/device'
;
export
declare
function
provideRest
(
http
:
Http
):
Rest
;
export
declare
function
provideRepository
(
rest
:
Rest
):
Repository
;
export
declare
class
DigsigServicesModule
{
static
forRoot
():
ModuleWithProviders
;
}
...
...
dist/index.js
View file @
b20e8bb
"use strict"
;
var
__decorate
=
(
this
&&
this
.
__decorate
)
||
function
(
decorators
,
target
,
key
,
desc
)
{
var
c
=
arguments
.
length
,
r
=
c
<
3
?
target
:
desc
===
null
?
desc
=
Object
.
getOwnPropertyDescriptor
(
target
,
key
)
:
desc
,
d
;
if
(
typeof
Reflect
===
"object"
&&
typeof
Reflect
.
decorate
===
"function"
)
r
=
Reflect
.
decorate
(
decorators
,
target
,
key
,
desc
);
else
for
(
var
i
=
decorators
.
length
-
1
;
i
>=
0
;
i
--
)
if
(
d
=
decorators
[
i
])
r
=
(
c
<
3
?
d
(
r
)
:
c
>
3
?
d
(
target
,
key
,
r
)
:
d
(
target
,
key
))
||
r
;
return
c
>
3
&&
r
&&
Object
.
defineProperty
(
target
,
key
,
r
),
r
;
};
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
var
http_1
=
require
(
"@angular/http"
);
var
core_1
=
require
(
"@angular/core"
);
var
rest_1
=
require
(
"./services/rest"
);
var
repository_1
=
require
(
"./services/repository"
);
var
device_1
=
require
(
"./services/device"
);
...
...
@@ -25,27 +17,4 @@ function provideRepository(rest) {
return
new
repository_1
.
Repository
(
rest
,
new
device_1
.
Device
);
}
exports
.
provideRepository
=
provideRepository
;
var
DigsigServicesModule
=
DigsigServicesModule_1
=
(
function
()
{
function
DigsigServicesModule
()
{
}
DigsigServicesModule
.
forRoot
=
function
()
{
return
{
ngModule
:
DigsigServicesModule_1
,
providers
:
[
{
provide
:
rest_1
.
Rest
,
useFactory
:
provideRest
,
deps
:
[
http_1
.
Http
]
},
{
provide
:
repository_1
.
Repository
,
useFactory
:
provideRepository
,
deps
:
[
rest_1
.
Rest
]
}
]
};
};
return
DigsigServicesModule
;
}());
DigsigServicesModule
=
DigsigServicesModule_1
=
__decorate
([
core_1
.
NgModule
({
imports
:
[
http_1
.
HttpModule
]
})
],
DigsigServicesModule
);
exports
.
DigsigServicesModule
=
DigsigServicesModule
;
var
DigsigServicesModule_1
;
//# sourceMappingURL=index.js.map
\ No newline at end of file
...
...
dist/index.js.map
View file @
b20e8bb
{
"version"
:
3
,
"file"
:
"index.js"
,
"sourceRoot"
:
""
,
"sources"
:[
"../src/index.ts"
],
"names"
:[],
"mappings"
:
";;;;;;;;AAAA,sCAAiD;AACjD,sCAA8D;AAC9D,wCAAuC;AACvC,oDAAmD;AACnD,4CAA2C;AAE3C,wCAAuC;AAA9B,sBAAA,IAAI,CAAA;AACb,oDAAmD;AAA1C,kCAAA,UAAU,CAAA;AACnB,4CAA2C;AAAlC,0BAAA,MAAM,CAAA;AAEf,qBAA4B,IAAS;IACjC,MAAM,CAAC,IAAI,WAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAFD,kCAEC;AAED,2BAAkC,IAAS;IACvC,MAAM,CAAC,IAAI,uBAAU,CAAC,IAAI,EAAE,IAAI,eAAM,CAAC,CAAC;AAC5C,CAAC;AAFD,8CAEC;AAOD,IAAa,oBAAoB;IAAjC;IAUA,CAAC;IATQ,4BAAO,GAAd;QACE,MAAM,CAAC;YACL,QAAQ,EAAE,sBAAoB;YAC9B,SAAS,EAAE;gBACT,EAAE,OAAO,EAAE,WAAI,EAAE,UAAU,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC,WAAI,CAAC,EAAE;gBACtD,EAAE,OAAO,EAAE,uBAAU,EAAE,UAAU,EAAC,iBAAiB,EAAE,IAAI,EAAC,CAAC,WAAI,CAAC,EAAE;aACnE;SACF,CAAA;IACH,CAAC;IACH,2BAAC;AAAD,CAAC,AAVD,IAUC;AAVY,oBAAoB;IALhC,eAAQ,CAAC;QACN,OAAO,EAAG;YACN,iBAAU;SACb;KACJ,CAAC;GACW,oBAAoB,CAUhC;AAVY,oDAAoB"
}
\ No newline at end of file
{
"version"
:
3
,
"file"
:
"index.js"
,
"sourceRoot"
:
""
,
"sources"
:[
"../src/index.ts"
],
"names"
:[],
"mappings"
:
";;AACA,wCAAuC;AACvC,oDAAmD;AACnD,4CAA2C;AAE3C,wCAAuC;AAA9B,sBAAA,IAAI,CAAA;AACb,oDAAmD;AAA1C,kCAAA,UAAU,CAAA;AACnB,4CAA2C;AAAlC,0BAAA,MAAM,CAAA;AAEf,qBAA4B,IAAS;IACjC,MAAM,CAAC,IAAI,WAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAFD,kCAEC;AAED,2BAAkC,IAAS;IACvC,MAAM,CAAC,IAAI,uBAAU,CAAC,IAAI,EAAE,IAAI,eAAM,CAAC,CAAC;AAC5C,CAAC;AAFD,8CAEC"
}
\ No newline at end of file
...
...
package.json
View file @
b20e8bb
...
...
@@ -15,9 +15,9 @@
"author"
:
""
,
"license"
:
"ISC"
,
"devDependencies"
:
{
"@angular/common"
:
"4.1.0"
,
"@angular/core"
:
"4.1.0"
,
"@angular/http"
:
"4.1.0"
,
"@angular/common"
:
"4.1.0"
,
"@angular/platform-browser"
:
"4.1.0"
,
"@types/jasmine"
:
"^2.5.43"
,
"jasmine"
:
"^2.5.3"
,
...
...
@@ -30,7 +30,6 @@
"zone.js"
:
"^0.8.4"
},
"peerDependencies"
:
{
"@angular/core"
:
"*"
,
"@angular/http"
:
"*"
,
"rxjs"
:
"*"
,
"pouchdb"
:
"*"
,
...
...
src/index.ts
View file @
b20e8bb
import
{
HttpModule
,
Http
}
from
'@angular/http'
;
import
{
NgModule
,
ModuleWithProviders
}
from
'@angular/core'
;
import
{
Http
}
from
'@angular/http'
;
import
{
Rest
}
from
'./services/rest'
;
import
{
Repository
}
from
'./services/repository'
;
import
{
Device
}
from
'./services/device'
;
...
...
@@ -15,21 +14,3 @@ export function provideRest(http:Http) : Rest {
export
function
provideRepository
(
rest
:
Rest
)
:
Repository
{
return
new
Repository
(
rest
,
new
Device
);
}
@
NgModule
({
imports
:
[
HttpModule
]
})
export
class
DigsigServicesModule
{
static
forRoot
():
ModuleWithProviders
{
return
{
ngModule
:
DigsigServicesModule
,
providers
:
[
{
provide
:
Rest
,
useFactory
:
provideRest
,
deps
:[
Http
]
}
,
{
provide
:
Repository
,
useFactory
:
provideRepository
,
deps
:[
Rest
]
}
]
}
}
}
...
...
Please
register
or
login
to post a comment