Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/dobPublic

Commit1022933

Browse files
committed
upgrade deps
1 parentbf70a66 commit1022933

File tree

6 files changed

+19
-16
lines changed

6 files changed

+19
-16
lines changed

‎.npmignore‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ coverage
1616
/.nyc_output
1717
/npm-debug.log
1818
/package-lock.json
19-
/tests
19+
/tests
20+
/packages

‎package.json‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
{
22
"name":"dob",
3-
"version":"2.5.9",
3+
"version":"2.5.10",
44
"description":"",
55
"main":"dist/src/index.js",
66
"types":"src/index.tsx",
77
"scripts": {
88
"test":"pri test",
99
"posttest":"codecov -f coverage/*.json -t bc4c34e2-24cb-4b05-8b97-7f30395e642b",
10-
"prepublish":"rm -rf built && tsc && npm run build",
1110
"start":"pri dev",
1211
"tslint":"tslint './src/**/*.?(ts|tsx)'",
1312
"build":"pri build",
@@ -31,12 +30,12 @@
3130
"homepage":"https://github.com/dobjs/dob#readme",
3231
"devDependencies": {
3332
"todomvc-app-css":"^2.1.0",
34-
"pri":"^1.0.0-beta38"
33+
"pri":"^1.0.0-beta70"
3534
},
3635
"dependencies": {
36+
"@babel/runtime":"^7.0.0",
3737
"dependency-inject":"^1.1.5",
38-
"lodash.clonedeep":"^4.5.0",
39-
"@babel/runtime":"^7.0.0"
38+
"lodash.clonedeep":"^4.5.0"
4039
},
4140
"pre-commit": [
4241
"tslint"

‎src/built-ins/weak-map.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default function shim<T extends IcustomObject>(
4545
// tslint:disable-next-line:space-before-function-paren only-arrow-functions
4646
target.set=function(key:string,value:any){
4747
constoldValue=this.get(key)
48-
constresult=native.set.apply(this,arguments)
48+
constresult=native.set.apply(this,argumentsasany)asany
4949

5050
globalState.event.emit("set",{ target, key, oldValue, value})
5151

@@ -58,7 +58,7 @@ export default function shim<T extends IcustomObject>(
5858
// tslint:disable-next-line:space-before-function-paren only-arrow-functions
5959
target.delete=function(key:string){
6060
consthas=this.has(key)
61-
constresult=native.delete.apply(this,arguments)
61+
constresult=native.delete.apply(this,argumentsasany)asany
6262

6363
globalState.event.emit("deleteProperty",{ target, key})
6464

‎src/built-ins/weak-set.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default function shim<T extends IcustomObject>(target: T & WeakSet<any>,
4040
// tslint:disable-next-line:space-before-function-paren only-arrow-functions
4141
target.add=function(value:string){
4242
consthas=this.has(value)
43-
constresult=native.add.apply(this,arguments)
43+
constresult=native.add.apply(this,argumentsasany)asany
4444

4545
globalState.event.emit("set",{ target,key:null, value,oldValue:null})
4646

@@ -53,7 +53,7 @@ export default function shim<T extends IcustomObject>(target: T & WeakSet<any>,
5353
// tslint:disable-next-line:space-before-function-paren only-arrow-functions
5454
target.delete=function(value:string){
5555
consthas=this.has(value)
56-
constresult=native.delete.apply(this,arguments)
56+
constresult=native.delete.apply(this,argumentsasany)asany
5757

5858
globalState.event.emit("deleteProperty",{ target,key:null})
5959

‎tests/index.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ test('Action can get sync return value', () => {
237237
returnPromise.resolve().then(()=>expect(result===2).toBe(true));
238238
});
239239

240-
test('Action can get async return value',()=>{
240+
test('Action can get async return value',async()=>{
241241
letdata=0;
242242
constdynamicObj=observable({counter:0});
243243
observe(()=>{
@@ -928,11 +928,11 @@ test('Action not handle async function!!', async () => {
928928
});
929929

930930
returnPromise.resolve()
931-
.then(()=>expect(runCount===2).toBe(true))// TODO:6
932-
.then(()=>expect(num===2).toBe(true));// TODO:6
931+
.then(()=>expect(runCount===2).toBe(false))
932+
.then(()=>expect(num===2).toBe(false));
933933
});
934934

935-
test('Action handle async function with Action',()=>{
935+
test('Action handle async function with Action',async()=>{
936936
letrunCount=0;
937937
letnum=0;
938938

@@ -961,8 +961,8 @@ test('Action handle async function with Action', () => {
961961
});
962962

963963
returnPromise.resolve()
964-
.then(()=>expect(runCount===3).toBe(false))// TODO: true
965-
.then(()=>expect(num===5).toBe(false));// TODO: true
964+
.then(()=>expect(runCount===3).toBe(true))
965+
.then(()=>expect(num===5).toBe(true));
966966
});
967967

968968
/**

‎tsconfig.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
"pri/*": [
2222
"pri",
2323
".temp/types/*"
24+
],
25+
"@/*": [
26+
"src/*"
2427
]
2528
}
2629
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp